Documentation ¶
Overview ¶
Package generator provides an interface and implementations of generators to create a group of points.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpacedGenerator ¶
func NewSpacedGenerator(iterations int) spacedGenerator
NewSpacedGenerator creates a new generator that runs with a given number of iterations.
Types ¶
type Generator ¶
type Generator interface { // Generate generates and returns a point group with a specified number of points. Generate(numPoints int) normgeom.NormPointGroup }
A Generator is used to generate a group of points.
type RandomGenerator ¶
type RandomGenerator struct { }
A RandomGenerator generates a point group filled with random points.
func (RandomGenerator) Generate ¶
func (r RandomGenerator) Generate(n int) normgeom.NormPointGroup
Generate returns a set of randomly distributed points.
Click to show internal directories.
Click to hide internal directories.