README

kmath

Auxiliary math routines in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cover

func Cover(v []float64, lev float64) (float64, float64)

    Cover

    func Factorial

    func Factorial(n int64) int64

    func FactorialBig

    func FactorialBig(n int64) *big.Int

    func Gini

    func Gini(in []float64) float64

      Gini returns the Gini coefficient. It is a measure of inequality in a frequency distribution. 0 indicates perfect equality, 1 maximum inequality.

      See https://en.wikipedia.org/wiki/Gini_coefficient

      func IsPrime

      func IsPrime(n uint64) bool

      func Normal

      func Normal(x float64) float64

        Normal returns the y value at the given x of the standard unit normal distribution (mean = 0 and standard deviation = 1).

        func NormalArea

        func NormalArea(x float64) float64

        func NormalArea_

        func NormalArea_(x float64) float64

          NormalArea calculates the area below the normal curve.

          den = 2^n*n!*(2*n+1)

          x - x(3,5,7...) / den

          func Pearson

          func Pearson(a, b []float64) (float64, error)

            Pearson returns the Pearson correlation coeficient of two arrays

            func Sqrt

            func Sqrt(n uint64) uint64

              Not accurate and not faster than Go's own math.Sqrt

              Types

              This section is empty.