Skip to content

Commit 8e6c4b4

Browse files
committed
refac files
1 parent 5f92d2c commit 8e6c4b4

File tree

5 files changed

+35
-57
lines changed

5 files changed

+35
-57
lines changed

src/IncrementalInference.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ include("entities/FactorOperationalMemory.jl")
130130
include("Factors/GenericMarginal.jl")
131131
# Special belief types for sampling as a distribution
132132
include("entities/AliasScalarSampling.jl")
133-
include("entities/OptionalDensities.jl") # used in BeliefTypes.jl::SamplableBeliefs
133+
include("entities/ExtDensities.jl") # used in BeliefTypes.jl::SamplableBeliefs
134134
include("entities/BeliefTypes.jl")
135135

136136
include("services/HypoRecipe.jl")
@@ -234,9 +234,10 @@ include("services/SolverAPI.jl")
234234
# Symbolic tree analysis files.
235235
include("services/AnalysisTools.jl")
236236

237-
# optional densities on weakdeps
237+
# extension densities on weakdeps
238238
include("Serialization/entities/SerializingOptionalDensities.jl")
239239
include("Serialization/services/SerializingOptionalDensities.jl")
240+
include("entities/ExtDensitiesSerialization.jl")
240241

241242
include("../ext/WeakDepsPrototypes.jl")
242243

src/entities/OptionalDensities.jl renamed to src/entities/ExtDensities.jl

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -72,36 +72,6 @@ struct LevelSetGridNormal{T <: Real, H <: HeatmapGridDensity}
7272
heatmap::H
7373
end
7474

75-
##
76-
77-
"""
78-
$TYPEDEF
79-
80-
Build a full ODE solution into a relative factor to condense possible sensor data into a relative transformation,
81-
but keeping the parameter estimation process fluid. Assumes first and second variable in order
82-
are of same dimension and compatible manifolds, such that ODE runs from Xi to Xi+1 on all
83-
dimensions. Internal state vector can be decoupled onto different domain as needed.
84-
85-
Notes
86-
- Based on DifferentialEquations.jl
87-
- `getSample` step does the `solve(ODEProblem)` step.
88-
- `tspan` is taken from variables only once at object construction -- i.e. won't detect changed timestamps.
89-
- Regular factor evaluation is done as full dimension `AbstractRelativeRoots`, and is basic linear difference.
90-
91-
DevNotes
92-
- FIXME see 1025, `multihypo=` will not yet work.
93-
- FIXME Lots of consolidation and standardization to do, see RoME.jl #244 regarding Manifolds.jl.
94-
- TODO does not yet handle case where a factor spans across two timezones.
95-
"""
96-
struct DERelative{T <: InferenceVariable, P, D} <: AbstractRelativeMinimize
97-
domain::Type{T}
98-
forwardProblem::P
99-
backwardProblem::P
100-
""" second element of this data tuple is additional variables that will be passed down as a parameter """
101-
data::D
102-
specialSampler::Function
103-
end
104-
10575

10676
##
10777

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+

src/entities/ExtFactors.jl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
3+
"""
4+
$TYPEDEF
5+
6+
Build a full ODE solution into a relative factor to condense possible sensor data into a relative transformation,
7+
but keeping the parameter estimation process fluid. Assumes first and second variable in order
8+
are of same dimension and compatible manifolds, such that ODE runs from Xi to Xi+1 on all
9+
dimensions. Internal state vector can be decoupled onto different domain as needed.
10+
11+
Notes
12+
- Based on DifferentialEquations.jl
13+
- `getSample` step does the `solve(ODEProblem)` step.
14+
- `tspan` is taken from variables only once at object construction -- i.e. won't detect changed timestamps.
15+
- Regular factor evaluation is done as full dimension `AbstractRelativeRoots`, and is basic linear difference.
16+
17+
DevNotes
18+
- FIXME see 1025, `multihypo=` will not yet work.
19+
- FIXME Lots of consolidation and standardization to do, see RoME.jl #244 regarding Manifolds.jl.
20+
- TODO does not yet handle case where a factor spans across two timezones.
21+
"""
22+
struct DERelative{T <: InferenceVariable, P, D} <: AbstractRelativeMinimize
23+
domain::Type{T}
24+
forwardProblem::P
25+
backwardProblem::P
26+
""" second element of this data tuple is additional variables that will be passed down as a parameter """
27+
data::D
28+
specialSampler::Function
29+
end

src/entities/OptionalDensitiesSerialization.jl

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)