Example usage for Java weka.classifiers CostMatrix fields, constructors, methods, implement or subclass
The text is from its open source code.
CostMatrix(int numOfClasses) Creates a default cost matrix of a particular size. | |
CostMatrix(CostMatrix toCopy) Creates a cost matrix that is a copy of another. | |
CostMatrix(Reader reader) Reads a matrix from a reader. |
void | readOldFormat(Reader reader) Loads a cost matrix in the old format from a reader. |
void | setElement(int rowIndex, int columnIndex, double value) Set the value of a cell as a double |
String | toMatlab() converts the Matrix into a single line Matlab string: matrix is enclosed by parentheses, rows are separated by semicolon and single cells by blanks, e.g., [1 2; 3 4]. |
String | toString() Converts a matrix to a string. |