ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Classes | Enumerations | Functions
Sample Consensus

Group of classes and functions for sample consensus estimators. More...

Classes

class  SampleConsensus::AtSampleConsensus
 Perform a sample consensus on a cloud of AtHits. More...
 

Enumerations

enum  SampleConsensus::Estimators {
  SampleConsensus::Estimators::kRANSAC, SampleConsensus::Estimators::kLMedS, SampleConsensus::Estimators::kMLESAC, SampleConsensus::Estimators::kWRANSAC,
  SampleConsensus::Estimators::kChi2, SampleConsensus::Estimators::kYRANSAC
}
 Estimators for AtSampleConsensus. More...
 

Functions

static int SampleConsensus::AtEstimator::EvaluateModel (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hits, double distThresh, Estimators estimator)
 Evaluate how well model describes hits. More...
 

Detailed Description

Group of classes and functions for sample consensus estimators.

AtSampleConsensus will perform a sample consensus calculation using an estimator (implemented estimaros are listed in Estimators) and an AtPattern.

Enumeration Type Documentation

◆ Estimators

Estimators for AtSampleConsensus.

All implemented estimators for AtSampleConsensus.

Enumerator
kRANSAC 
kLMedS 
kMLESAC 
kWRANSAC 
kChi2 
kYRANSAC 

Definition at line 17 of file AtEstimatorMethods.h.

Function Documentation

◆ EvaluateModel()

int AtEstimator::EvaluateModel ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hits,
double  distThresh,
Estimators  estimator = Estimators::kRANSAC 
)
static

Evaluate how well model describes hits.

Checks all hits for consistancy with modeled pattern, and sets the model Chi2 based on the estimator.

Parameters
[in]modelModel to evaluate
[in]hitsHits to compare to model
[in]distThreshHow close a point must be to be consistent with the model
Returns
Number of points consistent with model in hits

Definition at line 22 of file AtSampleEstimator.cxx.