#include <GaussianEliminationAlg.h>
Definition at line 20 of file GaussianEliminationAlg.h.
util::GaussianEliminationAlg::GaussianEliminationAlg |
( |
float |
step, |
|
|
float |
max |
|
) |
| |
void util::GaussianEliminationAlg::FillAugmentedMatrix |
( |
const std::vector< float > & |
meanVector, |
|
|
const std::vector< float > & |
sigmaVector, |
|
|
const std::vector< float > & |
heightVector |
|
) |
| |
Definition at line 72 of file GaussianEliminationAlg.cxx.
77 fMatrix.resize(meanVector.size());
78 for(
size_t i=0; i<meanVector.size(); i++){
80 fMatrix[i].resize(meanVector.size()+1);
81 for(
size_t j=0; j<meanVector.size(); j++){
82 if(sigmaVector[j] < std::numeric_limits<float>::epsilon()){
91 fMatrix[i][meanVector.size()] = heightVector[i];
double GetDistance(float) const
std::vector< std::vector< double > > fMatrix
void util::GaussianEliminationAlg::FillDistanceLookupTable |
( |
| ) |
|
|
private |
void util::GaussianEliminationAlg::GaussianElimination |
( |
| ) |
|
Definition at line 97 of file GaussianEliminationAlg.cxx.
102 for(
size_t i=0; i<
fMatrix.size(); i++){
104 for(
size_t j=i+1; j<(
fMatrix[i].size()-1); j++){
112 for(
int i=
fMatrix.size()-1; i>=0; i--){
115 for(
size_t j=i+1; j<
fMatrix.size(); j++)
std::vector< std::vector< double > > fMatrix
std::vector< float > fSolutions
double util::GaussianEliminationAlg::GetDistance |
( |
float |
d | ) |
const |
const std::vector<float>& util::GaussianEliminationAlg::GetSolutions |
( |
| ) |
|
|
inline |
void util::GaussianEliminationAlg::Print |
( |
| ) |
|
Definition at line 123 of file GaussianEliminationAlg.cxx.
125 std::cout <<
"GaussianEliminationAlg." << std::endl;
132 std::cout <<
"\tAugmented matrix " << std::endl;
133 for(
size_t i=0; i<
fMatrix.size(); i++){
135 for(
size_t j=0; j<
fMatrix[i].size()-1; j++)
std::vector< std::vector< double > > fMatrix
std::vector< double > fDistanceLookupTable
std::vector< float > fSolutions
BEGIN_PROLOG could also be cout
const std::vector< float > & util::GaussianEliminationAlg::SolveEquations |
( |
const std::vector< float > & |
meanVector, |
|
|
const std::vector< float > & |
sigmaVector, |
|
|
const std::vector< float > & |
heightVector |
|
) |
| |
Definition at line 56 of file GaussianEliminationAlg.cxx.
61 if(meanVector.size()!=sigmaVector.size() ||
62 meanVector.size()!=heightVector.size())
63 throw std::runtime_error(
"Error in GaussianEliminationAlg: Vector sizes not equal.");
void GaussianElimination()
void FillAugmentedMatrix(const std::vector< float > &meanVector, const std::vector< float > &sigmaVector, const std::vector< float > &heightVector)
std::vector< float > fSolutions
std::vector<double> util::GaussianEliminationAlg::fDistanceLookupTable |
|
private |
float util::GaussianEliminationAlg::fDistanceMax |
|
private |
float util::GaussianEliminationAlg::fDistanceStepSize |
|
private |
std::vector< std::vector<double> > util::GaussianEliminationAlg::fMatrix |
|
private |
std::vector<float> util::GaussianEliminationAlg::fSolutions |
|
private |
The documentation for this class was generated from the following files: