diff --git a/src/NoiseModel.cpp b/src/NoiseModel.cpp index 6c43590..141e49b 100644 --- a/src/NoiseModel.cpp +++ b/src/NoiseModel.cpp @@ -377,6 +377,8 @@ void NoiseModel::FitStepProb(const map > & step_size_by_perio for (int j = 1; j <= period*3; j++) { pdf_model.at(period-MIN_PERIOD).at(zero_index+j) = pdf_model.at(period-MIN_PERIOD).at(zero_index+j)/total_mass; + pdf_model.at(period-MIN_PERIOD).at(zero_index-j) = + pdf_model.at(period-MIN_PERIOD).at(zero_index-j)/total_mass; } }