|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.function.PDFFunction
com.sun.pdfview.function.FunctionType2
public class FunctionType2
A type 2 function is an exponential interpolation function, which maps from one input value to n output values using a simple exponential formula.
Field Summary |
---|
Fields inherited from class com.sun.pdfview.function.PDFFunction |
---|
TYPE_0, TYPE_2, TYPE_3, TYPE_4 |
Constructor Summary | |
---|---|
FunctionType2()
Creates a new instance of FunctionType2 |
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 |
Methods inherited from class com.sun.pdfview.function.PDFFunction |
---|
calculate, calculate, getDomain, getFunction, getNumInputs, getNumOutputs, getRange, getType, setDomain, setRange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionType2()
Method Detail |
---|
protected void parse(PDFObject obj) throws java.io.IOException
parse
in class PDFFunction
java.io.IOException
protected void doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)
doFunction
in class PDFFunction
inputs
- guaranteed to be at least as big as
getNumInputs()
and all values within rangeinputOffset
- the offset into the inputs array to read fromoutputs
- guaranteed to be at least as big as
getNumOutputs()
, but not yet clipped to domainoutputOffset
- the offset into the output array to write topublic float getN()
protected void setN(float n)
public float getC0(int index)
protected void setC0(float[] c0)
public float getC1(int index)
protected void setC1(float[] c1)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |