com.threerings.probs
Class FloatFunctionVariable.VariableInAndOut

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.probs.FloatFunctionVariable
          extended by com.threerings.probs.FloatFunctionVariable.VariableInAndOut
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
FloatFunctionVariable

public static class FloatFunctionVariable.VariableInAndOut
extends FloatFunctionVariable

Returns an in-and-out function with independent variable start and end values.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.probs.FloatFunctionVariable
FloatFunctionVariable.Fixed, FloatFunctionVariable.VariableConstant, FloatFunctionVariable.VariableInAndOut, FloatFunctionVariable.VariableLinear, FloatFunctionVariable.VariableMultipoint, FloatFunctionVariable.VariableThreePoint
 
Field Summary
 FloatVariable end
          The end value.
 FloatVariable in
          The proportional time to spend blending into the middle value.
 FloatVariable out
          The proportional time to spend blending into the end value.
 FloatVariable start
          The start value.
 
Constructor Summary
FloatFunctionVariable.VariableInAndOut()
           
 
Method Summary
 FloatFunction getValue(FloatFunction 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

start

@Editable(min=-1d/0d,
          max=-1d/0d,
          step=-1d/0d,
          scale=-1d/0d)
public FloatVariable start
The start value.


end

@Editable(min=-1d/0d,
          max=-1d/0d,
          step=-1d/0d,
          scale=-1d/0d)
public FloatVariable end
The end value.


in

@Editable(min=0.0,
          max=1.0,
          step=0.01)
public FloatVariable in
The proportional time to spend blending into the middle value.


out

@Editable(min=0.0,
          max=1.0,
          step=0.01)
public FloatVariable out
The proportional time to spend blending into the end value.

Constructor Detail

FloatFunctionVariable.VariableInAndOut

public FloatFunctionVariable.VariableInAndOut()
Method Detail

getValue

public FloatFunction getValue(FloatFunction result)
Description copied from class: FloatFunctionVariable
Computes a sample value according to the variable's distribution.

Specified by:
getValue in class FloatFunctionVariable
Parameters:
result - an object to repopulate, if possible.
Returns:
either the result object, if it could be repopulated, or a new object containing the result.


Copyright © 2011. All Rights Reserved.