org.icepdf.core.pobjects.functions
Class Function_0

java.lang.Object
  extended by org.icepdf.core.pobjects.functions.Function
      extended by org.icepdf.core.pobjects.functions.Function_0

public class Function_0
extends Function

This class Function_0 represents a generic Type 0, sampled function type. Type 0 functions use a sequence of sampled values (contained in a stream) to produce an approximation for function shose domains and ranges are bounded. The samples are organized as an m-dimensional table in which each entry has n components.

Sampled functiosn are highly general and offer reasonablly accurate representations of arbitrary analytic functions at low expense. The dimensionality of a sampled function is restricted only by the implementation limits.

Since:
1.0
See Also:
Function

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.functions.Function
domain, functionType, range
 
Method Summary
 float[] calculate(float[] x)
          Calculates the y values for the given x values using a sampled function.
 
Methods inherited from class org.icepdf.core.pobjects.functions.Function
getDomain, getFunction, getFunctionType, getRange, interpolate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calculate

public float[] calculate(float[] x)
Calculates the y values for the given x values using a sampled function.

Specified by:
calculate in class Function
Parameters:
x - array of input values m.
Returns:
array of ouput value n.