Ignore:
Timestamp:
Apr 10, 2018, 6:43:29 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
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)
Message:

FIX: unnecessary output iterator present in FunctionaApproximation::evaluate().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/FunctionApproximation.cpp

    re21d55 rd3e1d5  
    134134    p = new double[m];
    135135    size_t index = 0;
     136    // cannot use std::copy here because of additional dereference
    136137    for(FunctionModel::parameters_t::const_iterator paramiter = params.begin();
    137138        paramiter != params.end();
     
    148149    x = new double[n];
    149150    size_t index = 0;
     151    // cannot use std::copy here because of additional dereference
    150152    for(outputs_t::const_iterator outiter = output_data.begin();
    151153        outiter != output_data.end();
     
    341343  if (!output_data.empty()) {
    342344    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();
    344346    size_t index = 0;
    345     for (; initer != input_data.end(); ++initer, ++outiter) {
     347    for (; initer != input_data.end(); ++initer /* , ++outiter */) {
    346348      // result may be a vector, calculate L2 norm
    347349      const FunctionModel::results_t functionvalue =
     
    369371  if (!output_data.empty()) {
    370372    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();
    372374    size_t index = 0;
    373     for (; initer != input_data.end(); ++initer, ++outiter) {
     375    for (; initer != input_data.end(); ++initer /*, ++outiter */) {
    374376      // result may be a vector, calculate L2 norm
    375377      for (int paramindex = 0; paramindex < m; ++paramindex) {
Note: See TracChangeset for help on using the changeset viewer.