#include <Numerical.h>
Inheritance diagram for NumericalContinuousFeature:
Public Member Functions | |
virtual double | getPosition () const |
virtual double | getDistance (Feature *f) const |
virtual void | moveTowards (Feature *f, double factor) |
virtual string | serialize () const |
virtual void | unserialize (string value) |
virtual featureparams | write () const |
virtual void | read (featureparams *param) |
virtual Feature * | clone () const |
virtual void | aggregate (aggregatelist samples) |
virtual FeatureType | getType () const |
virtual const string | getName () const |
const double | getVal () const |
const double | getMin () const |
const double | getMax () const |
virtual string | toString () const |
Protected Member Functions | |
NumericalContinuousFeature (double *minval, double *maxval) | |
NumericalContinuousFeature (double *minval, double *maxval, double val) | |
Protected Attributes | |
double | val |
double * | minval |
double * | maxval |
A feature of type numerical_continuous. Please see NumericalDiscreteFeature for an explanation of the details, which is also valid for this class.
|
Feature constructor This constructor initializes the feature with a random value and should thus only be used for creating e.g. prototypes of points in a clustering space. For creating a specific sample of a feature, the second constructor should be used.
|
|
Sample constructor This constructor initializes the feature with a specific value and should thus be used for samples.
|
|
Aggregate a sample values from other sources
Implements Feature. |
|
Clone a feature A feature must be able to clone itself. This is typically implemented with a copy constructor, but should return a new object. Implements Feature. |
|
Calculates the distance between two features
Implements Feature. |
|
Query a features name
Implements Feature. Reimplemented in AudioBandFeature, AudioMeanFeature, and WlanActiveSignalLevelFeature. |
|
Query a features position
Implements Feature. |
|
Query a features type
Implements Feature. |
|
|
|
Move feature Moves the feature towards a given sample value by the specified factor (factor times the distance). If the factor is 0, the old feature value must not change. If the factor is 1, the new feature value should be equivalent to the sample s.
Implements Feature. |
|
Load feature from persistant data Initializes the persistant feature data from the given representation.
Implements PersistantFeature. |
|
Serialize a samples data to a string
Implements Feature. |
|
This is only for testing. Implements Feature. Reimplemented in AudioBandFeature, AudioMeanFeature, and WlanActiveSignalLevelFeature. |
|
Unserialize a samples data from a string
Implements Feature. |
|
Externalize feature
Implements PersistantFeature. |
|
A reference to the static, persistant maximum value seen so far. |
|
A reference to the static, persistant minimum value seen so far. |
|
The feature value. |