com.threerings.probs
Class BooleanVariable

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.probs.BooleanVariable
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class BooleanVariable
extends DeepObject
implements Exportable

A boolean random variable.


Field Summary
 float probability
          The probability that this variable is true.
 
Constructor Summary
BooleanVariable()
           
 
Method Summary
 boolean getValue()
          Returns a sample value from this variable.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

probability

@Editable(min=0.0,
          max=1.0,
          step=0.01)
public float probability
The probability that this variable is true.

Constructor Detail

BooleanVariable

public BooleanVariable()
Method Detail

getValue

public boolean getValue()
Returns a sample value from this variable.



Copyright © 2011. All Rights Reserved.