Class UnitSphereSampler

    • Method Summary

      Modifier and Type Method Description
      double[] nextVector()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnitSphereSampler

        public UnitSphereSampler​(int dimension,
                                 UniformRandomProvider rng)
        Parameters:
        dimension - Space dimension.
        rng - Generator for the individual components of the vectors. A shallow copy will be stored in this instance.
        Throws:
        java.lang.IllegalArgumentException - If dimension <= 0
    • Method Detail

      • nextVector

        public double[] nextVector()
        Returns:
        a random normalized Cartesian vector.