za.co.luma.math.sampling
Class UniformRandomSampler

java.lang.Object
  extended by za.co.luma.math.sampling.UniformRandomSampler
All Implemented Interfaces:
Sampler<Vector2DDouble>

public class UniformRandomSampler
extends java.lang.Object
implements Sampler<Vector2DDouble>


Constructor Summary
UniformRandomSampler(double x0, double y0, double x1, double y1, int count)
           
 
Method Summary
 java.util.List<Vector2DDouble> sample()
          This method samples the structure, and returns a list of results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformRandomSampler

public UniformRandomSampler(double x0,
                            double y0,
                            double x1,
                            double y1,
                            int count)
Method Detail

sample

public java.util.List<Vector2DDouble> sample()
Description copied from interface: Sampler
This method samples the structure, and returns a list of results. The sampling is done in one step. Care must be taken when the sample size is large.

Specified by:
sample in interface Sampler<Vector2DDouble>
Returns: