gostddev

package module
Version: v0.0.0-...-e029253 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2017 License: MIT Imports: 1 Imported by: 0

README

Go Standard Deviation

Check out the standard deviation in Go.

It is meant to be simple and easy to read, hopefully it is.

Usage

import (
    "fmt"
    "github.com/antonlindstrom/gostddev"
)

func MyStdDev() {
    set := float64{1,2,3,4,5}
    fmt.Printf("%f\n", gostddev.StdDev(set))
    // Prints 1.41421
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffSqrtMean

func DiffSqrtMean(a []float64) []float64

func Mean

func Mean(a []float64) float64

func StdDev

func StdDev(a []float64) float64

func Sum

func Sum(a []float64) (sum float64)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL