33 #ifndef EMANENOISERECORDER_HEADER_ 34 #define EMANENOISERECORDER_HEADER_ 53 double dRxSensitivityMilliWatt_);
62 std::pair<TimePoint,TimePoint>
69 const std::vector<NEMId> & transmitters);
74 const TimePoint & startTime = TimePoint::min());
77 std::vector<double>
dump()
const;
80 const Microseconds::rep totalWindowBins_;
81 const Microseconds::rep totalWheelBins_;
82 const Microseconds::rep binSizeMicroseconds_;
85 double dRxSensitivityMilliWatt_;
86 Microseconds::rep maxEndOfReceptionBin_;
87 Microseconds::rep minStartOfReceptionBin_;
89 using NEMEoRBinMap = std::map<NEMId,Microseconds::rep>;
90 NEMEoRBinMap nemEoRBinMap_;
92 Microseconds::rep timepointToBin(
const TimePoint & tp,
bool bAdjust =
false);
97 #endif //EMANENOISERECORDER_HEADER_
NoiseRecorder(const Microseconds &bin, const Microseconds &maxOffset, const Microseconds &maxPropagation, const Microseconds &maxDuration, double dRxSensitivityMilliWatt_)
std::chrono::microseconds Microseconds
std::pair< TimePoint, TimePoint > update(const TimePoint &now, const TimePoint &txTime, const Microseconds &offset, const Microseconds &propagation, const Microseconds &duration, double dRxPower, const std::vector< NEMId > &transmitters)
Clock::time_point TimePoint
std::vector< double > dump() const