Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/16/08 14:14:22 (16 years ago)
Author:
gkronber
Message:

fixed a small bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/Evaluation/GPEvaluatorBase.cs

    r483 r515  
    7272      useEstimatedValues = GetVariableValue<BoolData>("UseEstimatedTargetValue", scope, true).Data;
    7373      // prepare for autoregressive modelling by saving the original values of the target-variable to a backup array
    74       if(useEstimatedValues && 
    75         (backupValues == null || start!=this.start || end!=this.end)) {
     74      if(useEstimatedValues &&
     75        (backupValues == null || start != this.start || end != this.end)) {
    7676        this.start = start;
    7777        this.end = end;
     
    8282      }
    8383      // get the mean of the values of the target variable to determin the max and min bounds of the estimated value
    84       targetMean = dataset.GetMean(targetVariable, start, end);
     84      targetMean = dataset.GetMean(targetVariable, start, end - 1);
    8585      estimatedValueMin = targetMean - maximumPunishment;
    8686      estimatedValueMax = targetMean + maximumPunishment;
Note: See TracChangeset for help on using the changeset viewer.