public class WinsorScaler extends Scaler
| Constructor and Description |
|---|
WinsorScaler(smile.data.type.StructType schema,
double[] lo,
double[] hi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static WinsorScaler |
fit(smile.data.DataFrame data)
Learns transformation parameters from a dataset with 5% lower limit
and 95% upper limit.
|
static WinsorScaler |
fit(smile.data.DataFrame data,
double lower,
double upper)
Learns transformation parameters from a dataset.
|
static WinsorScaler |
fit(double[][] data)
Learns transformation parameters from a dataset.
|
static WinsorScaler |
fit(double[][] data,
double lower,
double upper)
Learns transformation parameters from a dataset.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittransformpublic WinsorScaler(smile.data.type.StructType schema,
double[] lo,
double[] hi)
schema - the schema of data.lo - the lower bound.hi - the upper bound.public static WinsorScaler fit(smile.data.DataFrame data)
data - The training data.public static WinsorScaler fit(smile.data.DataFrame data, double lower, double upper)
data - The training data.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 static WinsorScaler fit(double[][] data)
data - The training data.public static WinsorScaler fit(double[][] data, double lower, double upper)
data - The training data.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).