Changeset 476781 for src/UIElements/Views/Qt4/QtHomologyList.cpp
- Timestamp:
- Aug 30, 2025, 2:41:40 PM (2 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 5a255af
- Parents:
- d56114
- git-author:
- Frederik Heber <frederik.heber@…> (08/15/25 19:06:31)
- git-committer:
- Frederik Heber <frederik.heber@…> (08/30/25 14:41:40)
- File:
-
- 1 edited
-
src/UIElements/Views/Qt4/QtHomologyList.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtHomologyList.cpp
rd56114 r476781 220 220 std::vector<double> xvalues; 221 221 std::vector<double> yvalues; 222 for (TrainingData::OutputVector_t::const_iterator outputiter = outputs.begin();223 outputiter != outputs.end(); ++outputiter)224 yvalues.push_back((*outputiter)[0]);225 222 226 223 // go through each potential … … 234 231 // then we need to sample the potential 235 232 HomologyGraph dummy; 233 236 234 xvalues.clear(); 235 yvalues.clear(); 236 for (TrainingData::OutputVector_t::const_iterator outputiter = outputs.begin(); 237 outputiter != outputs.end(); ++outputiter) 238 yvalues.push_back((*outputiter)[0]); 237 239 for (TrainingData::InputVector_t::const_iterator inputiter = inputs.begin(); 238 240 inputiter != inputs.end(); ++inputiter) { … … 244 246 average += (*coordinator)(args); 245 247 } 248 const size_t index = xvalues.size(); 246 249 if (specificargs.size() > 1) { 247 const size_t index = xvalues.size();248 250 xvalues.push_back(average/(double)specificargs.size()); 249 yvalues[index] *= 1./(double)specificargs.size(); 251 } else if (specificargs.size() == 1) { 252 xvalues.push_back(average); 253 } else { 254 xvalues.push_back(index/0.1); 250 255 } 251 256 } … … 284 289 else 285 290 delete curve; 286 // couple to QSeisPlotPage287 widget->addCurve(potentialname);288 291 } 289 292 }
Note:
See TracChangeset
for help on using the changeset viewer.
