Class LineSampler.LineSamplerND

    • Field Detail

      • a

        private final double[] a
        The first vertex.
      • b

        private final double[] b
        The second vertex.
    • 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