toManaged method

RawSpectrumData toManaged()

Implementation

RawSpectrumData toManaged() {
  int binCount = all_bins_nums;
  List<double> allBinsValues = List.generate(binCount, (i) => all_bins_values[i]);
  double totalRawPow = total_raw_pow;

  return RawSpectrumData(allBinsValues: allBinsValues, totalRawPow: totalRawPow);
}