|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure
de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.pmmMeasures.PMMExplainingAwayResidual
public class PMMExplainingAwayResidual
Class for the network structure of a
BayesianNetworkDiffSM
that is a permuted Markov model based on the explaining away residual.
Nested Class Summary | |
---|---|
static class |
PMMExplainingAwayResidual.PMMExplainingAwayResidualParameterSet
Class for the parameters of a PMMExplainingAwayResidual structure
Measure . |
Nested classes/interfaces inherited from class de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure |
---|
Measure.MeasureParameterSet |
Field Summary |
---|
Fields inherited from class de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure |
---|
parameters |
Constructor Summary | |
---|---|
PMMExplainingAwayResidual(byte order,
double[] ess)
Creates a new PMMExplainingAwayResidual of order
order . |
|
PMMExplainingAwayResidual(PMMExplainingAwayResidual.PMMExplainingAwayResidualParameterSet parameters)
Creates a new PMMExplainingAwayResidual from the corresponding
InstanceParameterSet parameters/code>. |
|
PMMExplainingAwayResidual(StringBuffer buf)
The standard constructor for the interface Storable . |
Method Summary | |
---|---|
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 |
Methods inherited from class de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure |
---|
clone, fillTensor, fillTensor, getCMI, getCMI, getCurrentParameterSet, getEAR, getEAR, getMI, getMI, getStatistics, getStatisticsOrderTwo, isShiftable, sum, toParents, toXML, 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
Storable
.
Recreates a PMMExplainingAwayResidual
from its XML representation
as returned by Measure.toXML()
.
buf
- the XML representation as StringBuffer
NonParsableException
- 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
- if the order is not 1
or 2
public PMMExplainingAwayResidual(PMMExplainingAwayResidual.PMMExplainingAwayResidualParameterSet parameters) throws Exception
PMMExplainingAwayResidual
from the corresponding
InstanceParameterSet
parameters/code>.
- Parameters:
parameters
- the corresponding parameters
- Throws:
Exception
- if the order is not 1
or 2
Method Detail
getInstanceName
public String getInstanceName()
- Description copied from class:
Measure
- Returns the name of the
Measure
and possibly some additional
information about the current instance.
- Specified by:
getInstanceName
in class Measure
- Returns:
- the name of the
Measure
getParents
public int[][] getParents(DataSet fg,
DataSet bg,
double[] weightsFg,
double[] weightsBg,
int length)
throws Exception
- Description copied from class:
Measure
- Returns the optimal parents for the given data and weights. The returned
array of parents
p
at each position i
is build
as follows:
-
p[i][p.length - 1]
contains the index i
itself
-
p[i][p.length - 2]
contains the "most
important" parent
- ...
-
p[i][0]
contains the "least important" parent
- Specified by:
getParents
in class Measure
- Parameters:
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
- Returns:
- the the array
p
with the optimal parents
- Throws:
Exception
- if the lengths do not match or other problems concerning the
data occur
getXMLTag
public String getXMLTag()
- Description copied from class:
Measure
- Returns the XML-tag for storing this measure
- Specified by:
getXMLTag
in class Measure
- Returns:
- the tag
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD