|
CEDRIC
Revision_backup-2009-02
|
#include <EventMap.h>
Classes | |
| struct | Coordinate |
| A co-ordinate is represented as 2D point (x,y) on the map. More... | |
| struct | SignatureSampler |
Public Types | |
| enum | Progress { STEP_INITIAL = 0, STEP_SUBSET = 10, STEP_DIST_MATRIX = 70, STEP_MDS = 95, STEP_STRESS = 100, NUM_STEPS = 100 } |
| typedef ublas::matrix< double > | Matrix |
| typedef ublas::vector< double > | Vector |
| typedef EarthMoversDistance < EventSignature, EventFeature > | EMD |
Public Member Functions | |
| void | print (Matrix A, std::ostream &os=std::cout) |
| EventMap (const GroundDistance< EventFeature > &gd) | |
| EventMap (EventMap &other) | |
| Copy constructor (pointer to progress indicator is not copied and must be specified seperately for copy) More... | |
| void | create (EventSignatureSet &signatures, SignatureSampler &sel) |
| Create map for subset of signatures computed with the SignatureSampler sel. More... | |
| void | setProgressIndicator (ProgressIndicator *pi) |
| Specify the progress indicator to use. More... | |
| bool | wasCanceled () const |
| Return true if create() was cancelled via the progress indicator. More... | |
| int | numCoordinates () const |
| Return the number of co-ordinates in map. More... | |
| int | phast2mapIndex (unsigned int phastIndex) const |
| int | getIndex (unsigned int i) const |
| Return the Phast index of co-ordinate i. More... | |
| Coordinate | getCoordinate (unsigned int i) const |
| Return Coordinate i. More... | |
| double | getDissimilarity (unsigned int i, unsigned int j) const |
| Return dissimilarity from point i to point j. More... | |
| double | getRawStress (unsigned int i) |
| Return stress for coordinate i. More... | |
| double | getKruskalPointStress (unsigned int i) |
| double | stressMean () const |
| double | stressVar () const |
| double | stressNorm () const |
| double | stressKruskal () const |
| double | minRawStress () |
| Return minimum stress. More... | |
| double | maxRawStress () |
| Return maximum stress. More... | |
| Matrix & | distanceMatrix () |
| double | dist (Coordinate c1, Coordinate c2) const |
| Euclidean distance (needed for stress calculation) More... | |
Protected Types | |
| enum | PointStressType { BortStress, KruskalStress } |
Protected Member Functions | |
| bool | progress (int step) |
| void | calculateStress () |
| double | calculateKruskalStress () const |
| Calculate overall Kruskal stress. More... | |
| double | calculatePointStress (int index, PointStressType type) const |
| Calculate raw point stress. More... | |
Compute distance matrix of EventSignatures via Earth-Movers-Distance and on this perform Multidimensional Scaling to produce a 2D map of events.
| typedef EarthMoversDistance< EventSignature, EventFeature > EventMap::EMD |
| typedef ublas::matrix<double> EventMap::Matrix |
| typedef ublas::vector<double> EventMap::Vector |
|
protected |
| enum EventMap::Progress |
|
inline |
| EventMap::EventMap | ( | EventMap & | other | ) |
Copy constructor (pointer to progress indicator is not copied and must be specified seperately for copy)
|
protected |
Calculate overall Kruskal stress.
References dist(), getCoordinate(), and numCoordinates().
Referenced by calculateStress().
|
protected |
Calculate raw point stress.
References dist(), getCoordinate(), KruskalStress, and numCoordinates().
Referenced by calculateStress().
|
protected |
References BortStress, calculateKruskalStress(), calculatePointStress(), dist(), getCoordinate(), KruskalStress, and numCoordinates().
Referenced by create().
| void EventMap::create | ( | EventSignatureSet & | signatures, |
| SignatureSampler & | sel | ||
| ) |
Create map for subset of signatures computed with the SignatureSampler sel.
References calculateStress(), dist(), print(), progress(), CMDS< ValueType >::project(), STEP_DIST_MATRIX, STEP_MDS, STEP_STRESS, STEP_SUBSET, and EarthMoversDistance< T, F >::value().
Referenced by EventNavigator::createMap().
|
inline |
Euclidean distance (needed for stress calculation)
References EventMap::Coordinate::x, and EventMap::Coordinate::y.
Referenced by calculateKruskalStress(), calculatePointStress(), calculateStress(), create(), and EventNavigator::MapSelection::localStress().
|
inline |
Referenced by EventNavigator::computeClustering().
|
inline |
Return Coordinate i.
Referenced by calculateKruskalStress(), calculatePointStress(), calculateStress(), EventNavigator::MapSelection::localStress(), and EventNavigator::showMap().
|
inline |
Return dissimilarity from point i to point j.
Referenced by EventNavigator::MapSelection::localStress().
|
inline |
Return the Phast index of co-ordinate i.
Referenced by EventNavigator::computeClustering(), and EventNavigator::showMap().
|
inline |
References numCoordinates().
Referenced by EventNavigator::showMap().
|
inline |
Return stress for coordinate i.
References numCoordinates().
Referenced by EventNavigator::MapSelection::MapSelection(), and EventNavigator::showMap().
| double EventMap::maxRawStress | ( | ) |
Return maximum stress.
| double EventMap::minRawStress | ( | ) |
Return minimum stress.
|
inline |
Return the number of co-ordinates in map.
Referenced by calculateKruskalStress(), calculatePointStress(), calculateStress(), EventNavigator::computeOverviewMap(), EventNavigator::createMap(), getKruskalPointStress(), getRawStress(), EventNavigator::selectEventUserMode(), and EventNavigator::showMap().
|
inline |
Return the co-ordinate index for the event with specified Phast index
Referenced by EventNavigator::MapSelection::MapSelection().
|
protected |
References ProgressIndicator::finish(), NUM_STEPS, ProgressIndicator::poll(), ProgressIndicator::setLabel(), ProgressIndicator::setRange(), ProgressIndicator::start(), STEP_DIST_MATRIX, STEP_INITIAL, STEP_MDS, and STEP_SUBSET.
Referenced by create().
|
inline |
Specify the progress indicator to use.
Referenced by EventNavigator::createMap().
|
inline |
Referenced by EventNavigator::immerse().
|
inline |
Referenced by EventNavigator::showMap().
|
inline |
Referenced by EventNavigator::showMap().
|
inline |
|
inline |
Return true if create() was cancelled via the progress indicator.
References ProgressIndicator::wasCanceled().
Referenced by EventNavigator::computeOverviewMap(), EventNavigator::immerse(), and EventNavigator::selectEventUserMode().
1.8.6