Class SampledFunction

java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFFunction
com.inductiveautomation.rm.pdf.reader.fps.SampledFunction

public class SampledFunction extends PDFFunction
Type 0 sampled functions. The original function is sampled at various points and these values are passed as a pdf stream. When a sampledFunction is evaluated, it looks in the sample table for the values corresponding to the sampled points surrounding the input value and interpolates between them. Functions of Order 0 use multilinear interpolation, while Order 3 functions use a cubic spline.
  • Constructor Details

    • SampledFunction

      public SampledFunction(PDFStream functionStream, PDFFile srcFile)
  • Method Details

    • initializeParameters

      public void initializeParameters(Map functionDict, PDFFile srcFile)
      Description copied from class: PDFFunction
      Read the function parameters
      Overrides:
      initializeParameters in class PDFFunction
    • function_implementation

      public void function_implementation(float[] in, float[] out)
      Specified by:
      function_implementation in class PDFFunction
    • multilinear_interpolate

      public void multilinear_interpolate(float[] in, float[] out)