testutils

package
v0.0.0-...-2dfda9a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertInDeltaVec

func AssertInDeltaVec(t *testing.T, expected, actual mat.Vector, rTol, aTol float64) bool

func AssertInDeltaVecWithEndPoints

func AssertInDeltaVecWithEndPoints(t *testing.T, expected, actual mat.Vector,
	rTolBody, rTolEnd, aTolBody, aTolEnd float64) bool

func GeneralisedJinc

func GeneralisedJinc(v mat.Vector, a float64, p int) mat.Vector

func GeneralisedTopHat

func GeneralisedTopHat(r mat.Vector, a float64, p int) mat.Vector

--------------- MATHS FUNCTIONS ----------------

func InDeltaRATol

func InDeltaRATol(t *testing.T, expected, actual, rTol, aTol float64, msgAndArgs ...any) bool

func MeanAbsError

func MeanAbsError(v1, v2 mat.Vector) float64

---------------- HELPER FUNCTIONS ----------------

Types

This section is empty.

Jump to

Keyboard shortcuts

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