Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Static Public Member Functions | List of all members
RANSAC< TModelType > Class Template Reference

This class provides a generic implementation of the RANSAC outlier detection algorithm. Is implemented and tested after the SciPy reference: http://wiki.scipy.org/Cookbook/RANSAC. More...

#include <OpenMS/MATH/MISC/RANSAC.h>

Static Public Member Functions

static std::vector< std::pair
< double, double > > 
ransac (const std::vector< std::pair< double, double > > &pairs, size_t n, size_t k, double t, size_t d, int(*rng)(int)=NULL)
 This function provides a generic implementation of the RANSAC outlier detection algorithm. Is implemented and tested after the SciPy reference: http://wiki.scipy.org/Cookbook/RANSAC. More...
 

Detailed Description

template<typename TModelType = RansacModelLinear>
class OpenMS::Math::RANSAC< TModelType >

This class provides a generic implementation of the RANSAC outlier detection algorithm. Is implemented and tested after the SciPy reference: http://wiki.scipy.org/Cookbook/RANSAC.

Member Function Documentation

static std::vector<std::pair<double, double> > ransac ( const std::vector< std::pair< double, double > > &  pairs,
size_t  n,
size_t  k,
double  t,
size_t  d,
int(*)(int)  rng = NULL 
)
inlinestatic

This function provides a generic implementation of the RANSAC outlier detection algorithm. Is implemented and tested after the SciPy reference: http://wiki.scipy.org/Cookbook/RANSAC.

Parameters
pairsInput data (paired data of type <dim1, dim2>)
nThe minimum number of data points required to fit the model
kThe maximum number of iterations allowed in the algorithm
tThreshold value for determining when a data point fits a model. Corresponds to the maximal squared deviation in units of the _second_ dimension (dim2).
dThe number of close data values (according to 't') required to assert that a model fits well to data
rngCustom RNG function (useful for testing with fixed seeds)
Returns
A vector of pairs fitting the model well; data will be unsorted

References OpenMS::Constants::k.


OpenMS / TOPP release 2.0.0 Documentation generated on Tue Jan 31 2017 06:41:04 using doxygen 1.8.8