public interface DataTransform extends Cloneable, Serializable
fit method
. Many DataTransforms will include a
constructor that takes a dataset as a parameter. These transforms will fit
the data when constructed, and exist for convenience.Modifier and Type | Method and Description |
---|---|
DataTransform |
clone() |
void |
fit(DataSet data)
Fits this transform to the given dataset.
|
DataPoint |
transform(DataPoint dp)
Returns a new data point that is a transformation of the original data
point.
|
DataPoint transform(DataPoint dp)
dp
- the data point to apply a transformation tovoid fit(DataSet data)
FailedToFitException
exception may be
thrown.data
- the dataset to fir this transform toFailedToFitException
- if the dataset type is not compatible with
the transformDataTransform clone()
Copyright © 2017. All rights reserved.