Java weka.classifiers CostMatrix fields, constructors, methods, implement or subclass

Example usage for Java weka.classifiers CostMatrix fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for weka.classifiers CostMatrix.

The text is from its open source code.

Constructor

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.

Method

voidreadOldFormat(Reader reader)
Loads a cost matrix in the old format from a reader.
voidsetElement(int rowIndex, int columnIndex, double value)
Set the value of a cell as a double
StringtoMatlab()
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].
StringtoString()
Converts a matrix to a string.