Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametric getParametricMeasurement and CalcFactorMahalanobis #1140

Merged
merged 7 commits into from
Jan 31, 2021

Conversation

Affie
Copy link
Member

@Affie Affie commented Jan 29, 2021

A step towards consolidation creates residual using eltype of variable[1].
residual not buffered though, but not to bad.

src/ParametricUtils.jl Outdated Show resolved Hide resolved
@codecov-io
Copy link

Codecov Report

Merging #1140 (ed9f280) into master (6ddd346) will increase coverage by 2.00%.
The diff coverage is 63.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1140      +/-   ##
==========================================
+ Coverage   70.27%   72.27%   +2.00%     
==========================================
  Files          55       55              
  Lines        4282     4638     +356     
==========================================
+ Hits         3009     3352     +343     
- Misses       1273     1286      +13     
Impacted Files Coverage Δ
src/FactorGraph.jl 73.75% <ø> (+1.79%) ⬆️
src/ParametricUtils.jl 67.00% <63.15%> (-0.79%) ⬇️
src/SolverAPI.jl 81.45% <100.00%> (+0.50%) ⬆️
src/ODE/DERelative.jl 100.00% <0.00%> (ø)
src/FactorGraphTypes.jl 100.00% <0.00%> (ø)
src/SubGraphFunctions.jl 100.00% <0.00%> (ø)
src/CanonicalGraphExamples.jl 100.00% <0.00%> (ø)
src/Variables/DefaultVariables.jl 100.00% <0.00%> (ø)
src/Flux/FluxModelsDistribution.jl 100.00% <0.00%> (ø)
src/ExplicitDiscreteMarginalizations.jl 96.00% <0.00%> (+0.16%) ⬆️
... and 39 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ddd346...ed9f280. Read the comment docs.

cfp.calcfactor!(res, cfp.meanVal, variables...)
res = Vector{eltype(variables[1])}(undef, length(cfp.meas))
iΣ = cfp.iΣ
cfp.calcfactor!(res, cfp.meas, variables...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is where the action is at (to consolidate nonparametric and parametric) and looks right to me, thanks!

PS, afterward we can worry about expanding both '(measurement..., variables...)'

@Affie Affie merged commit 85bf682 into master Jan 31, 2021
@Affie Affie deleted the feat/21Q1/parametricCalcFactor branch February 9, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants