MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / removeGivenOffset

Method removeGivenOffset

src/error_models/GaussianMixture.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82 template<>
83 void GaussianMixture<1>::removeGivenOffset(const Vector1 &Offset)
84 {
85 int NumberOfComponents = this->getNumberOfComponents();
86
87 /** remove offset of the given component */
88 for(int i = 0; i < NumberOfComponents; ++i)
89 {
90 _Mixture.at(i).setMean(_Mixture.at(i).getMean() - Offset);
91 }
92 }
93
94 template <>
95 Data GaussianMixture<1>::exportToStateData(double Timestamp)

Callers

nothing calls this directly

Calls 3

getNumberOfComponentsMethod · 0.95
setMeanMethod · 0.45
getMeanMethod · 0.45

Tested by

no test coverage detected