1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

fixing typo

This commit is contained in:
Carles Fernandez 2015-05-15 19:47:41 +02:00
parent 23fb47b1d0
commit 3c82cd728f

View File

@ -303,7 +303,7 @@ float GpsL1CaPcpsQuickSyncAcquisition::calculate_threshold(float pfa)
unsigned int ncells = (code_length_ / folding_factor_) * frequency_bins;
double exponent = 1.0 / static_cast<double>(ncells);
double val = pow(1.0 - pfa, exponent);
double lambda = static_cast<double>(code_length_) / static_cast<double>folding_factor_);
double lambda = static_cast<double>(code_length_) / static_cast<double>(folding_factor_);
boost::math::exponential_distribution<double> mydist (lambda);
float threshold = static_cast<float>(quantile(mydist,val));