|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.probdistributions.bitchain.BinaryProbDistribution
lio.probdistributions.bitchain.BivariateProbDistribution
public abstract class BivariateProbDistribution
This class implements the common features and data structures of bivariate probability distributions. They are separated from bayesian and dependency networks for efficiency. Position of the arrays follows a topological order. The learning method will determine the instantiation of this class.
Field Summary | |
---|---|
protected double[][] |
conditionals
Conditional probabilities of each variable. |
protected double[] |
marginals
Vector that contains the marginal probabilities |
protected int[] |
parents
Variable parent of the one represented by each position. |
protected int[] |
variables
Contains the variable represented by each position. |
Fields inherited from class lio.probdistributions.bitchain.BinaryProbDistribution |
---|
data, laplace, size |
Constructor Summary | |
---|---|
BivariateProbDistribution()
|
Method Summary | |
---|---|
protected void |
createStructures(int pSize)
Creates the necessary structures for the search. |
Individual[] |
sample(int nIndividuals)
Samples some individuals from a probability distribution |
Methods inherited from class lio.probdistributions.bitchain.BinaryProbDistribution |
---|
isLaplace, setLaplace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lio.probdistributions.ProbDistribution |
---|
learn |
Methods inherited from interface lio.core.LiOResource |
---|
getDefinition |
Field Detail |
---|
protected int[] variables
protected int[] parents
protected double[][] conditionals
protected double[] marginals
Constructor Detail |
---|
public BivariateProbDistribution()
Method Detail |
---|
protected void createStructures(int pSize)
pSize
- Size of the individuals from which the model will be learnt.public Individual[] sample(int nIndividuals)
nIndividuals
- Number of individuals that must be sampled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |