public class TimeSeriesFeature
extends java.lang.Object
TimeSeriesTreeClassifier
classifier.| Modifier and Type | Class and Description |
|---|---|
static class |
TimeSeriesFeature.FeatureType
Feature types used within the time series tree.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_FEATURE_TYPES
Number of features used within the time series tree.
|
| Constructor and Description |
|---|
TimeSeriesFeature() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculateFeature(TimeSeriesFeature.FeatureType fType,
double[] vector,
int t1,
int t2,
boolean useBiasCorrection)
Function calculating the feature specified by the feature type
fType for a given instance vector of the interval
[t1, t2]. |
static double[] |
getFeatures(double[] vector,
int t1,
int t2,
boolean useBiasCorrection)
Function calculating all features occurring in
TimeSeriesFeature.FeatureType at once
using an online calculation approach for mean, standard deviation and the
slope. |
public static final int NUM_FEATURE_TYPES
public static double[] getFeatures(double[] vector,
int t1,
int t2,
boolean useBiasCorrection)
TimeSeriesFeature.FeatureType at once
using an online calculation approach for mean, standard deviation and the
slope.vector - The instance's vector which is used to calculate the featurest1 - Start of the intervalt2 - End of the interval (inclusive)useBiasCorrection - Indicator whether the bias (Bessel's) correction should be used
for the standard deviation calculationTimeSeriesTreeLearningAlgorithm#NUM_FEATURE_TYPES storing the
generated feature values.public static double calculateFeature(TimeSeriesFeature.FeatureType fType, double[] vector, int t1, int t2, boolean useBiasCorrection)
fType for a given instance vector of the interval
[t1, t2].fType - The feature type to be calculatedinstance - The instance's vector which values are usedt1 - Start of the intervalt2 - End of the interval (inclusive)useBiasCorrection - Indicator whether the bias (Bessel's) correction should be used
for the standard deviation calculation