OpenMS
2.4.0
|
A simple struct to carry all the parameters required for a RANSAC run. More...
#include <OpenMS/MATH/MISC/RANSAC.h>
Public Member Functions | |
RANSACParam () | |
Default constructor. More... | |
RANSACParam (size_t p_n, size_t p_k, double p_t, size_t p_d, bool p_relative_d=false, int(*p_rng)(int)=nullptr) | |
Full constructor. More... | |
std::string | toString () const |
Public Attributes | |
size_t | n |
data points: The minimum number of data points required to fit the model More... | |
size_t | k |
iterations: The maximum number of iterations allowed in the algorithm More... | |
double | 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). More... | |
size_t | d |
The number of close data values (according to 't') required to assert that a model fits well to data. More... | |
bool | relative_d |
Should 'd' be interpreted as percentages (0-100) of data input size. More... | |
int(* | rng )(int) |
Optional RNG function (useful for testing with fixed seeds) More... | |
A simple struct to carry all the parameters required for a RANSAC run.
|
inline |
Default constructor.
|
inline |
Full constructor.
References RANSACParam::d, and RANSACParam::relative_d.
|
inline |
References RANSACParam::d, RANSACParam::k, RANSACParam::n, and RANSACParam::t.
size_t d |
The number of close data values (according to 't') required to assert that a model fits well to data.
Referenced by RANSAC< TModelType >::ransac(), RANSACParam::RANSACParam(), and RANSACParam::toString().
size_t k |
iterations: The maximum number of iterations allowed in the algorithm
Referenced by RANSAC< TModelType >::ransac(), and RANSACParam::toString().
size_t n |
data points: The minimum number of data points required to fit the model
Referenced by RANSAC< TModelType >::ransac(), and RANSACParam::toString().
bool relative_d |
Should 'd' be interpreted as percentages (0-100) of data input size.
Referenced by RANSAC< TModelType >::ransac(), and RANSACParam::RANSACParam().
int(* rng) (int) |
Optional RNG function (useful for testing with fixed seeds)
Referenced by RANSAC< TModelType >::ransac().
double 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).
Referenced by RANSAC< TModelType >::ransac(), and RANSACParam::toString().