Documentation ¶
Overview ¶
Package math defines common math operations
Index ¶
- func MaxIndexSliceFloat(slice []float64) int
- func MaxInt(a, b int) int
- func MaxSliceFloat(slice []float64) float64
- func MaxSliceInt(slice []int) int
- func MinInt(a, b int) int
- func MinSliceFloat(slice []float64) float64
- func MinSliceInt(slice []int) (min int, err error)
- func Round(num, unit float64) (rounded float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxIndexSliceFloat ¶
MaxIndexSliceFloat returns the index of the maximum value in a []float64.
func MaxSliceFloat ¶
MaxSliceFloat calculates the maximum value in a []float64.
func MaxSliceInt ¶
MaxSliceInt calculates the maximum value in a []int.
func MinSliceFloat ¶
MinSliceFloat calculates the minimum value in a []float64.
func MinSliceInt ¶
MinSliceInt calculates the minimum value in a []int.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.