//#define XERR
#include "screening.ih"

// static
void Screening::errRisk1404(DoubleVect &vect, 
                            Modalities const &modalities,
                            Round const &round, 
                            uint16_t biRadIdx, 
                            double beta, double eta)
{
                                            // compute beir7Err once, 
    double error = beir7Err(round, biRadIdx, beta, eta, modalities);

                                            // then visit all subsequent ages
    for (uint16_t age = round.rndAge() + 1; age != END_AGE; ++age)
        vect[age] *= error;
}
