|
JIU 0.13.0 Website | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jiu.color.data.BaseCoOccurrenceFrequencyMatrix
net.sourceforge.jiu.color.data.MemoryCoOccurrenceFrequencyMatrix
Implements the CoOccurrenceFrequencyMatrix interface by using a large array
of values in memory.
| Constructor Summary | |
MemoryCoOccurrenceFrequencyMatrix(int dimension)
Creates a co-occurrence frequency matrix of given dimension; allocates dimension times dimension double values for internal array; does not call clear() to set everything to zero, must be done by user (or automatically in init). |
|
| Method Summary | |
void |
clear()
Sets all values of this matrix to zero. |
int |
getDimension()
Returns the dimension of this matrix. |
double |
getValue(int i)
Returns the value of this matrix at row i, column i. |
double |
getValue(int i,
int j)
Returns the value of this matrix at row j, column i. |
void |
setValue(int i,
int j,
double newValue)
Sets value at row j, column i to newValue. |
| Methods inherited from class net.sourceforge.jiu.color.data.BaseCoOccurrenceFrequencyMatrix |
computeStatistics, getMean, getScofMean, getScofStddev, getScofSum, getStddev |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemoryCoOccurrenceFrequencyMatrix(int dimension)
IllegalArgumentException - if dimension is smaller than 1| Method Detail |
public void clear()
public int getDimension()
CoOccurrenceFrequencyMatrix
public double getValue(int i)
throws IllegalArgumentException
i - index into the matrix, must be larger than or equal to 0 and smaller than CoOccurrenceFrequencyMatrix.getDimension()
IllegalArgumentException
public double getValue(int i,
int j)
throws IllegalArgumentException
IllegalArgumentException
public void setValue(int i,
int j,
double newValue)
throws IllegalArgumentException
IllegalArgumentException
|
JIU 0.13.0 Website | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||