Documentation
¶
Overview ¶
Package utils provides utilities for testing, benchmarking, and visualizing different algorithms.
Index ¶
- func CompareAlgorithms(a, b func() algorithm.Algorithm)
- func DefaultAlgorithm(numPoints int, image image.Image) algorithm.Algorithm
- func GenerateAlgorithmOutput(outputFile string, algo algorithm.Algorithm, reps int)
- func GenerateProfile(outputFile string, algo algorithm.Algorithm, seconds int)
- func GenerateTrace(outputFile string, algo algorithm.Algorithm)
- func RunAlgorithm(algo algorithm.Algorithm, reps int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAlgorithms ¶
CompareAlgorithms compares the effectiveness of two algorithms.
func DefaultAlgorithm ¶
DefaultAlgorithm returns an algorithm than will be optimal for almost all cases
func GenerateAlgorithmOutput ¶
GenerateAlgorithmOutput runs an algorithm.Algorithm and writes the best point group to a file.
func GenerateProfile ¶
GenerateProfile creates a CPU profile by running the algorithm.
func GenerateTrace ¶
GenerateTrace generates a trace of an algorithm, and is used for debugging and evaluating performance.
func RunAlgorithm ¶
RunAlgorithm runs an algorithm.Algorithm and prints the fitness after a specified number of repetitions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.