rectangular

package
v0.0.0-...-81728f7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crossover

func Crossover(p1 mel.Me3li, p2 mel.Me3li, ep *mel.EvolutionParameters) mel.Me3li

func FitnessImageDistance

func FitnessImageDistance(r *RectangularMe3li, target *image.Image, ep *mel.EvolutionParameters) (float32, bool)

func Generate

func Generate(ep *mel.EvolutionParameters) mel.Me3li

func MutateRectElide

func MutateRectElide(p mel.Me3li, ep *mel.EvolutionParameters) mel.Me3li

func MutateRectSubstitute

func MutateRectSubstitute(p mel.Me3li, ep *mel.EvolutionParameters) mel.Me3li

Types

type Rect

type Rect struct {
	// contains filtered or unexported fields
}

type RectangularMe3li

type RectangularMe3li struct {
	// contains filtered or unexported fields
}

func (*RectangularMe3li) Crossover

func (eObj *RectangularMe3li) Crossover(sec *RectangularMe3li, ep *mel.EvolutionParameters)

func (*RectangularMe3li) Generate

func (eObj *RectangularMe3li) Generate(ep *mel.EvolutionParameters)

func (*RectangularMe3li) MelCopy

func (m3 *RectangularMe3li) MelCopy() mel.Me3li

func (*RectangularMe3li) MelInit

func (m3 *RectangularMe3li) MelInit(c *mel.MelConfig, ep *mel.EvolutionParameters)

func (*RectangularMe3li) MutateRectElide

func (eObj *RectangularMe3li) MutateRectElide(ep *mel.EvolutionParameters)

func (*RectangularMe3li) MutateRectSubstitute

func (eObj *RectangularMe3li) MutateRectSubstitute(ep *mel.EvolutionParameters)

func (*RectangularMe3li) ToImage

func (eObj *RectangularMe3li) ToImage(ep *mel.EvolutionParameters) (image.Image, error)

Convert the mel.Me3li rectangle list to an image.Image

Jump to

Keyboard shortcuts

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