random

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package random plots histograms of random distributions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	// random params
	Dist randx.RandParams `display:"add-fields"`

	// number of samples
	NumSamples int

	// number of bins in the histogram
	NumBins int

	// range for histogram
	Range minmax.F64

	// table for raw data
	Table *table.Table `display:"no-inline"`

	// histogram of data
	Histogram *table.Table `display:"no-inline"`
	// contains filtered or unexported fields
}

Data contains the random distribution plotter data and options.

type Random

type Random struct {
	core.Frame
	Data
}

Random is the random distribution plotter widget.

func NewRandom

func NewRandom(parent ...tree.Node) *Random

NewRandom returns a new Random with the given optional parent: Random is the random distribution plotter widget.

func (*Random) ConfigPlot

func (rd *Random) ConfigPlot(plt *plotcore.PlotEditor, dt *table.Table) *plotcore.PlotEditor

func (*Random) ConfigTable

func (rd *Random) ConfigTable(dt *table.Table)

func (*Random) Init

func (rd *Random) Init()

func (*Random) MakeToolbar

func (rd *Random) MakeToolbar(p *tree.Plan)

func (*Random) Plot

func (rd *Random) Plot()

Plot generates the data and plots a histogram of results.

Jump to

Keyboard shortcuts

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