generator

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 3 Imported by: 0

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

Generate returns a set of randomly distributed points.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL