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... | |
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.
|
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.
| pairs | Input data (paired data of type <dim1, dim2>) |
| n | The minimum number of data points required to fit the model |
| k | The maximum number of iterations allowed in the algorithm |
| t | Threshold value for determining when a data point fits a model. Corresponds to the maximal squared deviation in units of the _second_ dimension (dim2). |
| d | The number of close data values (according to 't') required to assert that a model fits well to data |
| rng | Custom RNG function (useful for testing with fixed seeds) |
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 |