#include <LossFunctions.h>
Public Types | |
enum | ReweightScheme { Scalar, Block } |
typedef boost::shared_ptr< Base > | shared_ptr |
Public Member Functions | |
Base (const ReweightScheme reweight=Block) | |
virtual bool | equals (const Base &expected, double tol=1e-8) const =0 |
virtual double | loss (double distance) const |
virtual void | print (const std::string &s) const =0 |
void | reweight (Vector &error) const |
void | reweight (std::vector< Matrix > &A, Vector &error) const |
void | reweight (Matrix &A, Vector &error) const |
void | reweight (Matrix &A1, Matrix &A2, Vector &error) const |
void | reweight (Matrix &A1, Matrix &A2, Matrix &A3, Vector &error) const |
double | sqrtWeight (double distance) const |
Vector | sqrtWeight (const Vector &error) const |
virtual double | weight (double distance) const =0 |
Vector | weight (const Vector &error) const |
virtual | ~Base () |
Protected Attributes | |
ReweightScheme | reweight_ |
Private Member Functions | |
template<class ARCHIVE > | |
void | serialize (ARCHIVE &ar, const unsigned int) |
Friends | |
class | boost::serialization::access |
Definition at line 59 of file LossFunctions.h.
typedef boost::shared_ptr<Base> gtsam::noiseModel::mEstimator::Base::shared_ptr |
Definition at line 62 of file LossFunctions.h.
Enumerator | |
---|---|
Scalar | |
Block |
Definition at line 61 of file LossFunctions.h.
|
inline |
Definition at line 70 of file LossFunctions.h.
|
inlinevirtual |
Definition at line 71 of file LossFunctions.h.
|
pure virtual |
Implemented in gtsam::noiseModel::mEstimator::L2WithDeadZone, gtsam::noiseModel::mEstimator::DCS, gtsam::noiseModel::mEstimator::GemanMcClure, gtsam::noiseModel::mEstimator::Welsch, gtsam::noiseModel::mEstimator::Tukey, gtsam::noiseModel::mEstimator::Cauchy, gtsam::noiseModel::mEstimator::Huber, gtsam::noiseModel::mEstimator::Fair, and gtsam::noiseModel::mEstimator::Null.
|
inlinevirtual |
Reimplemented in gtsam::noiseModel::mEstimator::L2WithDeadZone, gtsam::noiseModel::mEstimator::DCS, gtsam::noiseModel::mEstimator::GemanMcClure, gtsam::noiseModel::mEstimator::Welsch, gtsam::noiseModel::mEstimator::Tukey, gtsam::noiseModel::mEstimator::Cauchy, gtsam::noiseModel::mEstimator::Huber, gtsam::noiseModel::mEstimator::Fair, and gtsam::noiseModel::mEstimator::Null.
Definition at line 84 of file LossFunctions.h.
|
pure virtual |
Implemented in gtsam::noiseModel::mEstimator::L2WithDeadZone, gtsam::noiseModel::mEstimator::DCS, gtsam::noiseModel::mEstimator::GemanMcClure, gtsam::noiseModel::mEstimator::Welsch, gtsam::noiseModel::mEstimator::Tukey, gtsam::noiseModel::mEstimator::Cauchy, gtsam::noiseModel::mEstimator::Huber, gtsam::noiseModel::mEstimator::Fair, and gtsam::noiseModel::mEstimator::Null.
void Base::reweight | ( | Vector & | error | ) | const |
reweight block matrices and a vector according to their weight implementation
Definition at line 45 of file LossFunctions.cpp.
Definition at line 55 of file LossFunctions.cpp.
Definition at line 73 of file LossFunctions.cpp.
Definition at line 87 of file LossFunctions.cpp.
Definition at line 103 of file LossFunctions.cpp.
|
inlineprivate |
Definition at line 122 of file LossFunctions.h.
|
inline |
Definition at line 99 of file LossFunctions.h.
square root version of the weight function
Definition at line 106 of file LossFunctions.h.
|
pure virtual |
Implemented in gtsam::noiseModel::mEstimator::L2WithDeadZone, gtsam::noiseModel::mEstimator::DCS, gtsam::noiseModel::mEstimator::GemanMcClure, gtsam::noiseModel::mEstimator::Welsch, gtsam::noiseModel::mEstimator::Tukey, gtsam::noiseModel::mEstimator::Cauchy, gtsam::noiseModel::mEstimator::Huber, gtsam::noiseModel::mEstimator::Fair, and gtsam::noiseModel::mEstimator::Null.
produce a weight vector according to an error vector and the implemented robust function
Definition at line 34 of file LossFunctions.cpp.
|
friend |
Serialization function
Definition at line 120 of file LossFunctions.h.
|
protected |
the rows can be weighted independently according to the error or uniformly with the norm of the right hand side
Definition at line 67 of file LossFunctions.h.