Class LineSampler.LineSampler1D

    • Field Detail

      • ax

        private final double ax
        The x component of vertex a.
      • bx

        private final double bx
        The x component of vertex b.
    • Method Detail

      • createSample

        public double[] createSample​(double p1mu,
                                     double u)
        Description copied from class: LineSampler
        Creates the sample given the random variate u in the interval [0, 1]. The sum 1 - u is provided. The sample can be obtained from the line ab using:
         p = a(1 - u) + ub
         
        Specified by:
        createSample in class LineSampler
        Parameters:
        p1mu - plus 1 minus u (1 - u)
        u - the variate u
        Returns:
        the sample