plt

package
v0.0.0-...-e0f4d7c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCoordinatesToMatrix

func ConvertCoordinatesToMatrix(points []Coordinate) lialg.Matrix

func PlotDistribution

func PlotDistribution(items []Coordinate, path string) error

plots given items and saves the plot at specified path

func PlotSelectedPoints

func PlotSelectedPoints(items, selectedPoints []Coordinate, path string) error

plots points and selected Points each in different colors and saves the plot at specified location

Types

type Coordinate

type Coordinate struct{ X1, X2 float64 }

only used for visualizing 2D Vectors

func ConvertMatrixToCoordinateSlice

func ConvertMatrixToCoordinateSlice(matrix *lialg.Matrix) []Coordinate

func ConvertSliceToCoordinate

func ConvertSliceToCoordinate(point []float64) Coordinate

func CreateNormalDistribution

func CreateNormalDistribution(mean, standardDeviation float64, numberOfItems int) []Coordinate

Jump to

Keyboard shortcuts

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