pigy-genetics
Safe HaskellNone
LanguageHaskell2010

Pigy.Image.V0

Description

Version 0 of the pig-image genotype and phenotype.

Synopsis

Documentation

gid :: Word8 Source #

The version of the genotype.

data Genotype Source #

The genotype.

Constructors

Genotype 

Fields

  • ar :: Float

    Aspect ratio.

  • headx :: Float

    Head width.

  • heady :: Float

    Head height.

  • eyex :: Float

    Eye width.

  • eyey :: Float

    Eye height.

  • nosex :: Float

    Nose width.

  • nosey :: Float

    Nose height.

  • earx :: Float

    Ear width.

  • eary :: Float

    Ear height.

  • torso :: Float

    Torso size.

  • skinh :: Float

    Skin hue.

  • eyeh :: Float

    Eye hue.

  • eyes :: Float

    Eye saturation.

  • eyel :: Float

    Eye luminosity.

  • pupilh :: Float

    Pupil hue.

  • pupils :: Float

    Pupil saturation.

  • pupill :: Float

    Pupil luminosity.

  • noseh :: Float

    Nose hue.

  • noses :: Float

    Nose saturation.

  • nosel :: Float

    Nose luminosity.

  • eyea :: Float

    Pupil radial angle.

  • eyef :: Float

    Pupil radial position.

Instances

Instances details
Eq Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Methods

(==) :: Genotype -> Genotype -> Bool

(/=) :: Genotype -> Genotype -> Bool

Ord Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Methods

compare :: Genotype -> Genotype -> Ordering

(<) :: Genotype -> Genotype -> Bool

(<=) :: Genotype -> Genotype -> Bool

(>) :: Genotype -> Genotype -> Bool

(>=) :: Genotype -> Genotype -> Bool

max :: Genotype -> Genotype -> Genotype

min :: Genotype -> Genotype -> Genotype

Read Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Methods

readsPrec :: Int -> ReadS Genotype

readList :: ReadS [Genotype]

readPrec :: ReadPrec Genotype

readListPrec :: ReadPrec [Genotype]

Show Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Methods

showsPrec :: Int -> Genotype -> ShowS

show :: Genotype -> String

showList :: [Genotype] -> ShowS

Binary Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Methods

put :: Genotype -> Put

get :: Get Genotype

putList :: [Genotype] -> Put

Phenable Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Uniform Genotype Source # 
Instance details

Defined in Pigy.Image.V0

Methods

uniformM :: StatefulGen g m => g -> m Genotype

Upgradeable Genotype Genotype Source # 
Instance details

Defined in Pigy.Image.V0

crossover Source #

Arguments

:: MonadFail m 
=> StatefulGen g m 
=> g

The random-number generator.

-> [Genotype]

The genotypes to be crossed.

-> m Genotype

The action to cross the genotypes.

Perform crossover between genotypes.