You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
441B

  1. #pragma once
  2. #include "range.h"
  3. #include "selector.h"
  4. namespace DHE {
  5. namespace Signal {
  6. static constexpr auto unipolar_range = Range{0.f, 10.f};
  7. static constexpr auto bipolar_range = Range{-5.f, 5.f};
  8. static const auto ranges =
  9. std::vector<Range const *>{&bipolar_range, &unipolar_range};
  10. inline auto range(bool is_uni) -> const Range & {
  11. return is_uni ? unipolar_range : bipolar_range;
  12. }
  13. } // namespace Signal
  14. } // namespace DHE