Class UniformDistributionOverBox1

  • All Implemented Interfaces:
    InitialsFactory

    public class UniformDistributionOverBox1
    extends Object
    implements InitialsFactory
    This algorithm, by sampling uniformly in each dimension, generates a set of initials uniformly distributed over a box region, with some degree of irregularity or randomness.
    • Constructor Detail

      • UniformDistributionOverBox1

        public UniformDistributionOverBox1​(RandomLongGenerator uniform,
                                           int N,
                                           RealInterval... bounds)
        Construct a generator to uniformly sample points over a feasible region.
        Parameters:
        uniform - a uniform random number generator
        N - the number of initials to generate
        bounds - the feasible box region
    • Method Detail

      • seed

        public void seed​(long... seeds)
        Seed the random number generator to produce repeatable sequences.
        Parameters:
        seeds - the seeds
      • getInitials

        public Vector[] getInitials​(Vector... notused)
        Description copied from interface: InitialsFactory
        Generate a set of initial points for optimization from the fewer than required points.
        Specified by:
        getInitials in interface InitialsFactory
        Parameters:
        notused - initial points; null if no initial supplied
        Returns:
        a full set of initial points
      • getInitials

        public Vector[] getInitials()
        Generate a set of initial points for optimization.
        Returns:
        a full set of initial points