testutil

package
v0.0.0-...-8fb85de Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check2DimSDE

func Check2DimSDE(
	targetSDE sde.SDE,
	expInitPt point.Point,
	driftChecker VecFldChecker,
	diffusionChecker VecFldChecker,
	seed int64,
	t *testing.T,
)

func CheckTimeAndBMIntr

func CheckTimeAndBMIntr(intr stchprc.Process, seed int64, t *testing.T)

func CheckVecFld

func CheckVecFld(
	vecFld vecfld.VectorField,
	checker VecFldChecker,
	t *testing.T,
)

func NewRand

func NewRand(seed int64) rand.Rand

func NewStdNorm

func NewStdNorm(seed int64) randgen.RandGenerator

Types

type DummyGen

type DummyGen struct {
	Value float64
}

func (DummyGen) Get

func (gen DummyGen) Get() float64

type VecFldChecker

type VecFldChecker struct {
	ExpectedFunc func([]float64) []float64
	Samples      []point.Point
}

Jump to

Keyboard shortcuts

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