|
||||||||||
| 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.VectorVariable
com.threerings.probs.VectorVariable.Uniform
public static class VectorVariable.Uniform
Returns a uniformly distributed value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.probs.VectorVariable |
|---|
VectorVariable.Constant, VectorVariable.Uniform |
| Field Summary | |
|---|---|
Vector3f |
maximum
The maximum extent. |
Vector3f |
minimum
The minimum extent. |
| Constructor Summary | |
|---|---|
VectorVariable.Uniform()
No-arg constructor for deserialization, etc. |
|
VectorVariable.Uniform(VectorVariable variable)
Creates a uniform variable from the parameters of the other variable. |
|
| Method Summary | |
|---|---|
Vector3f |
getMean(Vector3f result)
Computes the mean value. |
Vector3f |
getValue(Vector3f result)
Computes 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(hgroup="range",
step=-1d/0d,
scale=-1d/0d)
public Vector3f minimum
@Editable(hgroup="range",
step=-1d/0d,
scale=-1d/0d)
public Vector3f maximum
| Constructor Detail |
|---|
public VectorVariable.Uniform(VectorVariable variable)
public VectorVariable.Uniform()
| Method Detail |
|---|
public Vector3f getValue(Vector3f result)
VectorVariable
getValue in class VectorVariablepublic Vector3f getMean(Vector3f result)
VectorVariable
getMean in class VectorVariable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||