Constructs a new linear transformation. Initially the transformation is an identical transformation x'=x.
Parameters:
rows
Number of rows in each input vector.
LinearPreprocessor::~LinearPreprocessor
(
void
)
Frees the memory.
Member Function Documentation
double * LinearPreprocessor::exportRepresentation
(
int *
rep_length
)
[virtual]
Exports the representation of this preprocessor for use in external objects. Format: first number gives the number of rows for input vectors, the following 2*rows elements are in the format [a_1, b_1, a_2, b_2, ..., a_n, b_n], where the transformations are .
Parameters:
rep_length
Length of the representation vector.
Returns:
A list of parameters that represent the preprocessor.
Warning:
Do not forget to free the memory reserved for the representation!
Imports the data from an externally (e.g. Matlab) trained preprocessor.
Parameters:
rep
Representation of the preprocessor as a double vector. Format: first number gives the number of rows for input vectors, the following 2*rows elements are in the format [a_1, b_1, a_2, b_2, ..., a_n, b_n], where the transformations are .