|
CEDRIC
Revision_backup-2009-02
|
Create signature for "physical" event (check numFeatures()>0 to recognize "physical" event afterwards). More...
#include <EventSignature.h>
Public Types | |
| enum | Attributes { ATT_CHARGE =0, ATT_MOMENTUM, ATT_ZFIRST, ATT_LENGTH, ATT_LAST_DIP_ANGLE, ATT_LAST_AZI_ANGLE, NUM_ATT } |
| enum | WeightType { NormalizedWeight, UnitWeight } |
Public Member Functions | |
| EventSignature () | |
| EventSignature (const PaEvent &event, int index, int weightType=NormalizedWeight) | |
| const std::vector< EventFeature > & | getFeaturesAsVector () const |
| int | index () const |
| Return Phast event index if available, else return -1. More... | |
| double | pivotDistance () const |
| Return distance to pivot. More... | |
| int | label () const |
| Return cluster label. More... | |
| bool | operator< (const EventSignature &other) const |
| Compare pivot distance of this to other EventSignature. More... | |
| void | setPivotDistance (double d) |
| void | setLabel (int l) |
Public Member Functions inherited from Signature< EventFeature > | |
| int | numFeatures () const |
| const EventFeature & | feature (int i) const |
| float | weight (int i) const |
| void | add (const EventFeature &f, float w) |
| void | del (int i) |
Protected Member Functions | |
| void | normalizeWeights () |
Protected Member Functions inherited from Signature< EventFeature > | |
| void | clear () |
Additional Inherited Members | |
Protected Attributes inherited from Signature< EventFeature > | |
| std::vector< EventFeature > | m_features |
| std::vector< float > | m_weights |
Create signature for "physical" event (check numFeatures()>0 to recognize "physical" event afterwards).
Tries to filter real physical event (i.e. the one which triggered) by applying following criteria:
|
inline |
| EventSignature::EventSignature | ( | const PaEvent & | event, |
| int | index, | ||
| int | weightType = NormalizedWeight |
||
| ) |
|
inline |
References Signature< EventFeature >::m_features.
|
inline |
Return Phast event index if available, else return -1.
Referenced by EventSignature(), and SignatureIndexEquals::operator()().
|
inline |
Return cluster label.
Referenced by EventNavigator::selectEventUserMode(), and EventNavigator::showMap().
|
protected |
References Signature< EventFeature >::m_weights, and Signature< EventFeature >::numFeatures().
Referenced by EventSignature().
|
inline |
Compare pivot distance of this to other EventSignature.
References pivotDistance().
|
inline |
Return distance to pivot.
Referenced by SignaturePivotDistanceGreater::operator()(), and operator<().
|
inline |
Referenced by EventNavigator::computeClustering().
|
inline |
Referenced by EventNavigator::immerse().
1.8.6