Changeset 15148 for trunk


Ignore:
Timestamp:
03/25/13 09:35:32 (12 years ago)
Author:
tbretz
Message:
Removed some debug output. Moved to a slightly less conservative threshold formula.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ratecontrol.cc

    r15110 r15148  
    480480
    481481        //fThresholdMin = max(uint16_t(36.0833*pow(avg, 0.638393)+184.037), fThresholdReference);
    482         fThresholdMin = max(uint16_t(36.0833*pow(avg, 0.638393)+210), fThresholdReference);
     482        //fThresholdMin = max(uint16_t(42.4*pow(avg, 0.642)+182), fThresholdReference);
     483        fThresholdMin = max(uint16_t(41.6*pow(avg, 0.642)+175), fThresholdReference);
    483484        fThresholds.assign(160, fThresholdMin);
    484485
     
    494495            if (vec[i]-avg>6*avg_dev)
    495496            {
    496                 fThresholds[i] = max(uint16_t(36.0833*pow(vec[i], 0.638393)+185), fThresholdReference);
    497 
    498                 cout << "i=" << i << " " << avg << " " << avg_dev << " " << vec[i] << " " << fThresholds[i] << endl;
     497                fThresholds[i] = max(uint16_t(40.5*pow(vec[i], 0.642)+164), fThresholdReference);
    499498
    500499                const int32_t dat[2] = { i, fThresholds[i] };
     
    506505
    507506        avg2 /= 160;
    508         cout << "AVG2="<<avg2 << endl;
    509507
    510508        const RateControl::DimThreshold data = { fThresholdMin, fCalibrationTimeStart.Mjd(), Time().Mjd() };
Note: See TracChangeset for help on using the changeset viewer.