Class 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 Detail

      • SampledFunction

        public SampledFunction​(PDFStream functionStream,
                               PDFFile srcFile)
    • Method Detail

      • multilinear_interpolate

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