org.apache.commons.math3.optimization.general
Class RandomCirclePointGenerator

java.lang.Object
  extended by org.apache.commons.math3.optimization.general.RandomCirclePointGenerator

public class RandomCirclePointGenerator
extends Object

Factory for generating a cloud of points that approximate a circle.


Constructor Summary
RandomCirclePointGenerator(double x, double y, double radius, double xSigma, double ySigma, long seed)
           
 
Method Summary
 Vector2D[] generate(int n)
          Point generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomCirclePointGenerator

public RandomCirclePointGenerator(double x,
                                  double y,
                                  double radius,
                                  double xSigma,
                                  double ySigma,
                                  long seed)
Parameters:
x - Abscissa of the circle center.
y - Ordinate of the circle center.
radius - Radius of the circle.
xSigma - Error on the x-coordinate of the circumference points.
ySigma - Error on the y-coordinate of the circumference points.
seed - RNG seed.
Method Detail

generate

public Vector2D[] generate(int n)
Point generator.

Parameters:
n - Number of points to create.
Returns:
the cloud of n points.


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.