plotter

package
v0.0.0-...-e1d4e1a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphicsNames

type GraphicsNames int
const (
	FramesDir GraphicsNames = iota
	VideosDir
	FrameFormat
	VideoFormat
)

func (GraphicsNames) String

func (g GraphicsNames) String() string

type Plotter

type Plotter interface {
	Plot()
}

Plotter is a struct used to visualise problems and a population

type Plotter2D

type Plotter2D struct {
	Title, LabelX, LabelY, Filename string
	Min, Max                        float64
	Solution, Extremes              [][]float64
}

Plotter2D is a struct incorporating the Plotter interface to plot 2D plots

func (*Plotter2D) Plot

func (plotter2d *Plotter2D) Plot(pops ...[]types.Individual)

Plot Takes in two lists of individuals. The first list is the population while the second is the archive

func (*Plotter2D) PlotMetric

func (plotter2d *Plotter2D) PlotMetric(data []float64, switchPoint int)

type PpsPlotter

type PpsPlotter struct {
	Population        *[]types.Individual
	Archive           *[]types.Individual
	Generation, Stage *int
	Stages            []types.Stage
	Config            *configs.Export
	Cmop              *types.Cmop
}

func (PpsPlotter) ExportVideo

func (p PpsPlotter) ExportVideo()

func (PpsPlotter) PlotFrame

func (p PpsPlotter) PlotFrame()

Jump to

Keyboard shortcuts

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