CSIM: DiscretizationPreprocessor Class Reference

DiscretizationPreprocessor Class Reference

#include <discretizationpreprocessor.h>

Inheritance diagram for DiscretizationPreprocessor:

Preprocessor Advancable csimClass List of all members.

Detailed Description

Implementation of a discretization of the input. Every row x_i of the input vector is transformed into $x_i' = round (x_i / \epsilon_i)$ .

Public Member Functions

Private Attributes

  • double * epsilon
    The parameters of the discretization.

Friends


Constructor & Destructor Documentation

DiscretizationPreprocessor::DiscretizationPreprocessor unsigned int  rows = 1  ) 
 

Constructs a new discretization. Initially the transformation is an identical transformation x'=x.

Parameters:
rows Number of rows in each input vector.

DiscretizationPreprocessor::~DiscretizationPreprocessor void   ) 
 

Frees the memory.


Member Function Documentation

double * DiscretizationPreprocessor::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 rows elements are in the format [eps_1, eps_2, ..., eps_n], where the transformations are $round(x_i / eps_i)$ .

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!

Implements Preprocessor.

string DiscretizationPreprocessor::getFormatDescription  )  [virtual]
 

Returns a textual description of the representation format for import/export - Representation.

Implements Preprocessor.

int DiscretizationPreprocessor::importRepresentation const double *  rep,
int  rep_length
[virtual]
 

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 rows elements are in the format [eps_1, eps_2, ..., eps_n], where the transformations are $round(x_i / eps_i)$ .
rep_length Length of the representation vector.
Returns:
-1 if an error occured, 1 for success.

Implements Preprocessor.

int DiscretizationPreprocessor::process const double *  S,
double *  X
[virtual]
 

Preprocess a state representation.

Parameters:
S State of the liquid (= filtered response of the neural microcircuit).
X Target vector where to save the results.
Returns:
-1 if an error occured, 1 for success.

Implements Preprocessor.

void DiscretizationPreprocessor::reset  )  [virtual]
 

Resets the information stored within the preprocessor.

Implements Preprocessor.


 
(C) 2003, Thomas Natschläger last modified 07/10/2006