|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.data.Generator<IPoint>
algs.model.data.points.CircleGenerator
public class CircleGenerator
Generators of sample data points along the edge of a circle whose origin is (0,0) and has the given radius (defaults to 1).
| Field Summary | |
|---|---|
protected int |
radius
Default to unit circle. |
| Constructor Summary | |
|---|---|
CircleGenerator()
Construct default generator with radius of 1. |
|
CircleGenerator(int r)
Construct generator with given radius. |
|
| Method Summary | |
|---|---|
Generator<IPoint> |
construct(java.lang.String[] args)
Provide reflective behavior to construct instance of generator given an array of string arguments. |
IPoint[] |
generate(int size)
Generate a set of |size| points along the edge of a circle, thus ensuring that all points belong to the convex hull. |
java.lang.String[] |
parameters()
Declares the name of the parameters used when constructing the generator in order from left to right. |
| Methods inherited from class algs.model.data.Generator |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int radius
| Constructor Detail |
|---|
public CircleGenerator()
public CircleGenerator(int r)
r - desired radius| Method Detail |
|---|
public java.lang.String[] parameters()
Generator
parameters in class Generator<IPoint>public Generator<IPoint> construct(java.lang.String[] args)
construct in class Generator<IPoint>public IPoint[] generate(int size)
generate in class Generator<IPoint>size - number of points to be generated.
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||