meansquare

package
v0.0.0-...-733ddd1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawPlot

func DrawPlot(ds, approx DotSet)

DrawPlot used to draw plot by approximated dots.

func GetCoeffs

func GetCoeffs(mat F64Matrix) []float64

GetCoeffs used to get found SLAE solution.

func ReadPolynomDegree

func ReadPolynomDegree() int

ReadPolynomDegree used to read polynom degree.

Types

type Dot

type Dot struct {
	X float64
	Y float64
	// contains filtered or unexported fields
}

Dot type used to represent plane dots with dot weight.

type DotSet

type DotSet []Dot

DotSet type used to represent amount of plane dots.

func GetApprox

func GetApprox(ds DotSet, coeffs []float64) DotSet

GetApprox used to find approximation dots.

func ReadDots

func ReadDots(f io.Reader) DotSet

ReadDots used to read Dot objects to DotSet object from file.

func (DotSet) PrintDots

func (ds DotSet) PrintDots()

PrintDots used to print dots in table form to standart output.

type F64Matrix

type F64Matrix [][]float64

F64Matrix type used to represent float64 matrix.

func MakeSLAE

func MakeSLAE(ds DotSet, n int) F64Matrix

MakeSLAE used to make SLAE.

func SolveSLAE

func SolveSLAE(ds DotSet, n int) F64Matrix

SolveSLAE used to solve SLAE.

func (F64Matrix) PrintMatrix

func (mat F64Matrix) PrintMatrix()

PrintMatrix used to print matrix in matrix form to standart output.

Jump to

Keyboard shortcuts

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