#include <CloseComponentsMerger.h>
Public Types | |
typedef std::pair < SingleStatePtr, typename SingleStateMap::iterator > | MinDistResult |
typedef std::multimap< double, SingleStatePtr > | SingleStateMap |
Public Types inherited from MultiGaussianStateMerger< N > | |
typedef MultiGaussianState< N > | MultiState |
typedef SingleGaussianState< N > | SingleState |
Public Member Functions | |
CloseComponentsMerger * | clone () const override |
CloseComponentsMerger (int n, const DistanceBetweenComponents< N > *distance) | |
MultiState | merge (const MultiState &mgs) const override |
MultiState | mergeOld (const MultiState &mgs) const |
Public Member Functions inherited from MultiGaussianStateMerger< N > | |
virtual | ~MultiGaussianStateMerger () |
Private Types | |
using | MultiState = MultiGaussianState< N > |
using | SingleState = SingleGaussianState< N > |
using | SingleStatePtr = std::shared_ptr< SingleState > |
Private Member Functions | |
MinDistResult | compWithMinDistToLargestWeight (SingleStateMap &) const |
Private Attributes | |
DeepCopyPointerByClone < DistanceBetweenComponents< N > > | theDistance |
int | theMaxNumberOfComponents |
Additional Inherited Members | |
Protected Types inherited from MultiGaussianStateMerger< N > | |
typedef std::vector< SingleState > | SGSVector |
Protected Member Functions inherited from MultiGaussianStateMerger< N > | |
MultiGaussianStateMerger () | |
Merging of a Gaussian mixture by clustering components which are close to one another. The actual calculation of the distance between components is done by a specific (polymorphic) class, given at construction time.
Definition at line 18 of file CloseComponentsMerger.h.
typedef std::pair<SingleStatePtr, typename SingleStateMap::iterator> CloseComponentsMerger< N >::MinDistResult |
Definition at line 38 of file CloseComponentsMerger.h.
|
private |
Definition at line 21 of file CloseComponentsMerger.h.
|
private |
Definition at line 20 of file CloseComponentsMerger.h.
typedef std::multimap<double, SingleStatePtr> CloseComponentsMerger< N >::SingleStateMap |
Definition at line 37 of file CloseComponentsMerger.h.
|
private |
Definition at line 22 of file CloseComponentsMerger.h.
CloseComponentsMerger< N >::CloseComponentsMerger | ( | int | n, |
const DistanceBetweenComponents< N > * | distance | ||
) |
Referenced by CloseComponentsMerger< N >::clone().
|
inlineoverridevirtual |
Implements MultiGaussianStateMerger< N >.
Definition at line 27 of file CloseComponentsMerger.h.
References CloseComponentsMerger< N >::CloseComponentsMerger().
|
private |
|
overridevirtual |
Method which does the actual merging. Returns a trimmed MultiGaussianState.
Implements MultiGaussianStateMerger< N >.
MultiState CloseComponentsMerger< N >::mergeOld | ( | const MultiState & | mgs | ) | const |
|
private |
Definition at line 45 of file CloseComponentsMerger.h.
|
private |
Definition at line 44 of file CloseComponentsMerger.h.