lio.probdistributions.bitchain
Class BinaryProbDistribution

java.lang.Object
  extended by lio.probdistributions.bitchain.BinaryProbDistribution
All Implemented Interfaces:
LiOResource, ProbDistribution
Direct Known Subclasses:
BivariateProbDistribution, MarginalProbabilityVector

public abstract class BinaryProbDistribution
extends java.lang.Object
implements ProbDistribution

This class implements the common features and data structures for the binary probability distributions.


Field Summary
protected  SetAnalysis data
          Encapsulates the population in order to obtain statistics
protected  boolean laplace
          Whether to use laplace estimation or not when learning the model.
protected  int size
          Size of the model
 
Constructor Summary
BinaryProbDistribution()
           
 
Method Summary
 boolean isLaplace()
          Getter for property laplace.
 void setLaplace(boolean laplace)
          Setter for property laplace.
 
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, sample
 
Methods inherited from interface lio.core.LiOResource
getDefinition
 

Field Detail

data

protected SetAnalysis data
Encapsulates the population in order to obtain statistics


size

protected int size
Size of the model


laplace

protected boolean laplace
Whether to use laplace estimation or not when learning the model.

Constructor Detail

BinaryProbDistribution

public BinaryProbDistribution()
Method Detail

isLaplace

public boolean isLaplace()
Getter for property laplace.

Returns:
Value of property laplace.

setLaplace

public void setLaplace(boolean laplace)
Setter for property laplace.

Parameters:
laplace - New value of property laplace.