SHARE
TWEET

Untitled

a guest Aug 12th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     QMap<double, int> rang_map_x, rang_map_y;
  2.     for (int i=0; i<timeseries.x.size(); ++i)
  3.     {
  4.         rang_map_x.insert( timeseries.x.at(i), i ); //key , value
  5.         rang_map_y.insert( timeseries.y.at(i), i );
  6.     }
  7.     //relative Rangzahlen sortieren
  8.     QList<int> list_map_x, list_map_y;
  9.     list_map_x = rang_map_x.values();
  10.     list_map_y = rang_map_y.values();
  11.    
  12.     QVector<int> rang_x, rang_y;
  13.     for (int i=0; i<timeseries.x.size(); ++i)
  14.     {
  15.         rang_x.insert( list_map_x.at( list_map_x.at(i) ) );
  16.         rang_y.insert( list_map_y.at( list_map_y.at(i) ) );
  17.     }
RAW Paste Data
Top