public interface Distribution
Table
class implements this interface.
While a distribution is assigned to a Node
it cannot be modified.Table
,
CLGaussian
Modifier and Type  Method and Description 

Distribution 
copy()
Creates a copy of the distribution.

Distribution 
copy(Integer timeShift)
Creates a copy of the distribution, and shifts any times associated with variables by the specified amount.

Distribution 
divide(Distribution subset)
Creates a new distribution by dividing the instance by the specified subset.

boolean 
getLocked()
Locks or unlocks a distribution.

Distribution 
getOuter()
Returns the parent distribution, if this instance is aggregated by another distribution.

Node 
getOwner()
Gets the current owner, if assigned to a node.

VariableContextCollection 
getSortedVariables()
Gets the collection of variables in the distribution, sorted by time (which may be null) and the order in which variables were created.

Table 
getTable()
Gets the
Table which specifies the distribution over any discrete variables. 
Distribution 
instantiate(Double[] values)
Calculates the distribution which results from instantiating a number of variables.

boolean 
isReadOnly()
Indicates whether the distribution is read only.

void 
marginalize(Distribution superset)
Marginalizes (sums/integrates) the [superset] into this instance.

void 
marginalize(Distribution superset,
PropagationMethod propagation)
Marginalizes (sums/integrates) the [superset] into this instance.

Distribution 
multiply(Distribution distribution)
Creates a new distribution which is the result of multiplying this instance by another distribution.

void 
setLocked(boolean value)
Locks or unlocks a distribution.

void 
timeShift(int units)
Shifts any times associated with the distribution variables by the specified number of time units.

VariableContextCollection getSortedVariables()
void timeShift(int units)
units
 The number of time units to shift. Can be negative if required.boolean getLocked()
getLocked()
is true
or getOwner()
is not null.true
if locked; otherwise, false
.void setLocked(boolean value)
getLocked()
is true
or getOwner()
is not null.value
 true
if locked; otherwise, false
.boolean isReadOnly()
Node
.true
if read only; otherwise, false
.Node getOwner()
Distribution getOuter()
Distribution multiply(Distribution distribution)
distribution
 The distribution to multiply this instance by.Distribution divide(Distribution subset)
subset
 The subset to divide by.Distribution instantiate(Double[] values)
values
 The instantiated values. Entries can be null.in the distribution, however entries can be null.
void marginalize(Distribution superset)
superset
 A distribution whose variables form a superset of the variables in this instance.void marginalize(Distribution superset, PropagationMethod propagation)
superset
 A distribution whose variables form a superset of the variables in this instance.propagation
 The propagation method to use during marginalization.Distribution copy()
Distribution copy(Integer timeShift)
timeShift
 The amount to shift any times present in the distribution. Can be negative.Copyright © 2019. All rights reserved.