public class HierarchicalModel
extends java.lang.Object
implements blang.core.Model
Modifier and Type | Class and Description |
---|---|
static class |
HierarchicalModel.$generated__1_class |
static class |
HierarchicalModel.$generated__11_class |
static class |
HierarchicalModel.$generated__12_class |
static class |
HierarchicalModel.$generated__3_class |
static class |
HierarchicalModel.$generated__6_class |
static class |
HierarchicalModel.$generated__7_class |
static class |
HierarchicalModel.Builder |
Constructor and Description |
---|
HierarchicalModel(Plated<blang.core.RealVar> failureProbabilities,
Plated<blang.core.IntVar> numberOfFailures,
blang.core.RealVar a,
blang.core.RealVar b,
java.util.function.Supplier<GlobalDataSource> $generated__data,
java.util.function.Supplier<Plate<java.lang.String>> $generated__rocketTypes,
java.util.function.Supplier<Plated<blang.core.IntVar>> $generated__numberOfLaunches)
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 HierarchicalModel.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.
|
blang.core.RealVar |
getA() |
blang.core.RealVar |
getB() |
GlobalDataSource |
getData() |
Plated<blang.core.RealVar> |
getFailureProbabilities() |
Plated<blang.core.IntVar> |
getNumberOfFailures() |
Plated<blang.core.IntVar> |
getNumberOfLaunches() |
Plate<java.lang.String> |
getRocketTypes() |
static void |
main(java.lang.String[] arguments)
Utility main method for posterior inference on this model
|
public HierarchicalModel(Plated<blang.core.RealVar> failureProbabilities, Plated<blang.core.IntVar> numberOfFailures, blang.core.RealVar a, blang.core.RealVar b, java.util.function.Supplier<GlobalDataSource> $generated__data, java.util.function.Supplier<Plate<java.lang.String>> $generated__rocketTypes, java.util.function.Supplier<Plated<blang.core.IntVar>> $generated__numberOfLaunches)
public static HierarchicalModel.Builder builderFromCommandLine()
public GlobalDataSource getData()
public Plate<java.lang.String> getRocketTypes()
public Plated<blang.core.IntVar> getNumberOfLaunches()
public Plated<blang.core.RealVar> getFailureProbabilities()
public Plated<blang.core.IntVar> getNumberOfFailures()
public blang.core.RealVar getA()
public blang.core.RealVar getB()
public static void main(java.lang.String[] arguments)
public java.util.Collection<blang.core.ModelComponent> components()
components
in interface blang.core.Model