math

package
v0.0.0-...-3ab011f Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(a int) int

func IsPrime

func IsPrime(n int64) bool

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

Types

type RunningMedian

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

func NewRunningMedian

func NewRunningMedian() *RunningMedian

func (*RunningMedian) Add

func (rm *RunningMedian) Add(val int)

func (*RunningMedian) Current

func (rm *RunningMedian) Current() float64

Jump to

Keyboard shortcuts

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