MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / replaceSpectrumUnit

Method replaceSpectrumUnit

Suscan/Library.cpp:938–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938void
939Singleton::replaceSpectrumUnit(
940 std::string const &name,
941 float dBPerUnit,
942 float zeroPoint)
943{
944 SpectrumUnit su;
945
946 su.name = name;
947 su.dBPerUnit = dBPerUnit;
948 su.zeroPoint = zeroPoint;
949
950 this->removeSpectrumUnit(name);
951 this->spectrumUnits[name] = su;
952}
953
954void
955Singleton::removeSpectrumUnit(std::string const &name)

Callers

nothing calls this directly

Calls 1

removeSpectrumUnitMethod · 0.95

Tested by

no test coverage detected