Modifier and Type | Class and Description |
---|---|
static class |
Dirichlet.$generated__0_class |
static class |
Dirichlet.$generated__1_class |
static class |
Dirichlet.Builder |
Constructor and Description |
---|
Dirichlet(Simplex realization,
java.util.function.Supplier<xlinear.Matrix> $generated__concentrations)
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 Dirichlet.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.Distribution<Simplex> |
distribution(Simplex realization,
xlinear.Matrix concentrations)
Returns an instance with fixed parameters values and conforming the Distribution interface.
|
void |
generate(java.util.Random rand) |
xlinear.Matrix |
getConcentrations() |
Simplex |
getRealization() |
static void |
main(java.lang.String[] arguments)
Utility main method for posterior inference on this model
|
Simplex |
realization() |
public Dirichlet(Simplex realization, java.util.function.Supplier<xlinear.Matrix> $generated__concentrations)
public static Dirichlet.Builder builderFromCommandLine()
public Simplex getRealization()
public xlinear.Matrix getConcentrations()
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 Simplex realization()
realization
in interface blang.core.UnivariateModel<Simplex>
public static blang.core.Distribution<Simplex> distribution(Simplex realization, xlinear.Matrix concentrations)