Safe Haskell | None |
---|
control center for external using
- data EcoConfig = EcoConfig {}
- data EcoUnWritable g d = EcoUnWritable {}
- data EcoSystem g d rep = EcoSystem {}
- initGeneration :: (RandomGen g, HeukaryaGene rep) => EcoUnWritable g rep -> EcoConfig -> EcoSystem g rep rep
- nextGeneration :: (Ord n, RandomGen g, HeukaryaGene rep) => EcoSystem g rep rep -> Seq n -> EcoSystem g rep rep
- evolveGeneration :: (Ord a, Ord n, RandomGen g, HeukaryaGene rep) => a -> EcoSystem g rep rep -> (Seq (Tree rep) -> Bool) -> (Tree rep -> n) -> a -> EcoSystem g rep rep
- evolveCheckGeneration :: (Integral a, Ord n, RandomGen g, HeukaryaGene rep) => a -> FilePath -> a -> EcoSystem g rep rep -> (Seq (Tree rep) -> Bool) -> (Tree rep -> n) -> a -> IO (EcoSystem g rep rep)
- readEcoSystem :: Show rep => FilePath -> EcoUnWritable g rep -> IO (EcoSystem g rep rep)
- writeEcoSystem :: Show a => FilePath -> EcoSystem t t1 a -> IO ()
- defaultEcoConfig :: EcoConfig
Documentation
configuration of ecosystem
EcoConfig | |
|
EcoSystem consists of ecosystem's configuration and Jungle. `Tree rep` is sometimes used for repsentation of Heukarya by `Tree String`
initGeneration :: (RandomGen g, HeukaryaGene rep) => EcoUnWritable g rep -> EcoConfig -> EcoSystem g rep repSource
initial a EcoSystem
nextGeneration :: (Ord n, RandomGen g, HeukaryaGene rep) => EcoSystem g rep rep -> Seq n -> EcoSystem g rep repSource
evolve a EcoSystem one step Parameters: EcoSystem , fitness function
evolveGeneration :: (Ord a, Ord n, RandomGen g, HeukaryaGene rep) => a -> EcoSystem g rep rep -> (Seq (Tree rep) -> Bool) -> (Tree rep -> n) -> a -> EcoSystem g rep repSource
evolving until condiction suffered or max number of Generations hitted Parameters : max number of generations, EcoSystem, stop evolving's Condiction , fitness function, generation counter(placed by zero when used)
evolveCheckGeneration :: (Integral a, Ord n, RandomGen g, HeukaryaGene rep) => a -> FilePath -> a -> EcoSystem g rep rep -> (Seq (Tree rep) -> Bool) -> (Tree rep -> n) -> a -> IO (EcoSystem g rep rep)Source
evolving until condiction suffered or max number of Generations hitted save checkpoint per period Parameters : max number of generations, checkpoint's file path, save checkpoint per x generations, EcoSystem, stop evolving's Condiction , fitness function, generation counter(placed by zero when used)
readEcoSystem :: Show rep => FilePath -> EcoUnWritable g rep -> IO (EcoSystem g rep rep)Source
read a EcoSystem from file and addon UnWritable data Parameters : filepath for reading, UnWritable data