math

package module
v0.0.0-...-db6b647 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: MIT Imports: 3 Imported by: 1

README

math

Mathematical function

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatrixProduct

func MatrixProduct(X, Y [][]float64, c chan [][]float64)

MatrixProduct return the product between two matrix

func MatrixVectorProduct

func MatrixVectorProduct(X [][]float64, y []float64, c chan []float64)

MatrixVectorProduct return the product between matrix and vector

func Max

func Max(x []float64) float64

Max of vector

func Mean

func Mean(x []float64) float64

Mean function

func Min

func Min(x []float64) float64

Min of vector

func MinMax

func MinMax(X [][]float64) [][]float64

MinMax scale data.

func Normalize

func Normalize(X [][]float64) [][]float64

Normalize scale data.

func ParallelMatrixProd

func ParallelMatrixProd(X, Y [][]float64) (u [][]float64)

ParallelMatrixProd compute distribute the product between two matrix

func RescaleCoef

func RescaleCoef(theta, mu, sigma []float64) []float64

RescaleCoef rescale coefficients fitted.

func Round

func Round(num []float64, precision int) []float64

Round array with some presicion

func Sd

func Sd(x []float64) float64

Sd standart desviation function

func Traspose

func Traspose(X [][]float64) (t [][]float64)

Traspose of a matrix

func VectorAdd

func VectorAdd(x, y []float64) []float64

VectorAdd return the sum between two vectors.

func VectorDiff

func VectorDiff(x, y []float64) []float64

VectorDiff return the difference between two vectors.

func VectorProduct

func VectorProduct(x, y []float64) float64

VectorProduct return the scalar product between two vectors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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