hquantlib-0.0.5.0: HQuantLib is a port of essencial parts of QuantLib to Haskell

Safe HaskellNone
LanguageHaskell2010

QuantLib.Methods.MonteCarlo

Synopsis

Documentation

data ProcessGenerator sp b d Source #

Stochastic process generator

Constructors

ProcessGenerator 

Fields

data PathMonteCarlo s p g Source #

Path-dependant Monte Carlo engine

Constructors

PathMonteCarlo 

Fields

class PathPricer m where Source #

Path pricer provides a price for given path

Methods

ppPrice :: m -> Path -> m Source #

class PathGenerator m where Source #

Path generator is a stochastic path generator

Methods

pgMkNew :: m -> IO m Source #

pgGenerate :: Integer -> m -> Path Source #

class PathPricer p => Summary m p | m -> p where Source #

Summary type class aggregates all priced values of paths

Methods

sSummarize :: m -> [p] -> m Source #

Updates summary with given priced pathes

sNorm :: m -> m -> Double Source #

Defines a metric, i.e. calculate distance between 2 summaries

monteCarlo :: (Summary s p, PathGenerator g) => PathMonteCarlo s p g -> Int -> s Source #

Monte Carlo engine function

monteCarloParallel :: (Summary s p, PathGenerator g) => PathMonteCarlo s p g -> Int -> s Source #

Monte Carlo engine function. Parallelized version