public class TwoPointEvaluater extends Object
Constructor and Description |
---|
TwoPointEvaluater() |
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
getImage(DataSet d,
double[] weights,
REnvironment r,
double alpha,
int... borders) |
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[][] |
getMI(DataSet s,
double[] weights)
This method computes the pairwise mutual information between
the sequence positions.
|
static double[][] |
getMIInBits(DataSet s,
double[] weights)
This method computes the pairwise mutual information (in bits) between
the sequence positions.
|
public static double[][] getMI(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 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 environmentException
- if an Exception
is thrown from REnvironment
getMIInBits(DataSet, double[])
public static BufferedImage getImage(DataSet d, double[] weights, REnvironment r, double alpha, int... borders) throws Exception
Exception
public static double getMax(double[][] mi)
mi
- the matrix of mutual informations