#include <MultiGaussianStateAssembler.h>
Public Member Functions | |
void | addState (const MultiState &state) |
void | addState (const SingleStatePtr &state) |
MultiState | combinedState () |
MultiState | combinedState (const float weight) |
MultiGaussianStateAssembler ()=default | |
Private Types | |
typedef MultiGaussianState< N > | MultiState |
typedef SingleGaussianState< N > | SingleState |
typedef MultiGaussianState< N >::SingleStateContainer | SingleStateContainer |
typedef MultiGaussianState< N >::SingleStatePtr | SingleStatePtr |
Private Member Functions | |
void | addStateVector (const SingleStateContainer &) |
bool | prepareCombinedState () |
void | removeSmallWeights () |
MultiState | reweightedCombinedState (const double) const |
Private Attributes | |
bool | combinationDone = false |
double | minFractionalWeight = 1.e-16 |
SingleStateContainer | theStates |
double | theValidWeightSum = 0 |
Collects gaussian states and returns a MultiGaussianState.
Definition at line 14 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 17 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 16 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 19 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 18 of file MultiGaussianStateAssembler.h.
|
default |
void MultiGaussianStateAssembler< N >::addState | ( | const MultiState & | state | ) |
Adds a new MultiGaussianState to the list of components
void MultiGaussianStateAssembler< N >::addState | ( | const SingleStatePtr & | state | ) |
|
private |
Adds a vector of gaussian states to the list of components
MultiState MultiGaussianStateAssembler< N >::combinedState | ( | ) |
Returns the resulting MultiGaussianState with weight = sum of all valid components.
MultiState MultiGaussianStateAssembler< N >::combinedState | ( | const float | weight | ) |
Returns the resulting MultiGaussianState renormalised to specified weight.
|
private |
Preparation of combined state (cleaning & sorting)
|
private |
Removes states with negligible weight (no renormalisation of total weight!).
|
private |
Returns the resulting MultiGaussianState with user-supplied total weight.
|
private |
Definition at line 67 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 65 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 70 of file MultiGaussianStateAssembler.h.
|
private |
Definition at line 69 of file MultiGaussianStateAssembler.h.