package
0.0.0-20201022151355-225e849d893f
Repository: https://github.com/aunum/gold.git
Documentation: pkg.go.dev
# Functions
BoolToInt converts a boolean to an int, with 1=true 0=false.
F32SliceToF64 converts a float32 slice to a float64 slice.
I32SliceToI converts an int32 slice to an int slice.
MakeIRange creates an int slice for the given range.
MaxF32 returns the max index and max value for a float32 slice.
Mean of the values.
MeanNorm is mean normalization.
MinMaxNorm is min-max normalization.
NewEqWidthBinner returns an EqWidthBin.
RandF32 returns a random float in the given range.
StdDev returns the standard deviation of x.
ToF32 attempts to convert the given interface to float32.
ToF64 attempts to convert the given interface to float64.
Variance is the average distance from the mean.
ZNorm uses z-score normalization.
# Structs
EqWidthBinner implements the equal width binning algorithm.