Changeset d3e1d5 for src/FunctionApproximation
- Timestamp:
- Apr 10, 2018, 6:43:29 AM (7 years ago)
- Branches:
- AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
- Children:
- e77580
- Parents:
- e21d55
- git-author:
- Frederik Heber <frederik.heber@…> (07/18/17 21:42:07)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/10/18 06:43:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/FunctionApproximation.cpp
re21d55 rd3e1d5 134 134 p = new double[m]; 135 135 size_t index = 0; 136 // cannot use std::copy here because of additional dereference 136 137 for(FunctionModel::parameters_t::const_iterator paramiter = params.begin(); 137 138 paramiter != params.end(); … … 148 149 x = new double[n]; 149 150 size_t index = 0; 151 // cannot use std::copy here because of additional dereference 150 152 for(outputs_t::const_iterator outiter = output_data.begin(); 151 153 outiter != output_data.end(); … … 341 343 if (!output_data.empty()) { 342 344 filtered_inputs_t::const_iterator initer = input_data.begin(); 343 outputs_t::const_iterator outiter = output_data.begin();345 // outputs_t::const_iterator outiter = output_data.begin(); 344 346 size_t index = 0; 345 for (; initer != input_data.end(); ++initer , ++outiter) {347 for (; initer != input_data.end(); ++initer /* , ++outiter */) { 346 348 // result may be a vector, calculate L2 norm 347 349 const FunctionModel::results_t functionvalue = … … 369 371 if (!output_data.empty()) { 370 372 filtered_inputs_t::const_iterator initer = input_data.begin(); 371 outputs_t::const_iterator outiter = output_data.begin();373 // outputs_t::const_iterator outiter = output_data.begin(); 372 374 size_t index = 0; 373 for (; initer != input_data.end(); ++initer , ++outiter) {375 for (; initer != input_data.end(); ++initer /*, ++outiter */) { 374 376 // result may be a vector, calculate L2 norm 375 377 for (int paramindex = 0; paramindex < m; ++paramindex) {
Note:
See TracChangeset
for help on using the changeset viewer.