com.threerings.probs
Class VectorVariable

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by 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.


Nested Class Summary
static class VectorVariable.Constant
          Always returns the same value.
static class VectorVariable.Uniform
          Returns a uniformly distributed value.
 
Constructor Summary
VectorVariable()
           
 
Method Summary
abstract  Vector3f getMean(Vector3f result)
          Computes the mean value.
abstract  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
 

Constructor Detail

VectorVariable

public VectorVariable()
Method Detail

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.