Skip to content

gleicon/go-descriptive-statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Descriptive Statistics

This is a port of (https://github.com/thirtysixthspan/descriptive_statistics) to Go

Install

go get github.com/gleicon/go-descriptive-statistics

How to use

package main

import (
    "fmt"
    "github.com/gleicon/go-descriptive-statistics/descriptive-statistics"
)

var e = descriptive_statistics.Enum{2, 6, 9, 3, 5, 1, 8, 3, 6, 9, 2}

func main() {
    fmt.Println("List size: ", e.Len())
    fmt.Println("List Mean value: ", e.Mean())
    fmt.Println("List Median value: ", e.Median())
    fmt.Println("List Variance: ", e.Variance())
    fmt.Println("List Standard Deviation: ", e.StandardDeviation())
    fmt.Println("List 90% Percentile: ", e.Percentile(90.0))
}

Author

Gleicon Moraes

Releases

No releases published

Packages

No packages published

Languages