| Modifier and Type | Field and Description |
|---|---|
| private COSArray | |
| private COSDictionary | |
| private PDStream | |
| private int | |
| private int | |
| private COSArray |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected float[] | Returns: the clipped valuesthe input values inputValues)Clip the given input values to the ranges. |
| protected float | Returns: the clipped valuethe input value x, float the min value of the range rangeMin, float the max value of the range rangeMax)Clip the given input value to the given range. |
| public static PDFunction | |
| public abstract float[] | 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.The array of input values for the function.
In many cases will be an array of a single value, but not always. input)Evaluates the function at the given input. |
| public final COSDictionary | Returns: The stream for this object.Implements org. Returns the stream. |
| public PDRange | Returns: The domain range for this component.The parameter number to get the domain for. n)This will get the range for a certain input parameter. |
| private COSArray | |
| public abstract int | |
| public int | Returns: The number of input parameters that have a domain specified.This will get the number of input parameters that have a domain specified. |
| public int | Returns: The number of output parameters that have a range specified.This will get the number of output parameters that have a range specified. |
| protected PDStream | |
| public PDRange | Returns: The range for this component.The output parameter number to get the range for. n)This will get the range for a certain output parameters. |
| protected COSArray | |
| protected float | Returns: the interpolated y valuethe to be interpolated value. x, float the min value of the x range xRangeMin, float the max value of the x range xRangeMax, float the min value of the y range yRangeMin, float the max value of the y range yRangeMax)For a given value of x, interpolate calculates the y value on the line defined by the two points (xRangeMin , xRangeMax ) and (yRangeMin , yRangeMax ). |
| public void | |
| public void | |
| public String |
| domain | back to summary |
|---|---|
| private COSArray domain | |
| functionDictionary | back to summary |
|---|---|
| private COSDictionary functionDictionary | |
| functionStream | back to summary |
|---|---|
| private PDStream functionStream | |
| numberOfInputValues | back to summary |
|---|---|
| private int numberOfInputValues | |
| numberOfOutputValues | back to summary |
|---|---|
| private int numberOfOutputValues | |
| range | back to summary |
|---|---|
| private COSArray range | |
| PDFunction | back to summary |
|---|---|
| public PDFunction(COSBase function) Constructor.
| |
| clipToRange | back to summary |
|---|---|
| protected float[] clipToRange(float[] inputValues) Clip the given input values to the ranges.
| |
| clipToRange | back to summary |
|---|---|
| protected float clipToRange(float x, float rangeMin, float rangeMax) Clip the given input value to the given range.
| |
| create | back to summary |
|---|---|
| public static PDFunction create(COSBase function) throws IOException Create the correct PD Model function based on the COS base function.
| |
| eval | back to summary |
|---|---|
| public abstract float[] eval(float[] input) throws IOException Evaluates the function at the given input. ReturnValue = f(input)
| |
| getCOSObject | back to summary |
|---|---|
| public final COSDictionary getCOSObject() Implements org. Returns the stream.
| |
| getDomainForInput | back to summary |
|---|---|
| public PDRange getDomainForInput(int n) This will get the range for a certain input parameter. This is will never return null. If it is not present then the range 0 to 0 will be returned.
| |
| getDomainValues | back to summary |
|---|---|
| private COSArray getDomainValues() Returns all domains for the input values as COSArray. Required for all function types.
| |
| getFunctionType | back to summary |
|---|---|
| public abstract int getFunctionType() Returns the function type. Possible values are: 0 - Sampled function 2 - Exponential interpolation function 3 - Stitching function 4 - PostScript calculator function
| |
| getNumberOfInputParameters | back to summary |
|---|---|
| public int getNumberOfInputParameters() This will get the number of input parameters that have a domain specified.
| |
| getNumberOfOutputParameters | back to summary |
|---|---|
| public int getNumberOfOutputParameters() This will get the number of output parameters that have a range specified. A range for output parameters is optional so this may return zero for a function that does have output parameters, this will simply return the number that have the range specified.
| |
| getPDStream | back to summary |
|---|---|
| protected PDStream getPDStream() Returns the underlying PDStream.
| |
| getRangeForOutput | back to summary |
|---|---|
| public PDRange getRangeForOutput(int n) This will get the range for a certain output parameters. This is will never return null. If it is not present then the range 0 to 0 will be returned.
| |
| getRangeValues | back to summary |
|---|---|
| protected COSArray getRangeValues() Returns all ranges for the output values as COSArray . Required for type 0 and type 4 functions
| |
| interpolate | back to summary |
|---|---|
| protected float interpolate(float x, float xRangeMin, float xRangeMax, float yRangeMin, float yRangeMax) For a given value of x, interpolate calculates the y value on the line defined by the two points (xRangeMin , xRangeMax ) and (yRangeMin , yRangeMax ).
| |
| setDomainValues | back to summary |
|---|---|
| public void setDomainValues(COSArray domainValues) This will set the domain values.
| |
| setRangeValues | back to summary |
|---|---|
| public void setRangeValues(COSArray rangeValues) This will set the range values.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |