stochrates

package
v0.0.0-...-f39e3af Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Linspace

func Linspace(from float64, to float64, by float64) *mat.VecDense

returns uniform points on [from, to] spaced out "by" units apart. Example: Linspace(1, 2, 0.05) returns [1, 1.05, 1.10, 1.15, ..., 1.95, 2]

func Max

func Max(v *mat.VecDense) float64

Returns the largest element of "v"

func Min

func Min(v *mat.VecDense) float64

Returns the smallest element of "v"

func Sgn

func Sgn(x float64) float64

Returns 1 or -1 based on the sign of x.

func VecApply

func VecApply(X *mat.VecDense, f func(float64) float64) *mat.VecDense

Applies the function "f" to all of the elements in "X".

Types

This section is empty.

Jump to

Keyboard shortcuts

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