|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.sequenceScores.statisticalModels.trainable.discrete.inhomogeneous.TwoPointEvaluater
public class TwoPointEvaluater
This class is for visualizing two point dependency between sequence positions.
Constructor Summary | |
---|---|
TwoPointEvaluater()
|
Method Summary | |
---|---|
static BufferedImage |
getImage(double[][] mi,
REnvironment r)
This method can be used to create an image of a mutual information matrix. |
static double |
getMax(double[][] mi)
This method can be used to determine the maximal value of the matrix of mutual informations. |
static double[][] |
getMIInBits(DataSet s,
double[] weights)
This method computes the pairwise mutual information (in bits) between the sequence positions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwoPointEvaluater()
Method Detail |
---|
public static double[][] getMIInBits(DataSet s, double[] weights) throws IllegalArgumentException
s
- the DataSet
weights
- the weights for each sequence of the DataSet
or
null
IllegalArgumentException
- if something went wrong (e.g. the
AlphabetContainer
is not discrete, the
length is not matching with the
AlphabetContainer
, ...)public static BufferedImage getImage(double[][] mi, REnvironment r) throws Exception
mi
- the matrix of mutual informationr
- the R environment
Exception
- if an Exception
is thrown from REnvironment
getMIInBits(DataSet, double[])
public static double getMax(double[][] mi)
mi
- the matrix of mutual informations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |