Module org.sejda.sambox
Class PDFunctionTypeIdentity
java.lang.Object
org.sejda.sambox.pdmodel.common.function.PDFunction
org.sejda.sambox.pdmodel.common.function.PDFunctionTypeIdentity
- All Implemented Interfaces:
COSObjectable
The identity function.
- Author:
- Tilman Hausherr
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.sejda.sambox.pdmodel.common.function.PDFunction
clipToRange, clipToRange, create, eval, getCOSObject, getDomainForInput, getNumberOfInputParameters, getNumberOfOutputParameters, getPDStream, getRangeForOutput, interpolate, setDomainValues, setRangeValues
-
Constructor Details
-
PDFunctionTypeIdentity
-
-
Method Details
-
getFunctionType
public int getFunctionType()Description copied from class:PDFunctionReturns the function type.Possible values are:
0 - Sampled function 2 - Exponential interpolation function 3 - Stitching function 4 - PostScript calculator function
- Specified by:
getFunctionTypein classPDFunction- Returns:
- the function type.
-
eval
public float[] eval(float[] input) Description copied from class:PDFunctionEvaluates the function at the given input. ReturnValue = f(input)- Specified by:
evalin classPDFunction- Parameters:
input- The array of input values for the function. In many cases will be an array of a single value, but not always.- Returns:
- The of outputs the function returns based on those inputs. In many cases will be an array of a single value, but not always.
-
getRangeValues
Description copied from class:PDFunctionReturns all ranges for the output values as COSArray . Required for type 0 and type 4 functions- Overrides:
getRangeValuesin classPDFunction- Returns:
- the ranges array.
-
toString
Description copied from class:PDFunction- Overrides:
toStringin classPDFunction
-