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 #

Stochastic process generator

Constructors

ProcessGenerator 

Fields

Instances
(StochasticProcess sp, NormalGenerator b, Discretize d) => PathGenerator (ProcessGenerator sp b d) # 
Instance details

Defined in QuantLib.Methods.MonteCarlo

data PathMonteCarlo s p g #

Path-dependant Monte Carlo engine

Constructors

PathMonteCarlo 

Fields

class PathPricer m where #

Path pricer provides a price for given path

Minimal complete definition

ppPrice

Methods

ppPrice :: m -> Path -> m #

class PathGenerator m where #

Path generator is a stochastic path generator

Minimal complete definition

pgMkNew, pgGenerate

Methods

pgMkNew :: m -> IO m #

pgGenerate :: Integer -> m -> Path #

Instances
(StochasticProcess sp, NormalGenerator b, Discretize d) => PathGenerator (ProcessGenerator sp b d) # 
Instance details

Defined in QuantLib.Methods.MonteCarlo

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

Summary type class aggregates all priced values of paths

Minimal complete definition

sSummarize, sNorm

Methods

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

Updates summary with given priced pathes

sNorm :: m -> m -> Double #

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

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

Monte Carlo engine function

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

Monte Carlo engine function. Parallelized version