Documentation ¶
Index ¶
- func Crossover(p1 mel.Me3li, p2 mel.Me3li, ep *mel.EvolutionParameters) mel.Me3li
- func FitnessImageDistance(r *RectangularMe3li, target *image.Image, ep *mel.EvolutionParameters) (float32, bool)
- func Generate(ep *mel.EvolutionParameters) mel.Me3li
- func MutateRectElide(p mel.Me3li, ep *mel.EvolutionParameters) mel.Me3li
- func MutateRectSubstitute(p mel.Me3li, ep *mel.EvolutionParameters) mel.Me3li
- type Rect
- type RectangularMe3li
- func (eObj *RectangularMe3li) Crossover(sec *RectangularMe3li, ep *mel.EvolutionParameters)
- func (eObj *RectangularMe3li) Generate(ep *mel.EvolutionParameters)
- func (m3 *RectangularMe3li) MelCopy() mel.Me3li
- func (m3 *RectangularMe3li) MelInit(c *mel.MelConfig, ep *mel.EvolutionParameters)
- func (eObj *RectangularMe3li) MutateRectElide(ep *mel.EvolutionParameters)
- func (eObj *RectangularMe3li) MutateRectSubstitute(ep *mel.EvolutionParameters)
- func (eObj *RectangularMe3li) ToImage(ep *mel.EvolutionParameters) (image.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FitnessImageDistance ¶
func FitnessImageDistance(r *RectangularMe3li, target *image.Image, ep *mel.EvolutionParameters) (float32, bool)
func MutateRectElide ¶
func MutateRectSubstitute ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.