bindings-levmar-0.1.1.1: A binding to the C levmar (Levenberg-Marquardt) library

StabilityExperimental
Maintainervandijk.roel@gmail.com, v.dijk.bas@gmail.com

Bindings.LevMar.CurryFriendly

Contents

Description

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.)

Synopsis

Documentation

_LM_VERSION :: StringSource

The version of the C levmar library.

Maximum sizes of arrays.

_LM_OPTS_SZ :: IntSource

The maximum size of the options array.

_LM_INFO_SZ :: IntSource

The size of the info array.

Errors

Default values for options.

Handy type synonyms

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

Handy type synonyms used in the curry friendly types.

type BoxConstraints cr a = LowerBounds cr -> UpperBounds cr -> aSource

Curry friendly types of the Levenberg-Marquardt algorithms.

Curry friendly variants of the Levenberg-Marquardt algorithms in Bindings.Levmar.

Jacobian verification

Utils

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).