vector

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vec

type Vec []float64

func FromInts

func FromInts(ints []int) Vec

func MakeVec

func MakeVec(size int, source func(index int) float64) Vec

func (Vec) Average

func (vec Vec) Average() float64

func (Vec) Copy

func (vec Vec) Copy() Vec

func (Vec) DivideScalar

func (vec Vec) DivideScalar(scalar float64) Vec

func (Vec) Len

func (vec Vec) Len() int

func (Vec) Map

func (vec Vec) Map(op func(x float64) float64) Vec

func (Vec) MulScalar

func (vec Vec) MulScalar(scalar float64) Vec

func (Vec) New

func (vec Vec) New() Vec

func (Vec) Smooth

func (vec Vec) Smooth(alpha float64) Vec

alpha determines the degree of smoothing

func (Vec) Sum

func (vec Vec) Sum() float64

func (Vec) Uints

func (vec Vec) Uints() []uint64

Jump to

Keyboard shortcuts

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