Versions in this module Expand all Collapse all v0 v0.3.7 Dec 10, 2024 v0.3.6 Dec 9, 2024 v0.3.5 Oct 19, 2024 v0.3.4 Sep 30, 2024 v0.3.3 Sep 9, 2024 v0.3.2 Aug 17, 2024 v0.3.1 Aug 2, 2024 v0.3.0 Jul 24, 2024 v0.2.3 Jul 16, 2024 v0.2.2 Jul 14, 2024 v0.2.1 Jul 14, 2024 v0.2.0 Jun 20, 2024 v0.1.4 Jun 1, 2024 v0.1.3 May 5, 2024 v0.1.2 May 1, 2024 v0.1.1 May 1, 2024 Changes in this version + const MaxFloat32 + const MaxFloat64 + const MinFloat32 + const MinFloat64 + func NiceRoundNumber(x float64, below bool) float64 + type AvgMax32 struct + Avg float32 + Max float32 + MaxIndex int32 + N int32 + Sum float32 + func (am *AvgMax32) CalcAvg() + func (am *AvgMax32) CopyFrom(oth *AvgMax32) + func (am *AvgMax32) Init() + func (am *AvgMax32) String() string + func (am *AvgMax32) UpdateFrom(oth *AvgMax32) + func (am *AvgMax32) UpdateFromOther(oSum, oMax float32, oN, oMaxIndex int32) + func (am *AvgMax32) UpdateValue(val float32, idx int32) + type AvgMax64 struct + Avg float64 + Max float64 + MaxIndex int32 + N int32 + Sum float64 + func (am *AvgMax64) CalcAvg() + func (am *AvgMax64) CopyFrom(oth *AvgMax64) + func (am *AvgMax64) Init() + func (am *AvgMax64) UpdateFrom(oth *AvgMax64) + func (am *AvgMax64) UpdateValue(val float64, idx int) + type F32 struct + Max float32 + Min float32 + func (mr *F32) ClipNormValue(val float32) float32 + func (mr *F32) ClipValue(val float32) float32 + func (mr *F32) FitInRange(oth F32) bool + func (mr *F32) FitValInRange(val float32) bool + func (mr *F32) InRange(val float32) bool + func (mr *F32) IsHigh(val float32) bool + func (mr *F32) IsLow(val float32) bool + func (mr *F32) IsValid() bool + func (mr *F32) Midpoint() float32 + func (mr *F32) NormValue(val float32) float32 + func (mr *F32) ProjValue(val float32) float32 + func (mr *F32) Range() float32 + func (mr *F32) Scale() float32 + func (mr *F32) Set(mn, mx float32) + func (mr *F32) SetInfinity() + func (mr *F32) String() string + type F64 struct + Max float64 + Min float64 + func (mr *F64) ClipNormValue(val float64) float64 + func (mr *F64) ClipValue(val float64) float64 + func (mr *F64) FitInRange(oth F64) bool + func (mr *F64) FitValInRange(val float64) bool + func (mr *F64) InRange(val float64) bool + func (mr *F64) IsHigh(val float64) bool + func (mr *F64) IsLow(val float64) bool + func (mr *F64) IsValid() bool + func (mr *F64) Midpoint() float64 + func (mr *F64) NormValue(val float64) float64 + func (mr *F64) ProjValue(val float64) float64 + func (mr *F64) Range() float64 + func (mr *F64) Scale() float64 + func (mr *F64) Set(mn, mx float64) + func (mr *F64) SetInfinity() + type Int struct + Max int + Min int + func (mr *Int) ClipNormValue(val int) float32 + func (mr *Int) ClipValue(val int) int + func (mr *Int) FitInRange(oth Int) bool + func (mr *Int) FitValInRange(val int) bool + func (mr *Int) InRange(val int) bool + func (mr *Int) IsHigh(val int) bool + func (mr *Int) IsLow(val int) bool + func (mr *Int) IsValid() bool + func (mr *Int) Midpoint() float32 + func (mr *Int) NormValue(val int) float32 + func (mr *Int) ProjValue(val float32) float32 + func (mr *Int) Range() int + func (mr *Int) Scale() float32 + func (mr *Int) Set(mn, mx int) + func (mr *Int) SetInfinity() + type Range32 struct + FixMax bool + FixMin bool + func (rr *Range32) Range() float32 + func (rr *Range32) SetMax(mx float32) + func (rr *Range32) SetMin(mn float32) + type Range64 struct + FixMax bool + FixMin bool + func (rr *Range64) Range() float64 + func (rr *Range64) SetMax(mx float64) + func (rr *Range64) SetMin(mn float64)