public class PMMMutualInformation extends Measure
BayesianNetworkDiffSM
that is a permuted Markov model based on mutual information.Modifier and Type | Class and Description |
---|---|
static class |
PMMMutualInformation.PMMMutualInformationParameterSet
Class for the parameters of a
PMMMutualInformation structure
Measure . |
Measure.MeasureParameterSet
parameters
Constructor and Description |
---|
PMMMutualInformation(byte order,
BTMutualInformation.DataSource clazz,
double[] ess)
Creates a new
PMMMutualInformation of order order . |
PMMMutualInformation(PMMMutualInformation.PMMMutualInformationParameterSet parameters)
|
PMMMutualInformation(StringBuffer buf)
The standard constructor for the interface
Storable . |
Modifier and Type | Method and Description |
---|---|
String |
getInstanceName()
Returns the name of the
Measure and possibly some additional
information about the current instance. |
int[][] |
getParents(DataSet fg,
DataSet bg,
double[] weightsFg,
double[] weightsBg,
int length)
Returns the optimal parents for the given data and weights.
|
String |
getXMLTag()
Returns the XML-tag for storing this measure
|
clone, fillTensor, fillTensor, fromXML, getCMI, getCMI, getCurrentParameterSet, getEAR, getEAR, getMatrixForKruskal, getMI, getMI, getStatistics, getStatisticsOrderTwo, isShiftable, reStructure, sum, toParents, toXML, union
public PMMMutualInformation(byte order, BTMutualInformation.DataSource clazz, double[] ess) throws Exception
PMMMutualInformation
of order order
.order
- the order, may be 1
or 2
.clazz
- the classes used for computation of mutual information, as
defined by BTMutualInformation.DataSource
ess
- the equivalent sample sizes of both classesException
- if the order is not 1
or 2
public PMMMutualInformation(PMMMutualInformation.PMMMutualInformationParameterSet parameters) throws Exception
parameters
- the corresponding parametersException
- if the order is not 1
or 2
public PMMMutualInformation(StringBuffer buf) throws NonParsableException
Storable
.
Recreates a PMMMutualInformation
from its XML representation as
returned by Measure.toXML()
.buf
- the XML representation as StringBuffer
NonParsableException
- if the XML code could not be parsedpublic String getXMLTag()
Measure
public String getInstanceName()
Measure
Measure
and possibly some additional
information about the current instance.getInstanceName
in class Measure
Measure
public int[][] getParents(DataSet fg, DataSet bg, double[] weightsFg, double[] weightsBg, int length) throws Exception
Measure
p
at each position i
is build
as follows:
p[i][p.length - 1]
contains the index i
itselfp[i][p.length - 2]
contains the "most
important" parentp[i][0]
contains the "least important" parentgetParents
in class Measure
fg
- the data of the current (foreground) classbg
- the data of the negative (background) classweightsFg
- the weights for the sequences of fg
weightsBg
- the weights for the sequences of bg
length
- the length of the model, must be equal to the length of the
sequencesp
with the optimal parentsException
- if the lengths do not match or other problems concerning the
data occur