Skip to content

gregscott94/z-table-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Normal Distribution Z-Score Table - Go

Generates a normal distribution z-score table in Go. Provides functions for quick z-score and percentage lookup.

Installing

To start using ztable, install Go and run go get:

$ go get -u github.com/gregscott94/z-table-golang

To Use

// Creating a new z-score table
zTable := NewZTable(nil)

// To find the percentage of a given z-score
percentage := zTable.FindPercentage(1.09)
// percentage = 0.8621434279679557

// To find the closest z-score given a percentage
zScore, err := zTable.FindZScore(0.04363)
// zScore = -1.71

About

Generates a normal distribution z-score table in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages