#include <wls.h>
Inherited by TooN::IRLS< Size, Reweight >, and TooN::IRLS< Size, Reweight >.
Public Member Functions | |
WLS () | |
Default constructor. | |
WLS (double prior) | |
Construct using a given regularisation prior. | |
void | clear (double prior=0) |
void | add_prior (double val) |
template<class Accessor> | |
void | add_prior (const FixedVector< Size, Accessor > &v) |
template<class Accessor> | |
void | add_prior (const FixedMatrix< Size, Size, Accessor > &m) |
template<class Accessor> | |
void | add_df (double m, const FixedVector< Size, Accessor > &J, double weight=1) |
template<int N, class Accessor1, class Accessor2, class Accessor3> | |
void | add_df (const FixedVector< N, Accessor1 > &m, const FixedMatrix< Size, N, Accessor2 > &J, const FixedMatrix< N, N, Accessor3 > &invcov) |
void | compute () |
void | operator+= (const WLS &meas) |
Matrix< Size, Size, RowMajor > & | get_C_inv () |
Returns the inverse covariance matrix. | |
const Matrix< Size, Size, RowMajor > & | get_C_inv () const |
Returns the inverse covariance matrix. | |
Vector< Size > & | get_mu () |
const Vector< Size > & | get_mu () const |
Vector< Size > & | get_vector () |
const Vector< Size > & | get_vector () const |
SVD< Size > & | get_svd () |
const SVD< Size > & | get_svd () const |
WLS () | |
Default constructor. | |
WLS (double prior) | |
Construct using a given regularisation prior. | |
void | clear (double prior=0) |
void | add_prior (double val) |
template<class Accessor> | |
void | add_prior (const FixedVector< Size, Accessor > &v) |
template<class Accessor> | |
void | add_prior (const FixedMatrix< Size, Size, Accessor > &m) |
template<class Accessor> | |
void | add_df (double m, const FixedVector< Size, Accessor > &J, double weight=1) |
template<int N, class Accessor1, class Accessor2, class Accessor3> | |
void | add_df (const FixedVector< N, Accessor1 > &m, const FixedMatrix< Size, N, Accessor2 > &J, const FixedMatrix< N, N, Accessor3 > &invcov) |
void | compute () |
void | operator+= (const WLS &meas) |
Matrix< Size, Size, RowMajor > & | get_C_inv () |
Returns the inverse covariance matrix. | |
const Matrix< Size, Size, RowMajor > & | get_C_inv () const |
Returns the inverse covariance matrix. | |
Vector< Size > & | get_mu () |
const Vector< Size > & | get_mu () const |
Vector< Size > & | get_vector () |
const Vector< Size > & | get_vector () const |
SVD< Size > & | get_svd () |
const SVD< Size > & | get_svd () const |
Size | The number of dimensions in the system |
Definition at line 38 of file wls.h.
void TooN::WLS< Size >::clear | ( | double | prior = 0 |
) | [inline] |
Clear all the measurements and apply a constant regularisation term. Equates to a prior that says all the parameters are zero with .
prior | The strength of the prior |
Definition at line 48 of file wls.h.
References TooN::Identity().
Referenced by TooN::WLS<-1 >::WLS(), and TooN::WLS< Size >::WLS().
void TooN::WLS< Size >::add_prior | ( | double | val | ) | [inline] |
void TooN::WLS< Size >::add_prior | ( | const FixedVector< Size, Accessor > & | v | ) | [inline] |
void TooN::WLS< Size >::add_prior | ( | const FixedMatrix< Size, Size, Accessor > & | m | ) | [inline] |
void TooN::WLS< Size >::add_df | ( | double | m, | |
const FixedVector< Size, Accessor > & | J, | |||
double | weight = 1 | |||
) | [inline] |
void TooN::WLS< Size >::add_df | ( | const FixedVector< N, Accessor1 > & | m, | |
const FixedMatrix< Size, N, Accessor2 > & | J, | |||
const FixedMatrix< N, N, Accessor3 > & | invcov | |||
) | [inline] |
Combine measurements from two WLS systems
meas | The measurements to combine with |
Definition at line 117 of file wls.h.
References TooN::WLS< Size >::my_C_inv, and TooN::WLS< Size >::my_vector.
void TooN::WLS< Size >::clear | ( | double | prior = 0 |
) | [inline] |
Clear all the measurements and apply a constant regularisation term. Equates to a prior that says all the parameters are zero with .
prior | The strength of the prior |
Definition at line 48 of file wls.h.
References TooN::Identity().
void TooN::WLS< Size >::add_prior | ( | double | val | ) | [inline] |
void TooN::WLS< Size >::add_prior | ( | const FixedVector< Size, Accessor > & | v | ) | [inline] |
void TooN::WLS< Size >::add_prior | ( | const FixedMatrix< Size, Size, Accessor > & | m | ) | [inline] |
void TooN::WLS< Size >::add_df | ( | double | m, | |
const FixedVector< Size, Accessor > & | J, | |||
double | weight = 1 | |||
) | [inline] |
void TooN::WLS< Size >::add_df | ( | const FixedVector< N, Accessor1 > & | m, | |
const FixedMatrix< Size, N, Accessor2 > & | J, | |||
const FixedMatrix< N, N, Accessor3 > & | invcov | |||
) | [inline] |