|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDblArrays
public class DblArrays
A class consisting of static utility functions dealing with double arrays.
Constructor Summary | |
---|---|
DblArrays()
|
Method Summary | |
---|---|
static double[] |
add(double[] a,
double[] b)
|
static String |
convertToString(double[] values)
|
static double |
dotProduct(double[] a,
double[] b)
|
static void |
index(double[] values)
Sets values[i]=i for all indices. |
static double[] |
index(int size)
returns an array of length size where result[i]=i. |
static double |
max(double[] a)
|
static double |
min(double[] a)
|
static double[] |
multiply(double[] a,
double k)
|
static void |
print(double[] values,
PrintStream stream)
displays the double array on System.stream |
static void |
println(double[] values,
PrintStream stream)
displays the double array on System.stream |
static void |
shuffle(double[] values)
Will shuffle the values in the double array. |
static double[] |
subtract(double[] a,
double[] b)
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DblArrays()
Method Detail |
---|
public static void index(double[] values)
public static double[] index(int size)
public static String convertToString(double[] values)
public static void print(double[] values, PrintStream stream)
public static void println(double[] values, PrintStream stream)
public static void shuffle(double[] values)
public static double[] multiply(double[] a, double k)
public static double[] subtract(double[] a, double[] b)
public static double[] add(double[] a, double[] b)
public static double dotProduct(double[] a, double[] b)
public static double max(double[] a)
public static double min(double[] a)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |