Copyright(c) Fabricio Olivetti de Franca 2020
LicenseGPL-3
Maintainerfabricio.olivetti@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone

ITEA.Report

Description

Configuration parsing and report generation.

Synopsis

Documentation

data Output Source #

Output configuration

Constructors

Screen 
PartialLog String 
FullLog String 

Instances

Instances details
Read Output Source # 
Instance details

Defined in ITEA.Report

Methods

readsPrec :: Int -> ReadS Output

readList :: ReadS [Output]

readPrec :: ReadPrec Output

readListPrec :: ReadPrec [Output]

getBest :: Int -> [Population] -> Solution Source #

Get best solution from all generations

getBestMaybe :: Int -> [Population] -> Maybe 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

openNext :: String -> IO Handle Source #

Opens the first file available in the format "name.{i}.csv" where i follows a sequence from 0 onward.

postAgg :: [Double] -> [Double] Source #

aggregate :: [Double] -> Double -> [Double] Source #

toFile :: [Handle] -> [Double] -> IO () Source #

Write a sequence to a sequence of opened files