GoStats

package module
v0.0.0-...-5f3546f Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: MIT Imports: 2 Imported by: 0

README

GoStats Build Status cover.run Go Report Card

GoStats is an Open Source Go library for math statistics mostly used in Machine Learning domains, it covers most of the Statistical measures functions, written by Fris.

Documentations

Docs can be found here GoStats Docs.

License

GoStats is under the MIT License.

MIT License

Copyright (c) 2018 Fris

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Documentation

Index

Constants

View Source
const (
	// MaxFloat64 is the biggest number that can be used in Go using the float64 type.
	MaxFloat64 = math.MaxFloat64
	// MinFloat64 is the smallest number that can be used in Go using the float64 type.
	MinFloat64 = -(MaxFloat64)
)

Variables

This section is empty.

Functions

func Max

func Max(numbers []float64) (iMax int, max float64)

Max is to get the biggest number of the float64 numbers.

func Mean

func Mean(numbers []float64) float64

Mean of the float64 numbers.

func Median

func Median(numbers []float64, sort bool) float64

Median of the float64 numbers.

func Min

func Min(numbers []float64) (iMin int, min float64)

Min is to get the smallest number of the float64 numbers.

func Mode

func Mode(numbers []float64) (mode float64, r int)

Mode the float64 numbers.

func Range

func Range(numbers []float64) float64

Range of the float64 numbers.

func Repeats

func Repeats(numbers []float64) (r map[float64]int)

Repeats of the float64 numbers.

func Singular

func Singular(number float64) bool

Singular is to get whether a number is singular or not.

func Sort

func Sort(numbers []float64) []float64

Sort the []float64.

func StandardDeviation

func StandardDeviation(numbers []float64) float64

StandardDeviation of the float64 numbers.

func Total

func Total(numbers []float64) (total float64)

Total of the float64 numbers.

func Variance

func Variance(numbers []float64) (variance float64)

Variance of the float64 numbers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL