kmgMath

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Epsilon = 1e-10

Variables

This section is empty.

Functions

func CeilToInt

func CeilToInt(x float64) int

func Float64Equal

func Float64Equal(x float64, y float64) bool

func Float64GreaterEqualThan

func Float64GreaterEqualThan(x float64, y float64) bool

func Float64GreaterThan

func Float64GreaterThan(x float64, y float64) bool

func Float64LessEqualThan

func Float64LessEqualThan(x float64, y float64) bool

func Float64LessThan

func Float64LessThan(x float64, y float64) bool

func Float64RoundToRelativePrec

func Float64RoundToRelativePrec(f float64, prec int) float64

使用相对精度输出浮点

func Float64RoundToRelativePrecOnOneFloat

func Float64RoundToRelativePrecOnOneFloat(f float64, prec int, precBaseF float64) float64

以一个基准数据,输出相对浮点精度

func FloatAverage

func FloatAverage(a []float64) float64

平均值

func FloatMax

func FloatMax(a []float64) float64

func FloatMid

func FloatMid(a []float64) float64

中位数

func FloatMin

func FloatMin(a []float64) float64

func FloatStdDev

func FloatStdDev(a []float64) float64

标准方差

func FloorToInt

func FloorToInt(x float64) int

func IntMin

func IntMin(a ...int) int

func MustParseFloat

func MustParseFloat(s string) float64

Types

type IntVector2

type IntVector2 struct {
	X int
	Y int
}

Jump to

Keyboard shortcuts

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