public class Function
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_exponential
The Constant e_exponential.
|
static int |
e_postscript
The Constant e_postscript.
|
static int |
e_sampled
The Constant e_sampled.
|
static int |
e_stitching
The Constant e_stitching.
|
Constructor and Description |
---|
Function(Obj funct_dict)
Create a PDF.Function object from an existing SDF function dictionary.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
double[] |
eval(double[] in)
Evaluate the function at a given point.
|
int |
getInputCardinality()
Get the input cardinality.
|
int |
getOutputCardinality()
Get the output cardinality.
|
Obj |
getSDFObj()
Get the SDFObj.
|
int |
getType()
Get the current function type
|
public static final int e_sampled
public static final int e_exponential
public static final int e_stitching
public static final int e_postscript
public Function(Obj funct_dict)
funct_dict
- the funct_dictpublic void destroy()
public int getType() throws PDFNetException
PDFNetException
public int getInputCardinality() throws PDFNetException
PDFNetException
public int getOutputCardinality() throws PDFNetException
PDFNetException
public double[] eval(double[] in) throws PDFNetException
Note: that size of 'in' array must be greater than or equal to function input cardinality.
in
- the input pointPDFNetException
public Obj getSDFObj()