public static class BernoulliBayesianEstimator.Parameter extends AbstractBayesianParameter<java.lang.Double,BernoulliDistribution,BetaDistribution>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name of the parameter, "p".
|
conditionalDistribution
name
Constructor and Description |
---|
Parameter(BernoulliDistribution conditional,
BetaDistribution prior)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getValue()
Gets the value stored in the name-value pair.
|
void |
setValue(java.lang.Double value)
Sets the value of the parameter.
|
clone, getConditionalDistribution, getParameterPrior, setConditionalDistribution, setParameterPrior, updateConditionalDistribution
getName, setName, toString
public static final java.lang.String NAME
public Parameter(BernoulliDistribution conditional, BetaDistribution prior)
prior
- Default conjugate prior.conditional
- Conditional distribution of the conjugate prior.public void setValue(java.lang.Double value)
DistributionParameter
value
- Parameter to set.public java.lang.Double getValue()
NamedValue