You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Utilities.jl
+27-16Lines changed: 27 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@ export create_encoder_schedule,
27
27
encode_structure_matrix,
28
28
decode_data,
29
29
decode_structure_matrix,
30
-
norm
30
+
norm,
31
+
encoder_kwargs_from
31
32
32
33
33
34
const StructureMatrix = Union{UniformScaling, AbstractMatrix, AbstractVector, LinearMap} # The vector appears due to possible block-structured matrices (build=false)
@@ -71,32 +72,42 @@ end
71
72
72
73
# Using Observation Objects:
73
74
75
+
"""
76
+
$(TYPEDSIGNATURES)
77
+
78
+
Extracts the relevant encoder kwargs from the observation as a NamedTuple. Contains,
79
+
- `:obs_noise_cov` as (unbuilt) noise covariance
80
+
- `:observation` as obs vector
81
+
"""
74
82
functionencoder_kwargs_from(obs::OB) where {OB <:Observation}
Extracts the relevant encoder kwargs from the ObservationSeries as a NamedTuple. Assumes the same noise covariance for all observation vectors. Contains,
90
+
- `:obs_noise_cov` as (unbuilt) noise covariance of FIRST observation
91
+
- `:observation` as obs vector from all observations
92
+
"""
93
+
functionencoder_kwargs_from(os::OS) where {OS <:ObservationSeries}
0 commit comments