| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
QuantLib.Math
Synopsis
- data RoundingType
- data Rounding
- = NoRounding
- | Rounding !Int !RoundingType !Int
- applyRounding :: Rounding -> Double -> Double
- data EndCriteriaType
- data HistogramAlgorithm
- = HistogramNone
- | Sturges
- | FD
- | Scott
- data Approximation
- data Interpolation
- data RngTrait
- data BinomialTree
- data BoundaryConditionSide
- = BoundaryNone
- | Upper
- | Lower
- data FdmSchemeType
- data FdmScheme
- data PolynomialType
- data ComplexLogFormula
- data CmsMarketCalibrationType
- data EndCriteria = EndCriteria !Word !Word !Double !Double !Double
- data OptimizationMethod
- data Constraint
- data SobolDirectionIntegers
- = Unit
- | Jaeckel
- | SobolLevitan
- | SobolLevitanLemieux
- | JoeKuoD5
- | JoeKuoD6
- | JoeKuoD7
- | Kuo
- | Kuo2
- | Kuo3
- data Matrix a
- realMatrix :: Word -> Word -> [Double] -> Either String (Matrix Double)
- objectMatrix :: Word -> Word -> [a] -> Either String (Matrix a)
- data TimeGrid
- timeGrid :: Double -> Word -> IO TimeGrid
- timeGridFromList :: NonEmpty Double -> IO TimeGrid
- timeGridFromList' :: NonEmpty Double -> Word -> IO TimeGrid
- timeAt :: TimeGrid -> Word -> IO Double
- size :: TimeGrid -> Word
- points :: TimeGrid -> IO [Double]
- points' :: TimeGrid -> IO (Vector CDouble)
Documentation
data RoundingType #
Instances
| Enum RoundingType # | |
Defined in QuantLib.Internal.Enum Methods succ :: RoundingType -> RoundingType # pred :: RoundingType -> RoundingType # toEnum :: Int -> RoundingType # fromEnum :: RoundingType -> Int # enumFrom :: RoundingType -> [RoundingType] # enumFromThen :: RoundingType -> RoundingType -> [RoundingType] # enumFromTo :: RoundingType -> RoundingType -> [RoundingType] # enumFromThenTo :: RoundingType -> RoundingType -> RoundingType -> [RoundingType] # | |
| Show RoundingType # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> RoundingType -> ShowS # show :: RoundingType -> String # showList :: [RoundingType] -> ShowS # | |
| Eq RoundingType # | |
Defined in QuantLib.Internal.Enum | |
Constructors
| NoRounding | |
| Rounding | |
Fields
| |
applyRounding :: Rounding -> Double -> Double #
data EndCriteriaType #
Constructors
| EndNone | |
| MaxIterations | |
| StationaryPoint | |
| StationaryFunctionValue | |
| StationaryFunctionAccuracy | |
| ZeroGradientNorm | |
| Unknown |
Instances
| Enum EndCriteriaType # | |
Defined in QuantLib.Math Methods succ :: EndCriteriaType -> EndCriteriaType # pred :: EndCriteriaType -> EndCriteriaType # toEnum :: Int -> EndCriteriaType # fromEnum :: EndCriteriaType -> Int # enumFrom :: EndCriteriaType -> [EndCriteriaType] # enumFromThen :: EndCriteriaType -> EndCriteriaType -> [EndCriteriaType] # enumFromTo :: EndCriteriaType -> EndCriteriaType -> [EndCriteriaType] # enumFromThenTo :: EndCriteriaType -> EndCriteriaType -> EndCriteriaType -> [EndCriteriaType] # | |
| Show EndCriteriaType # | |
Defined in QuantLib.Math Methods showsPrec :: Int -> EndCriteriaType -> ShowS # show :: EndCriteriaType -> String # showList :: [EndCriteriaType] -> ShowS # | |
| Eq EndCriteriaType # | |
Defined in QuantLib.Math Methods (==) :: EndCriteriaType -> EndCriteriaType -> Bool # (/=) :: EndCriteriaType -> EndCriteriaType -> Bool # | |
data HistogramAlgorithm #
Constructors
| HistogramNone | |
| Sturges | |
| FD | |
| Scott |
Instances
| Enum HistogramAlgorithm # | |
Defined in QuantLib.Math Methods succ :: HistogramAlgorithm -> HistogramAlgorithm # pred :: HistogramAlgorithm -> HistogramAlgorithm # toEnum :: Int -> HistogramAlgorithm # fromEnum :: HistogramAlgorithm -> Int # enumFrom :: HistogramAlgorithm -> [HistogramAlgorithm] # enumFromThen :: HistogramAlgorithm -> HistogramAlgorithm -> [HistogramAlgorithm] # enumFromTo :: HistogramAlgorithm -> HistogramAlgorithm -> [HistogramAlgorithm] # enumFromThenTo :: HistogramAlgorithm -> HistogramAlgorithm -> HistogramAlgorithm -> [HistogramAlgorithm] # | |
| Show HistogramAlgorithm # | |
Defined in QuantLib.Math Methods showsPrec :: Int -> HistogramAlgorithm -> ShowS # show :: HistogramAlgorithm -> String # showList :: [HistogramAlgorithm] -> ShowS # | |
| Eq HistogramAlgorithm # | |
Defined in QuantLib.Math Methods (==) :: HistogramAlgorithm -> HistogramAlgorithm -> Bool # (/=) :: HistogramAlgorithm -> HistogramAlgorithm -> Bool # | |
data Approximation #
Constructors
| NaturalSpline !Bool | |
| Parabolic !Bool | |
| Kruger | |
| FritschButland |
Instances
| Show Approximation # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> Approximation -> ShowS # show :: Approximation -> String # showList :: [Approximation] -> ShowS # | |
| Eq Approximation # | |
Defined in QuantLib.Internal.Enum Methods (==) :: Approximation -> Approximation -> Bool # (/=) :: Approximation -> Approximation -> Bool # | |
data Interpolation #
Constructors
| BackwardFlat | |
| ForwardFlat | |
| Linear | |
| LogLinear | |
| Cubic !Approximation | |
| LogCubic !Approximation | |
| Abcd |
Instances
| Show Interpolation # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> Interpolation -> ShowS # show :: Interpolation -> String # showList :: [Interpolation] -> ShowS # | |
| Eq Interpolation # | |
Defined in QuantLib.Internal.Enum Methods (==) :: Interpolation -> Interpolation -> Bool # (/=) :: Interpolation -> Interpolation -> Bool # | |
Constructors
| PseudoRandom | |
| PoissonPseudoRandom | |
| LowDiscrepancy | |
| Ziggurat |
Instances
| Enum RngTrait # | |
| Show RngTrait # | |
| Eq RngTrait # | |
data BinomialTree #
Constructors
Instances
| Enum BinomialTree # | |
Defined in QuantLib.Math Methods succ :: BinomialTree -> BinomialTree # pred :: BinomialTree -> BinomialTree # toEnum :: Int -> BinomialTree # fromEnum :: BinomialTree -> Int # enumFrom :: BinomialTree -> [BinomialTree] # enumFromThen :: BinomialTree -> BinomialTree -> [BinomialTree] # enumFromTo :: BinomialTree -> BinomialTree -> [BinomialTree] # enumFromThenTo :: BinomialTree -> BinomialTree -> BinomialTree -> [BinomialTree] # | |
| Show BinomialTree # | |
Defined in QuantLib.Math Methods showsPrec :: Int -> BinomialTree -> ShowS # show :: BinomialTree -> String # showList :: [BinomialTree] -> ShowS # | |
| Eq BinomialTree # | |
Defined in QuantLib.Math | |
data BoundaryConditionSide #
Constructors
| BoundaryNone | |
| Upper | |
| Lower |
Instances
data FdmSchemeType #
Constructors
| HundsdorferType | |
| DouglasType | |
| CraigSneydType | |
| ModifiedCraigSneydType | |
| ImplicitEulerType | |
| ExplicitEulerType | |
| MethodOfLinesType | |
| TrBDF2Type | |
| CrankNicolsonType |
Instances
| Enum FdmSchemeType # | |
Defined in QuantLib.Internal.Enum Methods succ :: FdmSchemeType -> FdmSchemeType # pred :: FdmSchemeType -> FdmSchemeType # toEnum :: Int -> FdmSchemeType # fromEnum :: FdmSchemeType -> Int # enumFrom :: FdmSchemeType -> [FdmSchemeType] # enumFromThen :: FdmSchemeType -> FdmSchemeType -> [FdmSchemeType] # enumFromTo :: FdmSchemeType -> FdmSchemeType -> [FdmSchemeType] # enumFromThenTo :: FdmSchemeType -> FdmSchemeType -> FdmSchemeType -> [FdmSchemeType] # | |
| Show FdmSchemeType # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> FdmSchemeType -> ShowS # show :: FdmSchemeType -> String # showList :: [FdmSchemeType] -> ShowS # | |
| Eq FdmSchemeType # | |
Defined in QuantLib.Internal.Enum Methods (==) :: FdmSchemeType -> FdmSchemeType -> Bool # (/=) :: FdmSchemeType -> FdmSchemeType -> Bool # | |
Constructors
| FdmScheme | |
Fields
| |
| CraigSneyd | |
| Douglas | |
| ExplicitEuler | |
| Hundsdorfer | |
| ImplicitEuler | |
| ModifiedCraigSneyd | |
| ModifiedHundsdorfer | |
data PolynomialType #
Constructors
| Monomial | |
| Laguerre | |
| Hermite | |
| Hyperbolic | |
| Legendre | |
| Chebyshev | |
| Chebyshev2nd |
Instances
| Enum PolynomialType # | |
Defined in QuantLib.Math Methods succ :: PolynomialType -> PolynomialType # pred :: PolynomialType -> PolynomialType # toEnum :: Int -> PolynomialType # fromEnum :: PolynomialType -> Int # enumFrom :: PolynomialType -> [PolynomialType] # enumFromThen :: PolynomialType -> PolynomialType -> [PolynomialType] # enumFromTo :: PolynomialType -> PolynomialType -> [PolynomialType] # enumFromThenTo :: PolynomialType -> PolynomialType -> PolynomialType -> [PolynomialType] # | |
| Show PolynomialType # | |
Defined in QuantLib.Math Methods showsPrec :: Int -> PolynomialType -> ShowS # show :: PolynomialType -> String # showList :: [PolynomialType] -> ShowS # | |
| Eq PolynomialType # | |
Defined in QuantLib.Math Methods (==) :: PolynomialType -> PolynomialType -> Bool # (/=) :: PolynomialType -> PolynomialType -> Bool # | |
data ComplexLogFormula #
Constructors
| Gatheral | |
| BranchCorrection | |
| AndersenPiterbarg | |
| AndersenPiterbargOptCV | |
| AsymptoticChF | |
| OptimalCV |
Instances
| Enum ComplexLogFormula # | |
Defined in QuantLib.Math Methods succ :: ComplexLogFormula -> ComplexLogFormula # pred :: ComplexLogFormula -> ComplexLogFormula # toEnum :: Int -> ComplexLogFormula # fromEnum :: ComplexLogFormula -> Int # enumFrom :: ComplexLogFormula -> [ComplexLogFormula] # enumFromThen :: ComplexLogFormula -> ComplexLogFormula -> [ComplexLogFormula] # enumFromTo :: ComplexLogFormula -> ComplexLogFormula -> [ComplexLogFormula] # enumFromThenTo :: ComplexLogFormula -> ComplexLogFormula -> ComplexLogFormula -> [ComplexLogFormula] # | |
| Show ComplexLogFormula # | |
Defined in QuantLib.Math Methods showsPrec :: Int -> ComplexLogFormula -> ShowS # show :: ComplexLogFormula -> String # showList :: [ComplexLogFormula] -> ShowS # | |
| Eq ComplexLogFormula # | |
Defined in QuantLib.Math Methods (==) :: ComplexLogFormula -> ComplexLogFormula -> Bool # (/=) :: ComplexLogFormula -> ComplexLogFormula -> Bool # | |
data CmsMarketCalibrationType #
Constructors
| OnSpread | |
| OnPrice | |
| OnForwardCmsPrice |
Instances
data EndCriteria #
data OptimizationMethod #
data Constraint #
Constructors
| Boundary | |
| Composite | |
Fields
| |
| NoConstraint | |
| PositiveConstraint | |
data SobolDirectionIntegers #
Constructors
| Unit | |
| Jaeckel | |
| SobolLevitan | |
| SobolLevitanLemieux | |
| JoeKuoD5 | |
| JoeKuoD6 | |
| JoeKuoD7 | |
| Kuo | |
| Kuo2 | |
| Kuo3 |
Instances
timeGridFromList :: NonEmpty Double -> IO TimeGrid #
Time grid with mandatory time points. Mandatory points are guaranteed to belong to the grid. No additional points are added.