spis.Util.Func
Class Max

java.lang.Object
  extended byspis.Util.Func.Max
All Implemented Interfaces:
ScalFunctionOfScal

public class Max
extends java.lang.Object
implements ScalFunctionOfScal

Returns the maximum of the reference float and the passed float


Field Summary
private  float refVal
          reference value
 
Constructor Summary
Max(float refValue)
           
 
Method Summary
 float compute(float x)
          applies this function to x and returns the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refVal

private float refVal
reference value

Constructor Detail

Max

public Max(float refValue)
Method Detail

compute

public float compute(float x)
Description copied from interface: ScalFunctionOfScal
applies this function to x and returns the result

Specified by:
compute in interface ScalFunctionOfScal
See Also:
ScalFunctionOfScal.compute(float)