interp

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BiInterpolation

func BiInterpolation(dm DotMatrix, d Dot, nx, ny int) float64

BiInterpolation used to find value of X,Y Dot coordinate using Newton polynom.

func Interpolation

func Interpolation(ds DotSet, d Dot, n int) float64

Interpolation used to find value of X Dot coordinate using Newton polynom.

Types

type Dot

type Dot struct {
	X float64
	Y float64
}

Dot type used to represent cartesian dots.

func ReadFuncData

func ReadFuncData() (Dot, int, int)

ReadFuncData used to read function X coordinate and polynom degree.

type DotMatrix

type DotMatrix []DotSet

DotMatrix type used to represent matrix of cartesian dots.

func ReadDots

func ReadDots(f io.Reader) DotMatrix

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

func (DotMatrix) PrintMatrix

func (dm DotMatrix) PrintMatrix()

PrintMatrix used to print X coords in DotMatrix.

type DotSet

type DotSet []Dot

DotSet type used to represent amount of cartesian dots.

type FTable

type FTable [][]float64

FTable used to represent table of float numbers.

Jump to

Keyboard shortcuts

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