public abstract class PDFFunction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ExponentialInterpolation |
int |
functionType |
float[] |
inputDomain |
float[] |
inputValues |
float[] |
outputRange |
static int |
PostScriptCalculator |
float[] |
returnValues |
static int |
Sampled |
static int |
Stitching |
Constructor and Description |
---|
PDFFunction() |
PDFFunction(java.util.Map functionDict,
PDFFile srcFile)
Constructor - takes the pdf function dictionary and the file it came from.
|
PDFFunction(PDFStream functionStream,
PDFFile srcFile)
Constructor for functions which take a stream
|
Modifier and Type | Method and Description |
---|---|
void |
clipToRange(float[] vals,
float[] range,
float[] clipped)
Used internally by all function types to clip both the input and the output
values to the Range and Domain values.
|
float[] |
evaluate(float[] inputs)
Evaluate the function.
|
abstract void |
function_implementation(float[] in,
float[] out) |
static PDFFunction |
getInstance(java.lang.Object function,
PDFFile srcFile)
Reads the function dictionary and creates an instance of the appropriate PDFFunction subclass
|
void |
initializeParameters(java.util.Map functionDict,
PDFFile srcFile)
Read the function parameters
|
int |
numInputValues()
Returns the number of parameters this function takes as input
|
int |
numOutputValues()
Returns the number of values this function returns.
|
public static final int Sampled
public static final int ExponentialInterpolation
public static final int Stitching
public static final int PostScriptCalculator
public int functionType
public float[] inputDomain
public float[] outputRange
public float[] returnValues
public float[] inputValues
public PDFFunction()
public PDFFunction(java.util.Map functionDict, PDFFile srcFile)
public static PDFFunction getInstance(java.lang.Object function, PDFFile srcFile)
public void initializeParameters(java.util.Map functionDict, PDFFile srcFile)
public int numInputValues()
public int numOutputValues()
public float[] evaluate(float[] inputs)
public void clipToRange(float[] vals, float[] range, float[] clipped)
public abstract void function_implementation(float[] in, float[] out)