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
static Name BITSPERSAMPLE_KEY
           
static Name DECODE_KEY
           
static Name ENCODE_KEY
           
static Name SIZE_KEY
           
 
Fields inherited from class org.icepdf.core.pobjects.functions.Function
domain, DOMAIN_NAME, functionType, FUNCTIONTYPE_NAME, range, RANGE_NAME
 
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
 

Field Detail

SIZE_KEY

public static final Name SIZE_KEY

BITSPERSAMPLE_KEY

public static final Name BITSPERSAMPLE_KEY

ENCODE_KEY

public static final Name ENCODE_KEY

DECODE_KEY

public static final Name DECODE_KEY
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.