|
||||||||||
| 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
com.threerings.probs.FloatVariable.Constant
public static class FloatVariable.Constant
Always returns the same value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.probs.FloatVariable |
|---|
FloatVariable.Constant, FloatVariable.Exponential, FloatVariable.Normal, FloatVariable.Uniform |
| Field Summary | |
|---|---|
float |
value
The value to return. |
| Constructor Summary | |
|---|---|
FloatVariable.Constant()
No-arg constructor for deserialization, etc. |
|
FloatVariable.Constant(float value)
Creates a constant variable with the specified value. |
|
FloatVariable.Constant(FloatVariable variable)
Creates a constant variable with the specified variable's mean. |
|
| Method Summary | |
|---|---|
float |
getMean()
Returns the variable's mean. |
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 |
| Field Detail |
|---|
@Editable(min=-1d/0d,
max=-1d/0d,
step=-1d/0d,
scale=-1d/0d)
public float value
| Constructor Detail |
|---|
public FloatVariable.Constant(float value)
public FloatVariable.Constant(FloatVariable variable)
public FloatVariable.Constant()
| Method Detail |
|---|
public float getValue()
FloatVariable
getValue in class FloatVariablepublic float getMean()
FloatVariable
getMean in class FloatVariable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||