antonlindstrom / gostddev

Standard Deviation implementation in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
}

About

Standard Deviation implementation in Go

License:MIT License


Languages

Language:Go 79.3%Language:Makefile 20.7%