class MeanVarNorm

In the constructor, it computes the mean and the standard deviation over all the frames in the given DataSet (by default, only for inputs).

Inheritance:


Public Fields

[more]int n_inputs
Input frame size
[more]int n_targets
Target frame size
[more]real* inputs_mean
Inputs means array
[more]real* targets_mean
Targets means array
[more]real* inputs_stdv
Inputs standard deviations array
[more]real* targets_stdv
Targets standard deviations array

Public Methods

[more] MeanVarNorm(DataSet* data, bool norm_inputs=true, bool norm_targets=false)
[more]virtual void loadXFile(XFile* file)
Load means and standard deviations
[more]virtual void saveXFile(XFile* file)
Save means and standard deviations


Inherited from PreProcessing:

Public Methods

ovirtual void preProcessInputs(Sequence* inputs)
ovirtual void preProcessTargets(Sequence* targets)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

In the constructor, it computes the mean and the standard deviation over all the frames in the given DataSet (by default, only for inputs). Then, when calling pre-processing methods, it normalizes each column by this computed mean and stdv. (substracts the mean, then divides by the standard deviation).

As a result, the mean of the full set of frames given by the concatenation of all calls to setExample() will be 0, and the variance will be 1.

oint n_inputs
Input frame size

oint n_targets
Target frame size

oreal* inputs_mean
Inputs means array

oreal* targets_mean
Targets means array

oreal* inputs_stdv
Inputs standard deviations array

oreal* targets_stdv
Targets standard deviations array

o MeanVarNorm(DataSet* data, bool norm_inputs=true, bool norm_targets=false)

ovirtual void loadXFile(XFile* file)
Load means and standard deviations

ovirtual void saveXFile(XFile* file)
Save means and standard deviations


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.