public class FunctionType2 extends PDFFunction
TYPE_0, TYPE_2, TYPE_3, TYPE_4| Constructor and Description |
|---|
FunctionType2()
Creates a new instance of FunctionType2
|
| Modifier and Type | Method and Description |
|---|---|
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
|
calculate, calculate, getDomain, getFunction, getNumInputs, getNumOutputs, getRange, getType, setDomain, setRangeprotected void parse(PDFObject obj) throws IOException
parse in class PDFFunctionIOExceptionprotected void doFunction(float[] inputs,
int inputOffset,
float[] outputs,
int outputOffset)
doFunction in class PDFFunctioninputs - 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)
Copyright © 2024. All rights reserved.