|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--shared.Matrix
The Matrix class contains functions useful for manipulation of double arrays in MLJ.
| Constructor Summary | |
Matrix()
|
|
| Method Summary | |
static double[][] |
copy(double[][] matrix)
Copies the double array into a new double array. |
static void |
initialize(double init_value,
double[][] matrix)
Initializes the double array to the given value. |
static double |
max_in_row(int row,
int idx,
double[][] matrix)
Returns the maximum value in the specified row of the given double array. |
static double |
min_in_row(int row,
int idx,
double[][] matrix)
Returns the minimum value in the specified row of the given double array. |
static void |
sum_cols(double[] returnRow,
double[][] matrix)
Sums the columns of a double array of double values and returns the sums as an array of summations. |
static void |
sum_rows(double[] returnColumn,
double[][] matrix)
Sums the rows of a double array of double values and returns the sums as an array of summations. |
static double |
total_sum(double[][] matrix)
Sums all of the values in a double array of double values. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Matrix()
| Method Detail |
public static void sum_cols(double[] returnRow,
double[][] matrix)
returnRow - The array containing the summations. Altered as a result of this function.matrix - The double array containing the values to be summed.
public static void sum_rows(double[] returnColumn,
double[][] matrix)
returnColumn - The array containing the summations. Altered as a result of this function.matrix - The double array containing the values to be summed.public static double total_sum(double[][] matrix)
matrix - The double array to be summed.
public static void initialize(double init_value,
double[][] matrix)
init_value - The value to be initialized to.matrix - The double array to be initialized.public static double[][] copy(double[][] matrix)
matrix - The double array to be copied.
public static double max_in_row(int row,
int idx,
double[][] matrix)
row - The row to be searched.idx - The index value of the greatest value.matrix - The double array containing the row searched.
public static double min_in_row(int row,
int idx,
double[][] matrix)
row - The row to be searched.idx - The index value of the smallest value.matrix - The double array containing the row searched.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||