4646
4747#include <boost/random/normal_distribution.hpp>
4848#include <boost/random/cauchy_distribution.hpp>
49- #include <boost/random/uniform_real_distribution.hpp>
49+ // #include <boost/random/uniform_real_distribution.hpp>
5050
5151using std ::vector ;
5252using std ::cout ;
@@ -259,6 +259,7 @@ namespace OpenMS
259259 predicted_retention_times [i ] = features [i ].getMetaValue ("rt" );
260260 }
261261 // add variation
262+ /*
262263 boost::random::normal_distribution<SimCoordinateType> ndist (rt_offset,rt_ft_stddev);
263264 SimCoordinateType rt_error = ndist(rnd_gen_->getTechnicalRng());
264265 predicted_retention_times[i] = predicted_retention_times[i] * rt_scale + rt_error;
@@ -267,6 +268,7 @@ namespace OpenMS
267268 {
268269 predicted_retention_times[i] = features[i].getMetaValue("RT");
269270 }
271+ */
270272
271273 // remove invalid peptides & (later) display removed ones
272274 if (
@@ -287,26 +289,32 @@ namespace OpenMS
287289 DoubleReal variance = egh_variance_location_ ;
288290 if (egh_variance_scale_ != 0 )
289291 {
292+ /*
290293 boost::random::cauchy_distribution<DoubleReal> cdist (0,egh_variance_scale_);
291294 variance += cdist( rnd_gen_->getTechnicalRng() );
295+ */
292296 }
293297 DoubleReal tau = egh_tau_location_ ;
294298 if (egh_tau_scale_ != 0 )
295299 {
300+ /*
296301 boost::random::cauchy_distribution<DoubleReal> cdist (0,egh_tau_scale_);
297302 tau += cdist( rnd_gen_->getTechnicalRng() );
303+ */
298304 }
299305
300306 // resample variance if it is below 0
301307 // try this only 10 times to avoid endless loop in case of
302308 // a bad parameter combination
303309 Size retry_variance_sampling = 0 ;
310+ /*
304311 boost::random::cauchy_distribution<DoubleReal> cdistVar (0.0, egh_variance_scale_);
305312 while ((variance <= 0 || (fabs(variance - egh_variance_location_) > 10 * egh_variance_scale_)) && retry_variance_sampling < 9)
306313 {
307314 variance = egh_variance_location_ + cdistVar(rnd_gen_->getTechnicalRng());
308315 ++retry_variance_sampling;
309316 }
317+ */
310318
311319 if (variance <= 0 || (fabs (variance - egh_variance_location_ ) > 10 * egh_variance_scale_ ))
312320 {
@@ -318,12 +326,14 @@ namespace OpenMS
318326 // try this only 10 times to avoid endless loop in case of
319327 // a bad parameter combination
320328 Size retry_tau_sampling = 0 ;
329+ /*
321330 boost::random::cauchy_distribution<DoubleReal> cdistTau (0.0, egh_tau_scale_);
322331 while (fabs(tau - egh_tau_location_) > 10 * egh_tau_scale_ && retry_tau_sampling < 9)
323332 {
324333 tau = egh_tau_location_ + cdistTau(rnd_gen_->getTechnicalRng());
325334 ++retry_tau_sampling;
326335 }
336+ */
327337
328338 if (fabs (tau - egh_tau_location_ ) > 10 * egh_tau_scale_ )
329339 {
@@ -584,6 +594,7 @@ namespace OpenMS
584594 void RTSimulation ::predictContaminantsRT (FeatureMapSim & contaminants )
585595 {
586596 // iterate of feature map
597+ /*
587598 boost::random::uniform_real_distribution<SimCoordinateType> udist (0,total_gradient_time_);
588599 for (Size i = 0; i < contaminants.size(); ++i)
589600 {
@@ -592,6 +603,7 @@ namespace OpenMS
592603 SimCoordinateType retention_time = udist(rnd_gen_->getTechnicalRng());
593604 contaminants[i].setRT(retention_time);
594605 }
606+ */
595607 }
596608
597609 bool RTSimulation ::isRTColumnOn () const
@@ -664,6 +676,7 @@ namespace OpenMS
664676 {
665677 // initialize the previous value on position 0
666678 previous = (DoubleReal ) experiment [0 ].getMetaValue ("distortion" );
679+ /*
667680 boost::random::uniform_real_distribution<DoubleReal> udist (1.0 - std::pow(fi + 1.0, 2) * 0.01, 1.0 + std::pow(fi + 1.0, 2) * 0.01);// distortion gets worse round by round
668681#ifdef MSSIM_DEBUG_MOV_AVG_FILTER
669682 LOG_WARN << "d <- c(" << previous << ", ";
@@ -695,6 +708,7 @@ namespace OpenMS
695708 }
696709 LOG_WARN << next << ");" << endl;
697710#endif
711+ */
698712 }
699713 }
700714
0 commit comments