You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
454 B
30 lines
454 B
14 years ago
|
#ifndef NORMALIZER_HPP
|
||
|
#define NORMALIZER_HPP
|
||
|
|
||
|
#include "../Projector.h"
|
||
|
|
||
|
|
||
|
class Normalizer : public Projector {
|
||
|
private:
|
||
|
double* range_min;
|
||
|
double* range_max;
|
||
|
double* offset;
|
||
|
double factor;
|
||
|
|
||
|
void allocate();
|
||
|
void deallocate();
|
||
|
|
||
|
void init_range();
|
||
|
void update_range();
|
||
|
void finish_range();
|
||
|
|
||
|
protected:
|
||
|
virtual void project(const double* point);
|
||
|
|
||
|
public:
|
||
|
Normalizer(unsigned int dimension);
|
||
|
virtual ~Normalizer();
|
||
|
};
|
||
|
|
||
|
#endif // NORMALIZER_HPP
|