public abstract class ADerivateFilter extends java.lang.Object implements IFilter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
withBoundaries
Flag that states wheter the filter should add a padding to the derivate
assure that is has the same length as the origin time series or not.
|
| Constructor and Description |
|---|
ADerivateFilter() |
ADerivateFilter(boolean withBoundaries) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract double[] |
derivate(double[] t)
Calculates the derivate of a time series.
|
protected abstract double[] |
derivateWithBoundaries(double[] t)
Calcuates the derivates of a time series.
|
void |
fit(double[] input)
The function only fits a single instance of the dataset
|
void |
fit(double[][] input) |
void |
fit(TimeSeriesDataset input)
the function computes the needed information for the transform function.
|
double[] |
fitTransform(double[] input)
the function fit and transforms a single instance
|
double[][] |
fitTransform(double[][] input) |
TimeSeriesDataset |
fitTransform(TimeSeriesDataset input)
a utility function to avoid the added effort of calling the fit and transform
function separate
|
double[] |
transform(double[] input)
This function transforms only a single instance.
|
double[][] |
transform(double[][] input) |
TimeSeriesDataset |
transform(TimeSeriesDataset input)
represents a function working on a dataset by transforming the dataset itself.
|
protected boolean withBoundaries
public ADerivateFilter(boolean withBoundaries)
public ADerivateFilter()
protected abstract double[] derivate(double[] t)
t - The time series to calculate the derivate for.protected abstract double[] derivateWithBoundaries(double[] t)
derivate calculation, this method is guaranteed to return a derivate
that has the same length than the original time series. This is accomplished
via padding.t - The time series to calculate the derivate for.public TimeSeriesDataset transform(TimeSeriesDataset input)
IFilterpublic double[] transform(double[] input)
IFilterpublic double[][] transform(double[][] input)
public void fit(TimeSeriesDataset input)
IFilterpublic void fit(double[] input)
IFilterpublic TimeSeriesDataset fitTransform(TimeSeriesDataset input)
IFilterfitTransform in interface IFilterinput - the dataset that is to be transfromedpublic double[] fitTransform(double[] input)
IFilterfitTransform in interface IFilterinput - the to fit and transform instancepublic double[][] fitTransform(double[][] input)
fitTransform in interface IFilter