mathutils

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AverageFloat32 added in v0.0.7

func AverageFloat32(array []float32) float64

AverageFloat32 is delegated to calculate the average of an float32 array

func AverageFloat64 added in v0.0.7

func AverageFloat64(array []float64) float64

AverageFloat64 is delegated to calculate the average of an float64 array

func AverageInt added in v0.0.7

func AverageInt(array []int) float64

AverageInt is delegated to calculate the average of an int array

func AverageInt32 added in v0.0.14

func AverageInt32(array []int32) float64

AverageInt32 is delegated to calculate the average of an int array

func AverageInt64 added in v0.0.14

func AverageInt64(array []int64) float64

AverageInt64 is delegated to calculate the average of an int array

func ConvertSize added in v0.0.11

func ConvertSize(bytes float64, dimension string) float64

ConvertSize is delegated to return the dimension related to the input byte size

func MaxFloat32Index added in v0.0.14

func MaxFloat32Index(array []float32) int

MaxFloat32Index return the index that contains the max value for the given array

func MaxFloat64Index added in v0.0.14

func MaxFloat64Index(array []float64) int

MaxFloat64Index return the index that contains the max value for the given array

func MaxInt32Index added in v0.0.14

func MaxInt32Index(array []int32) int

MaxInt32Index return the index that contains the max value for the given array

func MaxInt64Index added in v0.0.14

func MaxInt64Index(array []int64) int

MaxInt64Index return the index that contains the max value for the given array

func MaxIntIndex

func MaxIntIndex(array []int) int

MaxIntIndex return the index that contains the max value for the given array

func SumFloat32Array added in v0.0.14

func SumFloat32Array(integers []float32) float32

SumFloat32Array return the of every element contained in the array

func SumFloat64Array added in v0.0.14

func SumFloat64Array(integers []float64) float64

SumFloat64Array return the of every element contained in the array

func SumInt32Array added in v0.0.14

func SumInt32Array(integers []int32) int32

SumInt32Array return the of every element contained in the array

func SumInt64Array added in v0.0.14

func SumInt64Array(integers []int64) int64

SumInt64Array return the of every element contained in the array

func SumIntArray

func SumIntArray(integers []int) int

SumIntArray return the of every element contained in the array

Types

This section is empty.

Jump to

Keyboard shortcuts

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