#include <GteApprPolynomialSpecial2.h>
Public Member Functions | |
ApprPolynomialSpecial2 (std::vector< int > const °rees) | |
Real | Error (std::array< Real, 2 > const &observation) const |
Real | Evaluate (Real x) const |
bool | Fit (std::vector< std::array< Real, 2 >> const &observations, std::vector< int > const &indices) |
int | GetMinimumRequired () const |
std::vector< Real > const & | GetParameters () const |
std::array< Real, 2 > const & | GetXDomain () const |
Public Member Functions inherited from gte::ApprQuery< Real, ApprPolynomialSpecial2< Real >, std::array< Real, 2 > > | |
bool | Fit (std::vector< std::array< Real, 2 > > const &observations) |
bool | Fit (std::vector< std::array< Real, 2 > > const &observations, int const imin, int const imax) |
bool | Fit (std::vector< std::array< Real, 2 > > const &observations, std::vector< int > const &indices, int const numIndices) |
Private Member Functions | |
bool | DoLeastSquares (std::vector< std::array< Real, 2 >> &transformed) |
void | Transform (std::vector< std::array< Real, 2 >> const &observations, std::vector< int > const &indices, std::vector< std::array< Real, 2 >> &transformed) |
Private Attributes | |
std::vector< int > | mDegrees |
Real | mInvTwoWScale |
std::vector< Real > | mParameters |
std::array< Real, 2 > | mScale |
std::array< Real, 2 > | mWDomain |
std::array< Real, 2 > | mXDomain |
std::vector< Real > | mXPowers |
Additional Inherited Members | |
Static Public Member Functions inherited from gte::ApprQuery< Real, ApprPolynomialSpecial2< Real >, std::array< Real, 2 > > | |
static bool | RANSAC (ApprPolynomialSpecial2< Real > &candidateModel, std::vector< std::array< Real, 2 > > const &observations, int const numRequiredForGoodFit, Real const maxErrorForGoodFit, int const numIterations, std::vector< int > &bestConsensus, ApprPolynomialSpecial2< Real > &bestModel) |
Definition at line 25 of file GteApprPolynomialSpecial2.h.
gte::ApprPolynomialSpecial2< Real >::ApprPolynomialSpecial2 | ( | std::vector< int > const & | degrees | ) |
Definition at line 82 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 238 of file GteApprPolynomialSpecial2.h.
Real gte::ApprPolynomialSpecial2< Real >::Error | ( | std::array< Real, 2 > const & | observation | ) | const |
Definition at line 141 of file GteApprPolynomialSpecial2.h.
Real gte::ApprPolynomialSpecial2< Real >::Evaluate | ( | Real | x | ) | const |
Definition at line 162 of file GteApprPolynomialSpecial2.h.
bool gte::ApprPolynomialSpecial2< Real >::Fit | ( | std::vector< std::array< Real, 2 >> const & | observations, |
std::vector< int > const & | indices | ||
) |
Definition at line 122 of file GteApprPolynomialSpecial2.h.
int gte::ApprPolynomialSpecial2< Real >::GetMinimumRequired | ( | ) | const |
Definition at line 116 of file GteApprPolynomialSpecial2.h.
std::vector< Real > const & gte::ApprPolynomialSpecial2< Real >::GetParameters | ( | ) | const |
Definition at line 150 of file GteApprPolynomialSpecial2.h.
std::array< Real, 2 > const & gte::ApprPolynomialSpecial2< Real >::GetXDomain | ( | ) | const |
Definition at line 156 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 188 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 64 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 72 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 65 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 71 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 70 of file GteApprPolynomialSpecial2.h.
|
private |
Definition at line 70 of file GteApprPolynomialSpecial2.h.
|
mutableprivate |
Definition at line 77 of file GteApprPolynomialSpecial2.h.