bfp

package
v0.0.0-...-fcfd9a8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_N = 10
)
View Source
const (
	UNIFORM = iota
)

Variables

This section is empty.

Functions

func FindMinimumAmongMinima

func FindMinimumAmongMinima(f IFunction, minVectors [][]float64) (int, []float64)

func UniformRandomVector

func UniformRandomVector(min, max float64, n int) []float64

Types

type BasinFunction

type BasinFunction struct {
	A, H, K float64
}

func NewBasinFunction

func NewBasinFunction(a, h, k float64) *BasinFunction

func (*BasinFunction) Compute

func (b *BasinFunction) Compute(x []float64) (float64, error)

type IFunction

type IFunction interface {
	Compute(x []float64) (float64, error)
}

type RandomSearch

type RandomSearch struct {
	ProbabilityDistribution int
	MaxIterations           int
	NumGoRoutines           int
}

func NewRandomSearch

func NewRandomSearch(probDistro, maxIterations, numGoRoutines int) *RandomSearch

func (*RandomSearch) FindMinimum

func (r *RandomSearch) FindMinimum(f IFunction, min, max float64, n int) ([]float64, error)

Jump to

Keyboard shortcuts

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