Stability | Experimental |
---|---|
Maintainer | vandijk.roel@gmail.com, v.dijk.bas@gmail.com |
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_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 Model r = Ptr r -> Ptr r -> CInt -> CInt -> Ptr () -> 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 = Ptr cr -> Ptr cr -> a
- type LinearConstraints cr a = Ptr cr -> Ptr cr -> CInt -> a
- type Weights cr a = Ptr cr -> 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
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
Model & Jacobian
type Model r = Ptr r -> Ptr r -> CInt -> CInt -> Ptr () -> IO ()Source
Functional relation describing measurements.
Handy type synonyms used in the curry friendly types.
type BoxConstraints cr a = Ptr cr -> Ptr cr -> aSource
type LinearConstraints cr a = Ptr cr -> Ptr cr -> CInt -> 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