public class GammaMeanParam
extends java.lang.Object
implements blang.core.Model, blang.core.UnivariateModel<blang.core.RealVar>, blang.core.ForwardSimulator
Modifier and Type | Class and Description |
---|---|
static class |
GammaMeanParam.$generated__1_class |
static class |
GammaMeanParam.$generated__2_class |
static class |
GammaMeanParam.Builder |
Constructor and Description |
---|
GammaMeanParam(blang.core.RealVar realization,
java.util.function.Supplier<blang.core.RealVar> $generated__mean,
java.util.function.Supplier<blang.core.RealVar> $generated__variance)
Note: the generated code has the following properties used at runtime:
- all arguments are annotated with a BlangVariable annotation
- params additionally have a Param annotation
- the order of the arguments is as follows:
- first, all the random variables in the order they occur in the blang file
- second, all the params in the order they occur in the blang file
|
Modifier and Type | Method and Description |
---|---|
static GammaMeanParam.Builder |
builderFromCommandLine() |
java.util.Collection<blang.core.ModelComponent> |
components()
A component can be either a distribution, support constraint, or another model
which recursively defines additional components.
|
static blang.core.RealDistribution |
distribution(blang.core.RealVar mean,
blang.core.RealVar variance)
Returns an instance with fixed parameters values and conforming the Distribution interface.
|
void |
generate(java.util.Random rand) |
blang.core.RealVar |
getMean() |
blang.core.RealVar |
getRealization() |
blang.core.RealVar |
getVariance() |
static void |
main(java.lang.String[] arguments)
Utility main method for posterior inference on this model
|
blang.core.RealVar |
realization() |
public GammaMeanParam(blang.core.RealVar realization, java.util.function.Supplier<blang.core.RealVar> $generated__mean, java.util.function.Supplier<blang.core.RealVar> $generated__variance)
public static GammaMeanParam.Builder builderFromCommandLine()
public blang.core.RealVar getRealization()
public blang.core.RealVar getMean()
public blang.core.RealVar getVariance()
public static void main(java.lang.String[] arguments)
public java.util.Collection<blang.core.ModelComponent> components()
components
in interface blang.core.Model
public void generate(java.util.Random rand)
generate
in interface blang.core.ForwardSimulator
public blang.core.RealVar realization()
realization
in interface blang.core.UnivariateModel<blang.core.RealVar>
public static blang.core.RealDistribution distribution(blang.core.RealVar mean, blang.core.RealVar variance)