|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.probs.FloatVariable
@EditorTypes(value={FloatVariable.Constant.class,FloatVariable.Uniform.class,FloatVariable.Normal.class,FloatVariable.Exponential.class},
label="distribution")
public abstract class FloatVariableA floating point random variable.
| Nested Class Summary | |
|---|---|
static class |
FloatVariable.Constant
Always returns the same value. |
static class |
FloatVariable.Exponential
Returns an exponentially distributed value. |
static class |
FloatVariable.Normal
Returns a normally distributed value. |
static class |
FloatVariable.Uniform
Returns a uniformly distributed value. |
| Constructor Summary | |
|---|---|
FloatVariable()
|
|
| Method Summary | |
|---|---|
abstract float |
getMean()
Returns the variable's mean. |
abstract float |
getValue()
Returns a sample value according to the variable's distribution. |
| 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 |
| Constructor Detail |
|---|
public FloatVariable()
| Method Detail |
|---|
public abstract float getValue()
public abstract float getMean()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||