com.threerings.probs
Class VectorVariable
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.VectorVariable
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Direct Known Subclasses:
- VectorVariable.Constant, VectorVariable.Uniform
@EditorTypes(value={VectorVariable.Constant.class,VectorVariable.Uniform.class},
label="distribution")
public abstract class VectorVariable- extends DeepObject
- implements Exportable
A vector-valued random variable.
VectorVariable
public VectorVariable()
getValue
public abstract Vector3f getValue(Vector3f result)
- Computes a sample value according to the variable's distribution.
- Returns:
- a reference to the result value, for chaining.
getMean
public abstract Vector3f getMean(Vector3f result)
- Computes the mean value.
- Returns:
- a reference to the result value, for chaining.
Copyright © 2011. All Rights Reserved.