@@ -208,9 +208,9 QList<RealList> MainWidget::generateTestData(int columnCount, int rowCount, QStr | |||
|
208 | 208 | QList <qreal> newColumn; |
|
209 | 209 | for (int i(0); i < rowCount; i++) { |
|
210 | 210 | if (dataCharacteristics == "Sin") { |
|
211 | newColumn.append(abs(sin(3.14159265358979 / 50 * i) * 100)); | |
|
211 | newColumn.append(std::abs(sin(3.14159265358979 / 50 * i) * 100)); | |
|
212 | 212 | } else if (dataCharacteristics == "Sin + random") { |
|
213 | newColumn.append(abs(sin(3.14159265358979 / 50 * i) * 100) + (rand() % 5)); | |
|
213 | newColumn.append(std::abs(sin(3.14159265358979 / 50 * i) * 100) + (rand() % 5)); | |
|
214 | 214 | } else if (dataCharacteristics == "Random") { |
|
215 | 215 | newColumn.append(rand() % 10 + (qreal) rand() / (qreal) RAND_MAX); |
|
216 | 216 | } else if (dataCharacteristics == "Linear") { |
General Comments 0
You need to be logged in to leave comments.
Login now