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

Copyright(c) 2009-2012 Roel van Dijk & Bas van Dijk
LicenseBSD-style (see the file LICENSE)
Maintainervandijk.roel@gmail.com, v.dijk.bas@gmail.com
StabilityExperimental
Safe HaskellSafe
LanguageHaskell98

Bindings.LevMar

Contents

Description

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

Synopsis

Documentation

c'LM_VERSION :: String Source #

The version of the C levmar library.

Maximum sizes of arrays.

c'LM_OPTS_SZ :: Num a => a Source #

The maximum size of the options array.

c'LM_INFO_SZ :: Num a => a Source #

The size of the info array.

Errors.

Default values for minimization options.

Handy type synonyms

type Info = Ptr Source #

type Work = Ptr Source #

type Covar = Ptr Source #

type AData = Ptr () Source #

Model & Jacobian.

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

Functional relation describing measurements.

type Jacobian a = Model a Source #

withModel :: Model a -> (FunPtr (Model a) -> IO b) -> IO b Source #

withJacobian :: Jacobian a -> (FunPtr (Jacobian a) -> IO b) -> IO b Source #

Types of the Levenberg-Marquardt algorithms.

Levenberg-Marquardt algorithms.

Jacobian verification

Utils

type LevMarStddev r = Covar r -> NrOfParameters -> BestFitParameterIx -> IO r Source #

Standard deviation.

type LevMarCorCoef r = Covar r -> NrOfParameters -> BestFitParameterIx -> BestFitParameterIx -> IO r Source #

Pearson's correlation coefficient for best-fit parameters.

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

Coefficient of determination (R2).