synthetic

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Int() int
}

Generator is a pseudo-random numbers generator.

func Counter

func Counter(start int) Generator

Counter returns a Generator giving a sequence of unique integers.

func Exponential

func Exponential(mean float64) Generator

Exponential returns a Generator resembling an exponential distribution.

func Hotspot

func Hotspot(min, max int, hotFrac float64) Generator

Hotspot returns a Generator resembling a hotspot distribution. hotFrac is the fraction of total items which have a proportion (1.0-hotFrac).

func Uniform

func Uniform(min, max int) Generator

Uniform returns a Generator resembling a uniform distribution.

func Zipf

func Zipf(min, max int, exp float64) Generator

Zipf returns a Generator resembling Zipf distribution.

Jump to

Keyboard shortcuts

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