FitPolynom.h File Reference

#include "hugin_math/Matrix3.h"

Include dependency graph for FitPolynom.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  vigra_ext

Functions

template<typename M>
double calcDeterminant3 (const M &m)
 calculate the determinat of a 3x3 matrix using the sarrus formula
template<class T>
void FitPolynom (T x, T xend, T y, double &a, double &b, double &c)
 fit a second order polynom to a data set


Detailed Description

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file FitPolynom.h.


Function Documentation

template<typename M>
double calcDeterminant3 const M &  m  ) 
 

calculate the determinat of a 3x3 matrix using the sarrus formula

Definition at line 36 of file FitPolynom.h.

template<class T>
void FitPolynom x,
xend,
y,
double &  a,
double &  b,
double &  c
 

fit a second order polynom to a data set

y = a + b*x + c*x^2

uses a least mean square fit, give at least 3 points.

calculate quality of fit

Definition at line 55 of file FitPolynom.h.

References Matrix3::Determinant(), Matrix3::m, and X.

Referenced by vigra_ext::subpixelMaxima().


Generated on Tue Sep 16 01:25:44 2014 for Hugintrunk by  doxygen 1.3.9.1