public class PDFunctionType2 extends PDFunction
Modifier and Type | Field and Description |
---|---|
private COSArray |
c0
The C0 values of the exponential function.
|
private COSArray |
c1
The C1 values of the exponential function.
|
private float |
exponent
The exponent value of the exponential function.
|
Constructor and Description |
---|
PDFunctionType2(COSBase function)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float[] |
eval(float[] input)
Performs exponential interpolation
Evaluates the function at the given input.
|
COSArray |
getC0()
Returns the C0 values of the function, 0 if empty.
|
COSArray |
getC1()
Returns the C1 values of the function, 1 if empty.
|
int |
getFunctionType()
Returns the function type.
|
float |
getN()
Returns the exponent of the function.
|
java.lang.String |
toString() |
clipToRange, clipToRange, create, eval, getCOSObject, getDomainForInput, getNumberOfInputParameters, getNumberOfOutputParameters, getPDStream, getRangeForOutput, getRangeValues, interpolate, setDomainValues, setRangeValues
private final COSArray c0
private final COSArray c1
private final float exponent
public PDFunctionType2(COSBase function)
function
- 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 getC0()
public COSArray getC1()
public float getN()
public java.lang.String toString()
toString
in class PDFunction