public class ArrayUtils
extends java.lang.Object
| Constructor and Description |
|---|
ArrayUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[][] |
append(java.lang.String[][] a,
java.lang.String[]... b) |
static java.lang.String[] |
append(java.lang.String[] a,
java.lang.String... b) |
static double[] |
difference(double[] array) |
static double[] |
eleDiff(double[] from) |
static double[] |
flat(double[][] arr) |
static boolean |
isBoolColumn(java.lang.String[] domains)
Check to see if a column is a boolean column.
|
static double |
l2norm(double[] x) |
static double |
l2norm2(double[] x) |
static double |
l2norm2(double[] x,
boolean skipLast) |
static int |
maxIndex(double[] from) |
static int |
maxIndex(double[] from,
java.util.Random rand) |
static double[] |
nanArray(int len) |
static double[] |
signum(double[] array) |
static void |
sort(int[] idxs,
double[] values)
Sort an integer array of indices based on values
Updates indices in place, keeps values the same
|
static void |
sort(int[] idxs,
double[] values,
int cutoff) |
public static double[] nanArray(int len)
public static double l2norm(double[] x)
public static double l2norm2(double[] x)
public static double l2norm2(double[] x,
boolean skipLast)
public static double[] flat(double[][] arr)
public static double[] eleDiff(double[] from)
public static boolean isBoolColumn(java.lang.String[] domains)
domains - public static int maxIndex(double[] from,
java.util.Random rand)
public static int maxIndex(double[] from)
public static void sort(int[] idxs,
double[] values)
idxs - indicesvalues - valuespublic static void sort(int[] idxs,
double[] values,
int cutoff)
public static java.lang.String[] append(java.lang.String[] a,
java.lang.String... b)
public static java.lang.String[][] append(java.lang.String[][] a,
java.lang.String[]... b)
public static double[] signum(double[] array)
public static double[] difference(double[] array)