Defines | Functions
contrib/rpl/rrel/rrel_util.txx File Reference
#include "rrel_util.h"
#include <vcl_cassert.h>
#include <vcl_cmath.h>
#include <vcl_algorithm.h>
#include <vcl_vector.h>
#include <vnl/vnl_math.h>

Go to the source code of this file.

Defines

#define rrel_util_txx_
#define RREL_UTIL_INSTANTIATE_RAN_ITER(VALUE_T, RAN_ITER)
#define RREL_UTIL_INSTANTIATE_INP_ITER(VALUE_T, INP_ITER)

Functions

template<class O , class T >
rrel_util_median_abs_dev_scale (const T &begin, const T &end, int dof, O *)
template<class O , class T >
rrel_util_weighted_scale (const T &residuals_first, const T &residuals_end, const T &weights_first, int dof, O *)
template<class T , class Ran >
void rrel_util_median_and_scale (Ran first, Ran last, T &median, T &scale, int dof)
template<class T , class InpIter >
void rrel_util_median_and_scale_copy (InpIter first, InpIter last, T &median, T &scale, int dof)
 Compute the median and the scale (relative to the median).
template<class T , class Ran >
void rrel_util_intercept_adjustment (Ran first, Ran last, T &center, T &half_width, int dof)
template<class T , class InpIter >
void rrel_util_intercept_adjustment_copy (InpIter first, InpIter last, T &center, T &half_width, int dof)
 Compute the center and half width of the narrowest interval containing half the points in the residuals.
template<class T , class Ran >
void rrel_util_intercept_adjust_stats (Ran first, Ran last, T &robust_mean, T &robust_std, T &inlier_frac, int dof)
template<class T , class InpIter >
void rrel_util_intercept_adjust_stats_copy (InpIter first, InpIter last, T &robust_mean, T &robust_std, T &inlier_frac, int dof)
 Use the intercept adjustment technique to estimate the robust mean, standard deviation, and inlier fraction.

Define Documentation

#define RREL_UTIL_INSTANTIATE_INP_ITER (   VALUE_T,
  INP_ITER 
)
Value:
template VALUE_T \
rrel_util_weighted_scale( const INP_ITER& residuals_first, const INP_ITER& residuals_end, \
                          const INP_ITER& weights_first, int dof, VALUE_T* ); \
template \
void rrel_util_median_and_scale_copy( INP_ITER first, INP_ITER last, \
                                      VALUE_T& median, VALUE_T& scale, \
                                      int dof ); \
template \
void rrel_util_intercept_adjustment_copy( INP_ITER first, INP_ITER last, \
                                          VALUE_T & center, VALUE_T & half_width, \
                                          int dof ); \
template \
void rrel_util_intercept_adjust_stats_copy( INP_ITER first, INP_ITER last, \
                                            VALUE_T & robust_mean, VALUE_T & robust_std, VALUE_T & inlier_frac, \
                                            int dof )

Definition at line 228 of file rrel_util.txx.

#define RREL_UTIL_INSTANTIATE_RAN_ITER (   VALUE_T,
  RAN_ITER 
)

Definition at line 194 of file rrel_util.txx.

#define rrel_util_txx_

Definition at line 3 of file rrel_util.txx.


Function Documentation

template<class T , class Ran >
void rrel_util_intercept_adjust_stats ( Ran  first,
Ran  last,
T &  robust_mean,
T &  robust_std,
T &  inlier_frac,
int  dof 
)

Definition at line 141 of file rrel_util.txx.

template<class T , class InpIter >
void rrel_util_intercept_adjust_stats_copy ( InpIter  first,
InpIter  last,
T &  robust_mean,
T &  robust_std,
T &  inlier_frac,
int  dof = 1 
)

Use the intercept adjustment technique to estimate the robust mean, standard deviation, and inlier fraction.

Same as rrel_util_intercept_adjustment_stats(), except that the input is copied first, and so is unchanged.

Definition at line 174 of file rrel_util.txx.

template<class T , class Ran >
void rrel_util_intercept_adjustment ( Ran  first,
Ran  last,
T &  center,
T &  half_width,
int  dof 
)

Definition at line 97 of file rrel_util.txx.

template<class T , class InpIter >
void rrel_util_intercept_adjustment_copy ( InpIter  first,
InpIter  last,
T &  center,
T &  half_width,
int  dof = 1 
)

Compute the center and half width of the narrowest interval containing half the points in the residuals.

Same as rrel_util_intercept_adjustment(), except that the input is copied first, and so is unchanged.

Definition at line 123 of file rrel_util.txx.

template<class O , class T >
O rrel_util_median_abs_dev_scale ( const T &  begin,
const T &  end,
int  dof,
O *   
)

Definition at line 17 of file rrel_util.txx.

template<class T , class Ran >
void rrel_util_median_and_scale ( Ran  first,
Ran  last,
T &  median,
T &  scale,
int  dof 
)

Definition at line 59 of file rrel_util.txx.

template<class T , class InpIter >
void rrel_util_median_and_scale_copy ( InpIter  first,
InpIter  last,
T &  median,
T &  scale,
int  dof = 1 
)

Compute the median and the scale (relative to the median).

Same as rrel_util_median_and_scale(), except that the input is copied first, and so is unchanged.

Definition at line 80 of file rrel_util.txx.

template<class O , class T >
O rrel_util_weighted_scale ( const T &  residuals_first,
const T &  residuals_end,
const T &  weights_first,
int  dof,
O *   
)

Definition at line 36 of file rrel_util.txx.