mathutil

package
v0.0.0-...-249e25c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T Signed](v T) T

func Clamp

func Clamp[T constraints.Ordered](v, min, max T) T

func LogisticFunc

func LogisticFunc(x0, L, k float64) func(x float64) float64

LogisticFunc SEE: https://en.wikipedia.org/wiki/Logistic_function

func Max

func Max[T constraints.Ordered](ns ...T) (n T)

func Min

func Min[T constraints.Ordered](ns ...T) (n T)

Types

type Signed

type Signed interface {
	constraints.Signed | constraints.Float
}

Jump to

Keyboard shortcuts

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