Class ArrayFunction
- java.lang.Object
 - 
- com.inductiveautomation.rm.pdf.reader.PDFFunction
 - 
- com.inductiveautomation.rm.pdf.reader.fps.ArrayFunction
 
 
 
- 
public class ArrayFunction extends PDFFunction
An array function is not one of the built-in PDF function types. Rather, it is a cover function for the case where an array of n Functions is used as a single input, n output function. Can be used, for example, to declare completely different functions for each channel in a colorspace. 
- 
- 
Field Summary
- 
Fields inherited from class com.inductiveautomation.rm.pdf.reader.PDFFunction
ExponentialInterpolation, functionType, inputDomain, inputValues, outputRange, PostScriptCalculator, returnValues, Sampled, Stitching 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ArrayFunction(java.util.List funcs, PDFFile srcFile) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]evaluate(float[] inputs)Evaluate the function.voidfunction_implementation(float[] in, float[] out)intnumInputValues()Returns the number of parameters this function takes as inputintnumOutputValues()Returns the number of values this function returns.- 
Methods inherited from class com.inductiveautomation.rm.pdf.reader.PDFFunction
clipToRange, getInstance, initializeParameters 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ArrayFunction
public ArrayFunction(java.util.List funcs, PDFFile srcFile) 
 - 
 
- 
Method Detail
- 
evaluate
public float[] evaluate(float[] inputs)
Description copied from class:PDFFunctionEvaluate the function. Note that the return value array is reused, so if you need to save the results around for any length of time, you should copy them out.- Overrides:
 evaluatein classPDFFunction
 
- 
numInputValues
public int numInputValues()
Description copied from class:PDFFunctionReturns the number of parameters this function takes as input- Overrides:
 numInputValuesin classPDFFunction
 
- 
numOutputValues
public int numOutputValues()
Description copied from class:PDFFunctionReturns the number of values this function returns. Should be overridden by subclasses that don't require outputRange.- Overrides:
 numOutputValuesin classPDFFunction
 
- 
function_implementation
public void function_implementation(float[] in, float[] out)- Specified by:
 function_implementationin classPDFFunction
 
 - 
 
 -