Package tech.tablesaw.util
Class DoubleArrays
- java.lang.Object
-
- tech.tablesaw.util.DoubleArrays
-
public class DoubleArrays extends Object
Utility functions for creating 2D double arrays from columns and other arrays
-
-
Constructor Summary
Constructors Constructor Description DoubleArrays()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[][]
to2dArray(double[] x, double[] y)
static double[][]
to2dArray(List<NumericColumn<?>> columnList)
static double[][]
to2dArray(NumericColumn<?>... columns)
static double[][]
to2dArray(NumericColumn<?> x, NumericColumn<?> y)
static double[][]
to2dArray(TableSliceGroup views, int columnNumber)
static double[]
toN(int n)
Returns a double[] initialized with the values from 0 to n-1, inclusive;
-
-
-
Method Detail
-
toN
public static double[] toN(int n)
Returns a double[] initialized with the values from 0 to n-1, inclusive;
-
to2dArray
public static double[][] to2dArray(NumericColumn<?>... columns)
-
to2dArray
public static double[][] to2dArray(List<NumericColumn<?>> columnList)
-
to2dArray
public static double[][] to2dArray(TableSliceGroup views, int columnNumber)
-
to2dArray
public static double[][] to2dArray(double[] x, double[] y)
-
to2dArray
public static double[][] to2dArray(NumericColumn<?> x, NumericColumn<?> y)
-
-