Gaia

The Normalize analyzer normalizes real descriptors. More...

#include <normalize.h>

Inheritance diagram for gaia2::Normalize:
gaia2::Analyzer

Public Member Functions

 Normalize (const ParameterMap &params)
 
Transformation analyze (const DataSet *data, const Region &region) const
 
- Public Member Functions inherited from gaia2::Analyzer
 Analyzer (const ParameterMap &params)
 
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 RegioncheckFixedLength (const Region &region, 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 &region, Point &mmin, Point &mmax, Point &mean, Point &var) const
 
void getStatsWithOutliers (const DataSet &dataset, const Region &region, 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
 
- Protected Attributes inherited from gaia2::Analyzer
ParameterMap _params
 
QStringList _descriptorNames
 
QStringList _exclude
 

Additional Inherited Members

- Public Attributes inherited from gaia2::Analyzer
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...
 

Detailed Description

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.

Parameters
collectionsthe list of collections from which to gather the stats. the transformation will still apply to all of them, though. (default: [], meaning all of them)
descriptorNamesthe names of the descriptors to be included in the normalization. Only accepts real descriptors, can use wildcards. (default: "*").
exceptthe names of the descriptors to be removed from the selected list specified before. Can use wildcards. (default: "").
typethe type of normalization. Valid types are:
  • "range" which normalizes using the minimum and maximum values.
  • "variance" which normalizes using the variance of the values.
(default: "range").
independentindicates whether to normalize each dimension from a single descriptor independently, or if the vector should be normalized as a whole (default: false).
outliersthe 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).
applyClippingwhether to apply clipping, eg: fitting the values into the [0;1] range (default: false).

The documentation for this class was generated from the following files: