org.icepdf.core.pobjects.functions
Class Function_2

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

public class Function_2
extends Function

This class Function_2 represents a generic Type 2, exponentail interpolation function type. Type 2 functions include a set of parameters that define an exponential interpolation of one input value and n output values:

Values of Domain must constrain x in such a way that if N is not an integer, all values of x must be non-negative, and if N is negative, no value of x may be zero. Typically, Domain is declared as [0.0 1.0], and N is a postive number. The Range attribute is optional and can be used to clip the output to a specified range. Note that when N is 1, the function performs a linear interpolation between C0 and C1; therefore, the function cna also be expressed as a sampled function (type 0).

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)
          Exponential Interpolation calculation.
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Method Detail

calculate

public float[] calculate(float[] x)

Exponential Interpolation calculation. Each input value x will return n values, given by:

Specified by:
calculate in class Function
Parameters:
x - input values m
Returns:
output values n

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object