Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class PathPricer p => Summary m p | m -> p where
- class PathGenerator m where
- class PathPricer m where
- monteCarlo :: (Summary s p, PathGenerator g) => PathMonteCarlo s p g -> Int -> s
- monteCarloParallel :: (Summary s p, PathGenerator g) => PathMonteCarlo s p g -> Int -> s
- data PathMonteCarlo s p g = PathMonteCarlo {
- pmcSummary :: s
- pmcPricer :: p
- pmcGenerator :: g
- data ProcessGenerator sp b d = ProcessGenerator {
- pgStart :: Dot
- pgLength :: Int
- pgProcess :: sp
- pgGenerator :: b
- pgDiscretize :: d
Documentation
class PathPricer p => Summary m p | m -> p where Source #
Summary type class aggregates all priced values of paths
class PathGenerator m where Source #
Path generator is a stochastic path generator
(StochasticProcess sp, NormalGenerator b, Discretize d) => PathGenerator (ProcessGenerator sp b d) Source # | |
class PathPricer m where Source #
Path pricer provides a price for given path
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
data PathMonteCarlo s p g Source #
Path-dependant Monte Carlo engine
PathMonteCarlo | |
|
data ProcessGenerator sp b d Source #
Stochastic process generator
ProcessGenerator | |
|
(StochasticProcess sp, NormalGenerator b, Discretize d) => PathGenerator (ProcessGenerator sp b d) Source # | |