Skip to content

diku-dk/lmdif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nonlinear least-squares fitting in Futhark CI Documentation

This repository contains a Futhark package for doing nonlinear least-squares fitting using the Levenberg-Marquardt algorithm. Its ancestry is somewhat convoluted: the code is partially based on a LexiFi-provided OCaml translation of MPFIT, which is itself a C translation of the FORTRAN program lmdif.f from MINPACK. This package is named in honour of that original FORTRAN program.

The porting to Futhark was done as part of a larger project while Troels Henriksen was visiting SimCorp.

Installation

$ futhark pkg add github.com/diku-dk/lmdif
$ futhark pkg sync

Usage

Usage is slightly involved. See this test program for an example. You will need to write your own distance functions. The package github.com/athas/distance might be useful.

About

Nonlinear parameter fitting in Futhark

Resources

License

Stars

Watchers

Forks

Packages

No packages published