|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.scoringFunctions.directedGraphicalModels.structureLearning.measures.Measure
de.jstacs.scoringFunctions.directedGraphicalModels.structureLearning.measures.pmmMeasures.PMMExplainingAwayResidual
public class PMMExplainingAwayResidual
Class for the network structure of a BayesianNetworkScoringFunction
that is a permuted Markov model based on the explaining away residual.
Constructor Summary | |
---|---|
PMMExplainingAwayResidual(byte order,
double[] ess)
Creates a new PMMExplainingAwayResidual of order order . |
|
PMMExplainingAwayResidual(StringBuffer buf)
Re-creates a PMMExplainingAwayResidual from its XML-representation as returned by toXML() . |
Method Summary | |
---|---|
PMMExplainingAwayResidual |
clone()
|
String |
getInstanceName()
Returns the name of the Measure and possibly some additional information about the current instance. |
int[][] |
getParents(Sample fg,
Sample bg,
double[] weightsFg,
double[] weightsBg,
int length)
Returns the optimal parents for the given data and weights. |
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
Methods inherited from class de.jstacs.scoringFunctions.directedGraphicalModels.structureLearning.measures.Measure |
---|
fillTensor, fillTensor, getCMI, getCMI, getEAR, getEAR, getMI, getMI, getStatistics, getStatisticsOrderTwo, isShiftable, sum, toParents, union |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PMMExplainingAwayResidual(StringBuffer buf) throws NonParsableException
PMMExplainingAwayResidual
from its XML-representation as returned by toXML()
.
buf
- the XML-representation
NonParsableException
- is thrown if the XML-code could not be parsedpublic PMMExplainingAwayResidual(byte order, double[] ess) throws Exception
PMMExplainingAwayResidual
of order order
.
order
- the order, may be 1
or 2
ess
- the equivalent sample sizes of both classes
Exception
Method Detail |
---|
public PMMExplainingAwayResidual clone() throws CloneNotSupportedException
clone
in class Measure
CloneNotSupportedException
public String getInstanceName()
Measure
Measure
and possibly some additional information about the current instance.
getInstanceName
in class Measure
public int[][] getParents(Sample fg, Sample 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 parent
getParents
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 sequences
Exception
- thrown if the lengths do not match or other problems concerning the data occurpublic StringBuffer toXML()
Storable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |