classPiiMultiFeatureDistance
#include <PiiMultiFeatureDistance.h>
A distance measure that combines many distance measures into one.
Inherits QList< PiiDistanceMeasure< FeatureIterator > * >
Description
PiiMultiFeatureDistance calculates distances between feature vectors that are composed of many feature vectors by concatenating them into one long vector. It is configured with an index matrix that tells the boundaries of sub-vectors within this long vector. For each sub-vector, a different distance measure may be used. By default, PiiMultiFeatureDistance sums the separate distance together to get the final distance. Other options are minimum, maximum and product.
Constructors and destructor
|
Create a new PiiMultiFeatureDistance. |
|
Public member functions
|
PiiMatrix< int >
|
( )
Get the sub-vector boundaries. |
|
( )
Get the combination mode. |
|
|
double
|
(
|
|
void
|
Set the boundaries of sub-vectors within the compound feature vector. |
|
void
|
Set the combination mode. |
|
void
|
Set a weight for each distance measure. |
|
QVector<
double >
|
( )
Get the weights for each distance measure. |
Function details
-
PiiMultiFeatureDistance
()Create a new PiiMultiFeatureDistance.
-
~PiiMultiFeatureDistance
() -
PiiMatrix< int > boundaries
()Get the sub-vector boundaries.
-
PiiClassification::DistanceCombinationMode combinationMode
()Get the combination mode.
-
double operator()
(- const FeatureIterator sample
- const FeatureIterator model
- int length
-
void setBoundaries
Set the boundaries of sub-vectors within the compound feature vector.
-
void setCombinationMode
Set the combination mode.
-
void setWeights
Set a weight for each distance measure.
The default weight is 1.
-
QVector< double > weights
()Get the weights for each distance measure.
Add a note
Not a single note added yet. Be the first, add yours.