Back to godoc.org

Package misc

v0.1.2
Latest Go to latest

The highest tagged major version is .

Published: Nov 30, 2019 | License: MIT | Module: github.com/tetsuzawa/go-adflib

Index

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier