- <init>
Creates a cost matrix that is a copy of another.
- applyCostMatrix
Applies the cost matrix to a set of instances. If a random number generator is
supplied the instance
- setCell
Set the value of a particular cell in the matrix
- initialize
Initializes the matrix
- expectedCosts
Calculates the expected misclassification cost for each possible class value,
given class probabilit
- getCell
Return the contents of a particular cell. Note: this method returns the Object
stored at a particula
- getElement
Return the value of a cell as a double. Computes the value for non-fixed costs
using the supplied In
- getMaxCost
Gets the maximum cost for a particular class value.
- normalize
Normalizes the matrix so that the diagonal contains zeros.
- numRows
Same as size
- parseMatlab
creates a matrix from the given Matlab string.
- readOldFormat
Loads a cost matrix in the old format from a reader. Adapted from code once
sitting in Instances.jav