bindings-levmar-1.1.0.1: Low level bindings to the C levmar (Levenberg-Marquardt) library

StabilityExperimental
Maintainervandijk.roel@gmail.com, v.dijk.bas@gmail.com
Safe HaskellSafe-Inferred

Bindings.LevMar

Contents

Description

A low level binding to the C levmar (Levenberg-Marquardt) library.

Synopsis

Documentation

c'LM_VERSION :: StringSource

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.

Default values for minimization options.

Handy type synonyms

type AData = Ptr ()Source

Model & Jacobian.

type Model r = Parameters r -> Measurements r -> NrOfParameters -> NrOfMeasurements -> AData -> IO ()Source

Functional relation describing measurements.

withModel :: Model a -> (FunPtr (Model a) -> IO b) -> IO bSource

Types of the Levenberg-Marquardt algorithms.

Levenberg-Marquardt algorithms.

Jacobian verification

Utils

type LevMarStddev r = Covar r -> NrOfParameters -> BestFitParameterIx -> IO rSource

Standard deviation.

type LevMarCorCoef r = Covar r -> NrOfParameters -> BestFitParameterIx -> BestFitParameterIx -> IO rSource

Pearson's correlation coefficient for best-fit parameters.

type LevMarR2 r = FunPtr (Model r) -> Parameters r -> Measurements r -> NrOfParameters -> NrOfMeasurements -> AData -> Result r -> IO CIntSource

Coefficient of determination (R2).