Stability | Experimental |
---|---|
Maintainer | vandijk.roel@gmail.com, v.dijk.bas@gmail.com |
A low level binding to the C levmar (Levenberg-Marquardt) library.
For documentation see: http://www.ics.forth.gr/~lourakis/levmar/
- c'LM_VERSION :: String
- c'LM_OPTS_SZ :: Num a => a
- c'LM_INFO_SZ :: Num a => a
- c'LM_ERROR :: Num a => a
- c'LM_ERROR_LAPACK_ERROR :: Num a => a
- c'LM_ERROR_NO_JACOBIAN :: Num a => a
- c'LM_ERROR_NO_BOX_CONSTRAINTS :: Num a => a
- c'LM_ERROR_FAILED_BOX_CHECK :: Num a => a
- c'LM_ERROR_MEMORY_ALLOCATION_FAILURE :: Num a => a
- c'LM_ERROR_CONSTRAINT_MATRIX_ROWS_GT_COLS :: Num a => a
- c'LM_ERROR_CONSTRAINT_MATRIX_NOT_FULL_ROW_RANK :: Num a => a
- c'LM_ERROR_TOO_FEW_MEASUREMENTS :: Num a => a
- c'LM_ERROR_SINGULAR_MATRIX :: Num a => a
- c'LM_ERROR_SUM_OF_SQUARES_NOT_FINITE :: Num a => a
- c'LM_INIT_MU :: Fractional a => a
- c'LM_STOP_THRESH :: Fractional a => a
- c'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 LevMarDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarBCDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarBCDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarLecDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarLecDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarBLecDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> Weights cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- type LevMarBLecDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> Weights cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CInt
- c'dlevmar_der :: LevMarDer CDouble
- c'slevmar_der :: LevMarDer CFloat
- c'dlevmar_dif :: LevMarDif CDouble
- c'slevmar_dif :: LevMarDif CFloat
- c'dlevmar_bc_der :: LevMarBCDer CDouble
- c'slevmar_bc_der :: LevMarBCDer CFloat
- c'dlevmar_bc_dif :: LevMarBCDif CDouble
- c'slevmar_bc_dif :: LevMarBCDif CFloat
- c'dlevmar_lec_der :: LevMarLecDer CDouble
- c'slevmar_lec_der :: LevMarLecDer CFloat
- c'dlevmar_lec_dif :: LevMarLecDif CDouble
- c'slevmar_lec_dif :: LevMarLecDif CFloat
- c'dlevmar_blec_der :: LevMarBLecDer CDouble
- c'slevmar_blec_der :: LevMarBLecDer CFloat
- c'dlevmar_blec_dif :: LevMarBLecDif CDouble
- c'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 ()
- c'dlevmar_chkjac :: LevMarChkJac CDouble
- c'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
- c'dlevmar_stddev :: LevMarStddev CDouble
- c'slevmar_stddev :: LevMarStddev CFloat
- c'dlevmar_corcoef :: LevMarCorCoef CDouble
- c'slevmar_corcoef :: LevMarCorCoef CFloat
- c'dlevmar_R2 :: LevMarR2 CDouble
- c'slevmar_R2 :: LevMarR2 CFloat
Documentation
The version of the C levmar library.
Maximum sizes of arrays.
c'LM_OPTS_SZ :: Num a => aSource
The maximum size of the options array.
c'LM_INFO_SZ :: Num a => aSource
The size of the info array.
Errors.
c'LM_ERROR :: Num a => aSource
c'LM_ERROR_LAPACK_ERROR :: Num a => aSource
c'LM_ERROR_NO_JACOBIAN :: Num a => aSource
c'LM_ERROR_NO_BOX_CONSTRAINTS :: Num a => aSource
c'LM_ERROR_FAILED_BOX_CHECK :: Num a => aSource
c'LM_ERROR_TOO_FEW_MEASUREMENTS :: Num a => aSource
c'LM_ERROR_SINGULAR_MATRIX :: Num a => aSource
Default values for minimization options.
c'LM_INIT_MU :: Fractional a => aSource
c'LM_STOP_THRESH :: Fractional a => aSource
c'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.
Types of the Levenberg-Marquardt algorithms.
type LevMarDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarBCDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarBCDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarLecDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarLecDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarBLecDer cr = FunPtr (Model cr) -> FunPtr (Jacobian cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> Weights cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
type LevMarBLecDif cr = FunPtr (Model cr) -> Parameters cr -> Measurements cr -> NrOfParameters -> NrOfMeasurements -> LowerBounds cr -> UpperBounds cr -> ConstraintsMatrix cr -> ConstraintsVector cr -> NrOfConstraints -> Weights cr -> MaxIterations -> Options cr -> Info cr -> Work cr -> Covar cr -> AData -> IO CIntSource
Levenberg-Marquardt algorithms.
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).