misc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElmAbs

func ElmAbs(fs []float64) []float64

func Floor

func Floor(fs [][]float64) []float64

func GetMeanError

func GetMeanError(x1, x2 []float64, fn string) (float64, error)

func GetValidError

func GetValidError(x1, x2 []float64) ([]float64, error)

func LinSpace

func LinSpace(start, end float64, n int) []float64

func LogSE

func LogSE(x1, x2 []float64) ([]float64, error)

func MAE

func MAE(x1, x2 []float64) (float64, error)

func MSE

func MSE(x1, x2 []float64) (float64, error)

func NewNormRand2dSlice

func NewNormRand2dSlice(n, m int) [][]float64

NewRandNorm2dSlice make 2d slice. the arg n is sample number and m is number of signals.

func NewNormRandSlice

func NewNormRandSlice(n int) []float64

func NewRand2dSlice

func NewRand2dSlice(n, m int) [][]float64

NewRand2dSlice make 2d slice. the arg n is sample number and m is number of signals.

func NewRandSlice

func NewRandSlice(n int) []float64

func NewRandn

func NewRandn(stddev, mean float64) float64

NewRandn returns random value. stddev 0.5, mean 0.

func RMSE

func RMSE(x1, x2 []float64) (float64, error)

func Unset

func Unset(s []float64, i int) []float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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