Copyright | (c) Maciej Bendkowski 2017-2018 |
---|---|
License | BSD3 |
Maintainer | maciej.bendkowski@tcs.uj.edu.pl |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
General utilities managing the IO interface between Boltzmann Brain and the Paganini tuner script.
- data PSolver
- data PArg = PArg {}
- defaultArgs :: System a -> PArg
- writeSpecification :: System Int -> Handle -> IO ()
- readPaganini :: System Int -> Parametrisation -> String -> IO (Either (ParseError Char Dec) (PSystem Double))
- runPaganini :: System Int -> Parametrisation -> Maybe PArg -> IO (Either (ParseError Char Dec) (PSystem Double))
- data Parametrisation
Documentation
Paganini arguments.
defaultArgs :: System a -> PArg Source #
Determines default Paganini arguments. Note: It is assumed that the given system is either rational or algebraic. Otherwise, and error is raised.
writeSpecification :: System Int -> Handle -> IO () Source #
Writes the system specification into the given file handle. In paricular, to Paganini's standard input handle.
readPaganini :: System Int -> Parametrisation -> String -> IO (Either (ParseError Char Dec) (PSystem Double)) Source #
Parses the given input string as a Paganini tuning vector.
runPaganini :: System Int -> Parametrisation -> Maybe PArg -> IO (Either (ParseError Char Dec) (PSystem Double)) Source #
Communicates with Paganini and collects the respective tuning vector for the given system. If communication is not possible, for instance due to the missing Paganini script, the current process is terminated with an error message on the standard error output.
data Parametrisation Source #
Parametrisation type.
Cummulative | Cummulative branching probabilities. |
Regular | Independent probability masses. |