Package ucar.unidata.data.grid
Class GridUtil.RobustScaler
java.lang.Object
ucar.unidata.data.grid.GridUtil.RobustScaler
- Enclosing class:
GridUtil
The formula of the Robustscaler in sklearn is:
X_scale = (X_i - X_med)/(X_percentile75 - X_percentile25)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
fit
(double[][] data) static void
fit
(float[][] data) static void
static double[][]
toDoubleArray
(float[][] arr) static float[][]
toFloatArray
(double[][] arr) static double[][]
transform
(double[][] data) static float[][]
transform
(float[][] data)
-
Constructor Details
-
RobustScaler
public RobustScaler()
-
-
Method Details
-
fit
public static void fit(double[][] data) -
fit
public static void fit(float[][] data) -
toDoubleArray
public static double[][] toDoubleArray(float[][] arr) -
toFloatArray
public static float[][] toFloatArray(double[][] arr) -
transform
public static double[][] transform(double[][] data) -
transform
public static float[][] transform(float[][] data) -
main
-