Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

least_squares.cc File Reference

#include "least_squares.h"
#include <valarray>
#include <stdexcept>
#include <limits>
Include dependency graph for least_squares.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  least_squares

Defines

#define V(T)   std::valarray< T >
#define M(T)   std::valarray< V(T) >

Functions

template<class T >
void least_squares::invert (M(T)&m)
 Invert a matrix, in-place, using Gauss-Jordan elimination.
template void least_squares::invert (M(float)&m)
template void least_squares::invert (M(double)&m)
template<class T >
 least_squares::V (T) linearFit(const M(T)&x
 Returns parameters 'a' via ordinary least squares such that y = x·a.
template least_squares::V (float) linearFit(const M(float)&x
template least_squares::V (double) linearFit(const M(double)&x

Define Documentation


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:58 2016 by Doxygen 1.6.3