Gaia
|
The Normalize analyzer normalizes real descriptors. More...
#include <normalize.h>
Public Member Functions | |
Normalize (const ParameterMap ¶ms) | |
Transformation | analyze (const DataSet *data, const Region ®ion) const |
![]() | |
Analyzer (const ParameterMap ¶ms) | |
virtual Transformation | analyze (const DataSet *dataset) const |
void | checkDataSet (const DataSet *dataset) const |
Checks that the given dataset is valid. More... | |
void | checkMinPoints (const DataSet *dataset, int n) const |
Checks that the given dataset as at least the specified number of points. More... | |
const Region & | checkFixedLength (const Region ®ion, const PointLayout &layout) const |
Checks that the given Region only contains fixed-length descriptors and throws an exception if not. More... | |
Protected Member Functions | |
void | getStats (const DataSet &dataset, const Region ®ion, Point &mmin, Point &mmax, Point &mean, Point &var) const |
void | getStatsWithOutliers (const DataSet &dataset, const Region ®ion, Point &mmin, Point &mmax, Point &mean, Point &var) const |
ParameterMap | getNormalizationCoeffs (const QString &descriptorName, const Point &mmin, const Point &mmax, const Point &mean, const Point &var) const |
Protected Attributes | |
Real | _outliers |
![]() | |
ParameterMap | _params |
QStringList | _descriptorNames |
QStringList | _exclude |
Additional Inherited Members | |
![]() | |
QString | name |
Name for the algorithm, usually the key that was used to instantiate it from the factory. | |
QStringList | validParams |
List of valid parameters this analyzer accepts. More... | |
The Normalize analyzer normalizes real descriptors.
There are various ways of doing normalization, the most common being to just normalize the values so that they fall within the range [0; 1].
NB: This algorithm does not yet work with multi-segments points.
collections | the list of collections from which to gather the stats. the transformation will still apply to all of them, though. (default: [], meaning all of them) |
descriptorNames | the names of the descriptors to be included in the normalization. Only accepts real descriptors, can use wildcards. (default: "*"). |
except | the names of the descriptors to be removed from the selected list specified before. Can use wildcards. (default: ""). |
type | the type of normalization. Valid types are:
|
independent | indicates whether to normalize each dimension from a single descriptor independently, or if the vector should be normalized as a whole (default: false). |
outliers | the ratio (between 0 and 1) of outliers when computing the statistics used for normalization. Outliers are the values which are not taken into account because they have too extreme values. A value of -1 means do not use outliers (default: -1). |
applyClipping | whether to apply clipping, eg: fitting the values into the [0;1] range (default: false). |