30 const std::vector<float>& inputV)
const
32 if (inputU.size() < 3 || inputV.size() < 3) {
33 B2ERROR(
"The size of input vectors for SVDSpacePointSNRFractionSelector::passSNRFractionSelection is invalid. " <<
34 "It must be grater than 2, but inputU.size() = " << inputU.size() <<
", inputV.size() = " << inputV.size());
38 const float totalSNR_U = inputU[0] + inputU[1] + inputU[2];
39 const float fraction0_U = inputU[0] / totalSNR_U;
40 const float fraction1_U = inputU[1] / totalSNR_U;
45 const float totalSNR_V = inputV[0] + inputV[1] + inputV[2];
46 const float fraction0_V = inputV[0] / totalSNR_V;
47 const float fraction1_V = inputV[1] / totalSNR_V;
class to contain the cut on SVDSpacePoint
float getFraction0MaxForFraction1Cut() const
Get max of SNR0 fraction that is used together with SNR1 fraction cut
void setFraction0MaxForFraction1Cut(float fraction0_max_for_fraction1_cut)
Set max of SNR0 fraction that is used together with SNR1 fraction cut
bool passSNRFractionSelection(const std::vector< float > &inputU, const std::vector< float > &inputV) const
Determine if the combination of U and V clusters passes the SNR fraction cuts.
float m_fraction0_max_for_fraction1_cut
Max of SNR0 fraction that is used together with SNR1 fraction cut.
void setFraction0Max(float fraction0_max)
Set max of SNR0 fraction
float getFraction0Max() const
Get max of SNR0 fraction
float getFraction1Min() const
Get min of SNR1 fraction
float m_fraction1_min
Min of SNR1 fraction.
SVDSpacePointSNRFractionSelector()
constructor
float m_fraction0_max
Max of SNR0 fraction.
void setFraction1Min(float fraction1_min)
Set min of SNR1 fraction
Abstract base class for different kinds of events.