Copyright | (c) Fabricio Olivetti de Franca 2020 |
---|---|
License | GPL-3 |
Maintainer | fabricio.olivetti@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
ITEA.Report
Description
Configuration parsing and report generation.
Synopsis
- data Output
- = Screen
- | PartialLog String
- | FullLog String
- getBest :: Int -> [Population] -> Solution
- getBestMaybe :: Int -> [Population] -> Maybe Solution
- getAllBests :: Int -> [Population] -> [Solution]
- createIfDoesNotExist :: String -> FilePath -> IO Handle
- interleave :: [a] -> [a] -> [a]
- genReports :: Output -> NonEmpty Measure -> [Population] -> Int -> (Solution -> Maybe [Double]) -> (Expr -> Maybe Solution) -> IO ()
- openNext :: String -> IO Handle
- postAgg :: [Double] -> [Double]
- aggregate :: [Double] -> Double -> [Double]
- toFile :: [Handle] -> [Double] -> IO ()
Documentation
Output configuration
Constructors
Screen | |
PartialLog String | |
FullLog String |
getBest :: Int -> [Population] -> Solution Source #
Get best solution from all generations
getBestMaybe :: Int -> [Population] -> Maybe Solution Source #
getAllBests :: Int -> [Population] -> [Solution] Source #
createIfDoesNotExist :: String -> FilePath -> IO Handle Source #
Creates a file if it does not exist
interleave :: [a] -> [a] -> [a] Source #
genReports :: Output -> NonEmpty Measure -> [Population] -> Int -> (Solution -> Maybe [Double]) -> (Expr -> Maybe Solution) -> IO () Source #
Generates the reports into the output