daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     QList<int> invers_x, invers_y;
  2.     invers_x = rang_map_x.values();
  3. //  invers_y = rang_map_y.values();
  4.    
  5.     QVector<int> rang_x(5, 9), rang_y(timeseries.y.size());
  6. //  for (int i=0; i<timeseries.x.size(); ++i)
  7.     for (int i=0; i<5; ++i)
  8.     {
  9.         rang_x.insert( invers_x.at(i), i );
  10. //      rang_y.append( invers_y.at( invers_y.at(i) ) );
  11.     }
  12.  
  13.     //testweise ausgeben lassen
  14.     QFile writeFile("blah.txt");
  15.     writeFile.open(QIODevice::WriteOnly | QIODevice::Text);
  16.     QTextStream out(&writeFile);
  17.     out << "orig\tT-Index\tInvers\tRang" << endl;
  18.     for (int i=0; i<5; ++i)
  19.     {
  20.         out << timeseries.x.at(i) << "\t" << i << "\t" << invers_x.at(i)  << "\t" << rang_x.at(i) << endl;
  21.     }
  22.     writeFile.close();
RAW Paste Data
Top