public class ZeroMeanTransform extends Object implements InPlaceInvertibleTransform
Constructor and Description |
---|
ZeroMeanTransform()
Creates a new object for transforming datapoints by centering the data
|
ZeroMeanTransform(DataSet dataset)
Creates a new object for transforming datapoints by centering the data
|
Modifier and Type | Method and Description |
---|---|
ZeroMeanTransform |
clone() |
void |
fit(DataSet dataset)
Fits this transform to the given dataset.
|
DataPoint |
inverse(DataPoint dp)
Applies the inverse or "reverse" transform to approximately undo the
effect of
DataTransform.transform(jsat.classifiers.DataPoint) to recover an
approximation of the original data point. |
void |
mutableInverse(DataPoint dp)
Mutates the given data point.
|
void |
mutableTransform(DataPoint dp)
Mutates the given data point.
|
boolean |
mutatesNominal()
By default returns
false . |
DataPoint |
transform(DataPoint dp)
Returns a new data point that is a transformation of the original data
point.
|
public ZeroMeanTransform()
public ZeroMeanTransform(DataSet dataset)
dataset
- the data to learn this transform frompublic void fit(DataSet dataset)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
dataset
- the dataset to fir this transform topublic DataPoint transform(DataPoint dp)
DataTransform
transform
in interface DataTransform
dp
- the data point to apply a transformation topublic void mutableInverse(DataPoint dp)
InPlaceInvertibleTransform
InvertibleTransform.inverse(jsat.classifiers.DataPoint)
mutableInverse
in interface InPlaceInvertibleTransform
dp
- the data point to alter with an inverse transformationpublic DataPoint inverse(DataPoint dp)
InvertibleTransform
DataTransform.transform(jsat.classifiers.DataPoint)
to recover an
approximation of the original data point.inverse
in interface InvertibleTransform
dp
- the transformed data pointpublic void mutableTransform(DataPoint dp)
InPlaceTransform
DataTransform.transform(jsat.classifiers.DataPoint)
.mutableTransform
in interface InPlaceTransform
dp
- the data point to alterpublic boolean mutatesNominal()
InPlaceTransform
false
. Only returns true if this transform
will mutableTransform the nominal feature values of a data point.mutatesNominal
in interface InPlaceTransform
true
if nominal feature values are mutated, false
otherwise.public ZeroMeanTransform clone()
clone
in interface DataTransform
clone
in interface InPlaceInvertibleTransform
clone
in interface InvertibleTransform
clone
in class Object
Copyright © 2017. All rights reserved.