Copyright | (c) Fabricio Olivetti de Franca 2022 |
---|---|
License | GPL-3 |
Maintainer | fabricio.olivetti@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Crossover operators.
Synopsis
- toss :: Rnd Bool
- rndWithProb :: Double -> Rnd Bool
- choose :: a -> a -> Bool -> a
- onepoint :: [Individual] -> Rnd Individual
- uniformCx :: [Individual] -> Rnd Individual
Documentation
rndWithProb :: Double -> Rnd Bool Source #
onepoint :: [Individual] -> Rnd Individual Source #
One-point crossover
uniformCx :: [Individual] -> Rnd Individual Source #
Uniform crossover