public class StandardScalerModel extends Object implements VectorTransformer
Constructor and Description |
---|
StandardScalerModel(boolean withMean,
boolean withStd,
Vector mean,
Vector variance) |
Modifier and Type | Method and Description |
---|---|
Vector |
mean() |
Vector |
transform(Vector vector)
Applies standardization transformation on a vector.
|
Vector |
variance() |
boolean |
withMean() |
boolean |
withStd() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform, transform
public boolean withMean()
public boolean withStd()
public Vector mean()
public Vector variance()
public Vector transform(Vector vector)
transform
in interface VectorTransformer
vector
- Vector to be standardized.0.0
for the column with zero variance.