Changeset 412


Ignore:
Timestamp:
Nov 30, 2005, 6:58:44 PM (16 years ago)
Author:
Peter
Message:

fixing bug with window in both ends

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/statistics/Local.cc

    r383 r412  
    4141          (data_[nof_points-1].first+data_[nof_points-1].first)/2 ){
    4242        min_index=0;
    43         width = data_[nof_points-1].first-data_[i].first;
     43        width = data_[nof_points-1].first-data_[0].first;
    4444      }
    4545      // extreme right case
     
    5454              < data_[i].first-data_[min_index].first)
    5555          min_index++;
    56         width = data_[min_index+nof_points-1].first-data_[i].first;
     56        width = data_[min_index+nof_points-1].first-data_[min_index].first;
    5757        // Peter, should check if x gets closer to centrum if we step
    5858        // back one step
     
    6060
    6161     
    62      
    6362      gslapi::vector x(x_total, min_index, nof_points);
    64       //for (size_t j=0; j<x.size(); j++)
    65       //  x(j)=data_[min_index+j].first;
    66 
    6763      gslapi::vector y(y_total, min_index, nof_points);
    68       //for (size_t j=0; j<y.size(); j++){
    69       //  y(j)=data_[min_index+j].second;
    70       //}
    7164
    7265      // calculating weights
Note: See TracChangeset for help on using the changeset viewer.