misc

package
v0.0.0-...-89013a2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultiGCD

func MultiGCD(line []int64) (gcd int64)

MultiGCD returns the Greatest Common Delimiter for all the numbers in the slice.

Types

type Average

type Average struct {
	// contains filtered or unexported fields
}

Average stores dynamic average data.

func (*Average) Feed

func (a *Average) Feed(value interface{})

Feed recalculates the average basing on the new value.

func (*Average) Get

func (a *Average) Get() float64

Get returns an average in the float64 format.

func (*Average) GetR

func (a *Average) GetR() rational.Rational

GetR returns an average in the Rational format.

Jump to

Keyboard shortcuts

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