internal

package
v0.0.0-...-c898178 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistancesToVerifyFeed

func DistancesToVerifyFeed() (distances map[float64][][]float64)

func GenerateFermoneMap

func GenerateFermoneMap(citiesCount int, initFermone float64) (fermoneMatrix [][]float64)

func IsInRange

func IsInRange(expected float64, result float64) bool

func SetUpParamters

func SetUpParamters(distanceMap [][]float64) (float64, float64, float64, float64, float64, float64, int)

Types

type NextCity

type NextCity struct {
	CityIndex   int
	Probability float64
}

type Path

type Path struct {
	CitySequence []int
	Distance     float64
}

Jump to

Keyboard shortcuts

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