public class SquareMatrix extends Object
Constructor and Description |
---|
SquareMatrix(int length)
Initializes an empty square matrix of size length x length.
|
SquareMatrix(SquareMatrix sm)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accumulate(Collection<SquareMatrix> sms)
Accumulates the scores from a collection of square matrices.
|
void |
accumulate(SquareMatrix sm)
Accumulates the scores from another square matrix.
|
static SquareMatrix |
aggregate(Collection<SquareMatrix> sms)
Aggregates the scores of a collection of square matrices.
|
static SquareMatrix |
average(Collection<SquareMatrix> sms)
Averages the scores of an array of square matrices.
|
SquareMatrix |
clone()
Returns a deep copy of the matrix.
|
double |
get(int i,
int j)
Get entry (i,j).
|
int |
length()
Returns the number of classes (labels).
|
void |
set(int i,
int j,
double value)
Set entry (i,j).
|
String |
toMatlabString(int numDigits)
Returns a Matlab string representation of the matrix.
|
String |
toString()
Returns ParallelColt's string representation of the matrix.
|
public SquareMatrix(int length)
public SquareMatrix(SquareMatrix sm)
public int length()
public double get(int i, int j)
public void set(int i, int j, double value)
public void accumulate(SquareMatrix sm)
public void accumulate(Collection<SquareMatrix> sms)
public static SquareMatrix aggregate(Collection<SquareMatrix> sms)
public static SquareMatrix average(Collection<SquareMatrix> sms)
public String toString()
public String toMatlabString(int numDigits)
public SquareMatrix clone()
Copyright © 2018 University of California, Santa Cruz. All rights reserved.