Skip to content

Commit

Permalink
Merge pull request #411 from ICB-DCM/fixes_yannik
Browse files Browse the repository at this point in the history
fix #408 questionmark operator
  • Loading branch information
yannikschaelte authored Aug 18, 2018
2 parents cbf4605 + f2e071f commit a18f2a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/edata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ExpData::ExpData(ReturnData const& rdata, std::vector<realtype> sigma_y, std::ve

for (int iy = 0; iy < nytrue; ++iy) {
for (int it = 0; it < nt(); ++it) {
sigma = sigma_y.at(iy) ? sigma_y.size() == (unsigned) nytrue : sigma_y.at(iy + nytrue * it);
sigma = sigma_y.size() == (unsigned) nytrue ? sigma_y.at(iy) : sigma_y.at(iy + nytrue * it);
std::normal_distribution<> e{0, sigma};
observedData.at(iy + nytrue * it) = rdata.y.at(iy + rdata.ny * it) + e(gen);
observedDataStdDev.at(iy + nytrue * it) = sigma;
Expand All @@ -85,7 +85,7 @@ ExpData::ExpData(ReturnData const& rdata, std::vector<realtype> sigma_y, std::ve

for (int iz = 0; iz < nztrue; ++iz) {
for (int ie = 0; ie < nmaxevent; ++ie) {
sigma = sigma_z.at(iz) ? sigma_z.size() == (unsigned) nztrue : sigma_z.at(iz + nztrue * ie);
sigma = sigma_z.size() == (unsigned) nztrue ? sigma_z.at(iz) : sigma_z.at(iz + nztrue * ie);
std::normal_distribution<> e{0, sigma};
observedEvents.at(iz + rdata.nztrue * ie) = rdata.z.at(iz + rdata.nz * ie) + e(gen);
observedDataStdDev.at(iz + rdata.nztrue * ie) = sigma;
Expand Down

0 comments on commit a18f2a7

Please sign in to comment.