com.sun.pdfview.function
Class FunctionType2
public
class
FunctionType2
extends PDFFunction
A type 2 function is an exponential interpolation function, which maps
from one input value to n output values using a simple exponential
formula.
Method Summary |
protected void | doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)
Calculate the function value for the input. |
float | getC0(int index)
Get the values at zero |
float | getC1(int index)
Get the values at one |
float | getN()
Get the exponent |
protected void | parse(PDFObject obj)
Read the zeros, ones and exponent |
protected void | setC0(float[] c0)
Set the values at zero |
protected void | setC1(float[] c1)
Set the values at one |
protected void | setN(float n)
Set the exponent |
public FunctionType2()
Creates a new instance of FunctionType2
protected void doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)
Calculate the function value for the input. For each output (j),
the function value is:
C0(j) + x^N * (C1(j) - C0(j))
public float getC0(int index)
Get the values at zero
public float getC1(int index)
Get the values at one
public float getN()
Get the exponent
Read the zeros, ones and exponent
protected void setC0(float[] c0)
Set the values at zero
protected void setC1(float[] c1)
Set the values at one
protected void setN(float n)
Set the exponent