|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.utils.StatisticalTest
public class StatisticalTest
This class enables the user to compute some divergences. In Latex notation the divergence is
Y_{\epsilon}(p,q) = \frac{\left[\sum_{i,j} p_{i,j} \cdot \left(\frac{p_{i,j}}{q_{i,j}}\right)^{\epsilon-1}\right] - 1}{\frac{\epsilon(\epsilon-1)}{2}}
Constructor Summary | |
---|---|
StatisticalTest()
|
Method Summary | |
---|---|
static double |
getGeneralizedDivergence(double[][] p,
double epsilon)
Computes the generalized divergence for two stochastic matrices over the same domain, i.e. the matrices have to have the same dimensionality. |
static double |
getGeneralizedDivergence(double[][] p,
double[][] q,
double epsilon)
Computes the generalized divergence for two given stochastic matrices over the same domain, i.e. the matrices have to have the same dimensionality. |
static double |
getGeneralizedDivergence(double[][] p,
double[] r,
double[] s,
double epsilon)
Computes the generalized divergence for two stochastic matrices over the same domain, i.e. the matrices have to have the same dimensionality. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticalTest()
Method Detail |
---|
public static double getGeneralizedDivergence(double[][] p, double[][] q, double epsilon) throws IllegalArgumentException
epsilon=1
this method returns 2*(mutual information).
p
- one stochastic matrixq
- another stochastic matrixepsilon
- the positive divergence parameter
IllegalArgumentException
- if some arguments are not correctpublic static double getGeneralizedDivergence(double[][] p, double[] r, double[] s, double epsilon)
epsilon=1
this method returns 2*(mutual information).
p
- a stochastic matrixr
- one stochastic vectors
- another stochastic vectorepsilon
- the divergence parameter
public static double getGeneralizedDivergence(double[][] p, double epsilon)
epsilon=1
this method returns 2*(mutual information).
p
- a stochastic matrixepsilon
- the divergence parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |