22 _prf = 1 / (std::floor(rate / mprf) / rate);
28 _schedule = std::move(schedule);
34 if (_schedule.empty())
39 for (
const auto& period : _schedule)
42 if (time >= period.start && time <= period.end)
47 if (time < period.start)
std::optional< RealType > getNextPulseTime(RealType time) const
Determines the valid simulation time for a pulse at or after the given time.
void setSchedule(std::vector< SchedulePeriod > schedule)
Sets the active schedule for the transmitter.
void setPrf(RealType mprf) noexcept
Sets the pulse repetition frequency (PRF) of the transmitter.
double RealType
Type for real numbers.
RealType rate() noexcept
Get the rendering sample rate.
unsigned oversampleRatio() noexcept
Get the oversampling ratio.
Defines the Parameters struct and provides methods for managing simulation parameters.
Header file for the Transmitter class in the radar namespace.