public class Geometric
extends java.lang.Object
implements blang.core.Model, blang.core.UnivariateModel<blang.core.IntVar>, blang.core.ForwardSimulator
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Geometric.$generated__0_class | 
| static class  | Geometric.Builder | 
| Constructor and Description | 
|---|
| Geometric(blang.core.IntVar realization,
         java.util.function.Supplier<blang.core.RealVar> $generated__p)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 Geometric.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.IntDistribution | distribution(blang.core.RealVar p)Returns an instance with fixed parameters values and conforming the Distribution interface. | 
| void | generate(java.util.Random rand) | 
| blang.core.RealVar | getP() | 
| blang.core.IntVar | getRealization() | 
| static void | main(java.lang.String[] arguments)Utility main method for posterior inference on this model | 
| blang.core.IntVar | realization() | 
public Geometric(blang.core.IntVar realization,
                 java.util.function.Supplier<blang.core.RealVar> $generated__p)
public static Geometric.Builder builderFromCommandLine()
public blang.core.IntVar getRealization()
public blang.core.RealVar getP()
public static void main(java.lang.String[] arguments)
public java.util.Collection<blang.core.ModelComponent> components()
components in interface blang.core.Modelpublic void generate(java.util.Random rand)
generate in interface blang.core.ForwardSimulatorpublic blang.core.IntVar realization()
realization in interface blang.core.UnivariateModel<blang.core.IntVar>public static blang.core.IntDistribution distribution(blang.core.RealVar p)