|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a co-occurrence frequency matrix.
Also provides access to some statistical data.
This class is not a pure data type for it also demands a method computeStatistics()
which takes the matrix coefficients and computes mean, standard deviation and
other properties from it.
Method Summary | |
void |
clear()
Sets all frequency values in this matrix to 0.0 . |
void |
computeStatistics()
Computes mean, standard deviation and the sum of those two so that these values can be queried by the appropriate get methods. |
int |
getDimension()
Returns the dimension of this matrix. |
double |
getMean(int index)
Returns the mean for all pairs (index, i), with i running from 0 to getDimension() - 1. |
double |
getScofMean()
Returns the sum of mean and standard deviation for all pairs (index, x), with x running from 0 to getDimension() - 1. |
double |
getScofStddev()
Returns the standard deviation for all pairs (i, i), with i running from 0 to getDimension() - 1. |
double |
getScofSum()
|
double |
getStddev(int index)
Returns the standard deviation of the values getValue(index, i) with i running from 0 to getDimension() - 1. |
double |
getValue(int i)
Returns the value for the self co-occurrence frequency of i (i being from 0 to getDimension() - 1).
|
double |
getValue(int i,
int j)
|
void |
setValue(int i,
int j,
double newValue)
|
Method Detail |
public void clear()
0.0
.
public void computeStatistics()
public double getScofMean()
getMean(int)
+ getStddev(int)
public double getMean(int index)
getDimension()
- 1.
public double getStddev(int index)
getDimension()
- 1.
index
- first argument to all calls of getValue used to determine the standard deviationpublic double getScofStddev()
public double getScofSum()
public int getDimension()
public double getValue(int i)
getDimension()
- 1).
The result is the same as a call to getValue(i, i)
.
i
- index into the matrix, must be larger than or equal to 0 and smaller than getDimension()
public double getValue(int i, int j)
public void setValue(int i, int j, double newValue)
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |