float64y

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(v float64) float64

Abs returns the absolute value of v. NOTE: this method is deprecated. Use helpy.Abs instead.

func Contains

func Contains(vs []float64, v float64) bool

Contains returns true if vs contains v. NOTE: this function is deprecated. Use slicey.Contains instead.

func Float64OrDefault

func Float64OrDefault(v *float64, defaultVal float64) *float64

Float64OrDefault returns float64 if it is not nil, and a pointer to defaultVal otherwise. NOTE: this method is deprecated. Use helpy.DerefOrValue instead.

func Pointer

func Pointer(v float64) *float64

Pointer returns a pointer to the given float64. NOTE: this method is deprecated. Use helpy.Pointer instead.

func Random

func Random() float64

Random returns a random value of type float64

func RandomN

func RandomN(n float64) float64

RandomN returns a non-negative pseudo-random number in [0,n) of type float64.

func Unique

func Unique(vs []float64) []float64

Unique returns a new list containing unique float64s from the given input NOTE: this function is deprecated. Use slicey.Unique instead.

Types

type Set

type Set helpy.Set[float64]

NOTE: this type is deprecated. Use helpy.Set instead

func MakeSet

func MakeSet(vs ...float64) Set

MakeSet returns a lookup map for float64 NOTE: this function is deprecated. Use helpy.MakeSet instead.

func ToSet

func ToSet(vs []float64) Set

ToSet returns a lookup map for float64. NOTE: this function is deprecated. Use helpy.ToSet instead.

func (Set) Contains

func (s Set) Contains(v float64) bool

func (Set) Equal

func (s Set) Equal(s2 Set) bool

func (Set) Intersect

func (s Set) Intersect(s2 Set) Set

func (Set) Union

func (s Set) Union(s2 Set) Set

Jump to

Keyboard shortcuts

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