public class PDFunctionType3 extends PDFunction
Modifier and Type | Field and Description |
---|---|
private COSArray |
bounds |
private float[] |
boundsValues |
private COSArray |
encode |
private COSArray |
functions |
private PDFunction[] |
functionsArray |
Constructor and Description |
---|
PDFunctionType3(COSBase functionStream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float[] |
eval(float[] input)
Evaluates the function at the given input.
|
COSArray |
getBounds()
Returns all bounds values as COSArray.
|
COSArray |
getEncode()
Returns all encode values as COSArray.
|
private PDRange |
getEncodeForParameter(int n)
Get the encode for the input parameter.
|
COSArray |
getFunctions()
Returns all functions values as COSArray.
|
int |
getFunctionType()
Returns the function type.
|
clipToRange, clipToRange, create, eval, getCOSObject, getDomainForInput, getNumberOfInputParameters, getNumberOfOutputParameters, getPDStream, getRangeForOutput, getRangeValues, interpolate, setDomainValues, setRangeValues, toString
private COSArray functions
private COSArray encode
private COSArray bounds
private PDFunction[] functionsArray
private float[] boundsValues
public PDFunctionType3(COSBase functionStream)
functionStream
- The function .public int getFunctionType()
getFunctionType
in class PDFunction
public float[] eval(float[] input) throws java.io.IOException
eval
in class PDFunction
input
- The array of input values for the function.
In many cases will be an array of a single value, but not always.java.io.IOException
- if something went wrong processing the function.public COSArray getFunctions()
public COSArray getBounds()
public COSArray getEncode()
private PDRange getEncodeForParameter(int n)
n
- The function parameter number.