Stability | Experimental |
---|---|
Maintainer | vandijk.roel@gmail.com, v.dijk.bas@gmail.com |
- Maximum sizes of arrays.
- Errors
- Default values for options.
- Handy type synonyms
- Model & Jacobian
- Handy type synonyms used in the curry friendly types.
- Curry friendly types of the Levenberg-Marquardt algorithms.
- Curry friendly variants of the Levenberg-Marquardt algorithms in
Bindings.Levmar
. - Jacobian verification
- Utils
Curry friendly variants of the Levenberg-Marquardt algorithms in Bindings.LevMar
.
(This module re-exports all the necessary types and function from
Bindings.LevMar
, so there's no need to import that module when
you want to use this one.)
- _LM_VERSION :: String
- _LM_OPTS_SZ :: Int
- _LM_INFO_SZ :: Int
- _LM_ERROR :: CInt
- _LM_ERROR_LAPACK_ERROR :: CInt
- _LM_ERROR_NO_JACOBIAN :: CInt
- _LM_ERROR_NO_BOX_CONSTRAINTS :: CInt
- _LM_ERROR_FAILED_BOX_CHECK :: CInt
- _LM_ERROR_MEMORY_ALLOCATION_FAILURE :: CInt
- _LM_ERROR_CONSTRAINT_MATRIX_ROWS_GT_COLS :: CInt
- _LM_ERROR_CONSTRAINT_MATRIX_NOT_FULL_ROW_RANK :: CInt
- _LM_ERROR_TOO_FEW_MEASUREMENTS :: CInt
- _LM_ERROR_SINGULAR_MATRIX :: CInt
- _LM_ERROR_SUM_OF_SQUARES_NOT_FINITE :: CInt
- _LM_INIT_MU :: Fractional a => a
- _LM_STOP_THRESH :: Fractional a => a
- _LM_DIFF_DELTA :: Fractional a => a
- type Parameters = Ptr
- type Measurements = Ptr
- type Options = Ptr
- type LowerBounds = Ptr
- type UpperBounds = Ptr
- type ConstraintsMatrix = Ptr
- type ConstraintsVector = Ptr
- type Weights = Ptr
- type Info = Ptr
- type Work = Ptr
- type Covar = Ptr
- type AData = Ptr ()
- type NrOfParameters = CInt
- type NrOfMeasurements = CInt
- type NrOfConstraints = CInt
- type MaxIterations = CInt
- type Model r = Parameters r -> Measurements r -> NrOfParameters -> NrOfMeasurements -> AData -> IO ()
- type Jacobian a = Model a
- withModel :: Model a -> (FunPtr (Model a) -> IO b) -> IO b
- withJacobian :: Jacobian a -> (FunPtr (Jacobian a) -> IO b) -> IO b
- type BoxConstraints cr a = LowerBounds cr -> UpperBounds cr -> a
- type LinearConstraints cr a = ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> a
- type LevMarDer cr = FunPtr (Jacobian cr) -> LevMarDif cr
- type LevMarDif cr = LevMarDif cr
- type LevMarBCDer cr = BoxConstraints cr (LevMarDer cr)
- type LevMarBCDif cr = BoxConstraints cr (LevMarDif cr)
- type LevMarLecDer cr = LinearConstraints cr (LevMarDer cr)
- type LevMarLecDif cr = LinearConstraints cr (LevMarDif cr)
- type LevMarBLecDer cr = BoxConstraints cr (LinearConstraints cr (Weights cr -> LevMarDer cr))
- type LevMarBLecDif cr = BoxConstraints cr (LinearConstraints cr (Weights cr -> LevMarDif cr))
- dlevmar_der :: LevMarDer CDouble
- slevmar_der :: LevMarDer CFloat
- dlevmar_dif :: LevMarDif CDouble
- slevmar_dif :: LevMarDif CFloat
- dlevmar_bc_der :: LevMarBCDer CDouble
- slevmar_bc_der :: LevMarBCDer CFloat
- dlevmar_bc_dif :: LevMarBCDif CDouble
- slevmar_bc_dif :: LevMarBCDif CFloat
- dlevmar_lec_der :: LevMarLecDer CDouble
- slevmar_lec_der :: LevMarLecDer CFloat
- dlevmar_lec_dif :: LevMarLecDif CDouble
- slevmar_lec_dif :: LevMarLecDif CFloat
- dlevmar_blec_der :: LevMarBLecDer CDouble
- slevmar_blec_der :: LevMarBLecDer CFloat
- dlevmar_blec_dif :: LevMarBLecDif CDouble
- slevmar_blec_dif :: LevMarBLecDif CFloat
- type Errors = Ptr
- type LevMarChkJac cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> NrOfParameters -> NrOfMeasurements -> AData -> Errors cr -> IO ()
- dlevmar_chkjac :: LevMarChkJac CDouble
- slevmar_chkjac :: LevMarChkJac CFloat
- type BestFitParameterIx = CInt
- type LevMarStddev cr = Covar cr -> NrOfParameters -> BestFitParameterIx -> IO cr
- type LevMarCorCoef cr = Covar cr -> NrOfParameters -> BestFitParameterIx -> BestFitParameterIx -> IO cr
- type LevMarR2 cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> AData -> Result cr -> IO CInt
- type Result = Ptr
- dlevmar_stddev :: LevMarStddev CDouble
- slevmar_stddev :: LevMarStddev CFloat
- dlevmar_corcoef :: LevMarCorCoef CDouble
- slevmar_corcoef :: LevMarCorCoef CFloat
- dlevmar_R2 :: LevMarR2 CDouble
- slevmar_R2 :: LevMarR2 CFloat
Documentation
The version of the C levmar library.
Maximum sizes of arrays.
The maximum size of the options array.
The size of the info array.
Errors
Default values for options.
_LM_INIT_MU :: Fractional a => aSource
_LM_STOP_THRESH :: Fractional a => aSource
_LM_DIFF_DELTA :: Fractional a => aSource
Handy type synonyms
type Parameters = PtrSource
type Measurements = PtrSource
type LowerBounds = PtrSource
type UpperBounds = PtrSource
type ConstraintsMatrix = PtrSource
type ConstraintsVector = PtrSource
type NrOfParameters = CIntSource
type NrOfMeasurements = CIntSource
type NrOfConstraints = CIntSource
type MaxIterations = CIntSource
Model & Jacobian
type Model r = Parameters r -> Measurements r -> NrOfParameters -> NrOfMeasurements -> AData -> IO ()Source
Functional relation describing measurements.
Handy type synonyms used in the curry friendly types.
type BoxConstraints cr a = LowerBounds cr -> UpperBounds cr -> aSource
type LinearConstraints cr a = ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> aSource
Curry friendly types of the Levenberg-Marquardt algorithms.
type LevMarBCDer cr = BoxConstraints cr (LevMarDer cr)Source
type LevMarBCDif cr = BoxConstraints cr (LevMarDif cr)Source
type LevMarLecDer cr = LinearConstraints cr (LevMarDer cr)Source
type LevMarLecDif cr = LinearConstraints cr (LevMarDif cr)Source
type LevMarBLecDer cr = BoxConstraints cr (LinearConstraints cr (Weights cr -> LevMarDer cr))Source
type LevMarBLecDif cr = BoxConstraints cr (LinearConstraints cr (Weights cr -> LevMarDif cr))Source
Curry friendly variants of the Levenberg-Marquardt algorithms in Bindings.Levmar
.
Jacobian verification
type LevMarChkJac cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> NrOfParameters -> NrOfMeasurements -> AData -> Errors cr -> IO ()Source
Utils
type BestFitParameterIx = CIntSource
type LevMarStddev cr = Covar cr -> NrOfParameters -> BestFitParameterIx -> IO crSource
Standard deviation.
type LevMarCorCoef cr = Covar cr -> NrOfParameters -> BestFitParameterIx -> BestFitParameterIx -> IO crSource
Pearson's correlation coefficient for best-fit parameters.
type LevMarR2 cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> AData -> Result cr -> IO CIntSource
Coefficient of determination (R2).