public class WinsorScaler extends Scaler
| Modifier and Type | Field and Description |
|---|---|
protected double |
lower
Lower limit.
|
protected double |
upper
Upper limit.
|
copy| Constructor and Description |
|---|
WinsorScaler(double lower,
double upper)
Constructor.
|
WinsorScaler(double lower,
double upper,
boolean copy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
learn(smile.data.Attribute[] attributes,
double[][] data)
Learns transformation parameters from a dataset.
|
java.lang.String |
toString() |
learn, transformpublic WinsorScaler(double lower,
double upper)
lower - the lower limit in terms of percentiles of the original
distribution (say 5th percentile).upper - the upper limit in terms of percentiles of the original
distribution (say 95th percentile).public WinsorScaler(double lower,
double upper,
boolean copy)
lower - the lower limit in terms of percentiles of the original
distribution (say 5th percentile).upper - the upper limit in terms of percentiles of the original
distribution (say 95th percentile).copy - If false, try to avoid a copy and do inplace scaling instead.public void learn(smile.data.Attribute[] attributes,
double[][] data)
FeatureTransform