#include "curves.h"
/*#include <qpainter.h>
#include <qtimer.h>
#include <qcolor.h>
#include <qrect.h>
#include <stdlib.h>
#include <qpushbutton.h>
#include <qlayout.h>//用于界面布局
#include <stdio.h>
#include <qlineedit.h>
#include <termio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <qmessagebox.h>
*/
#define TOTAL 1500
#define limit 0.15
#define endlimit 0.02//可变
#define breaknumber 10//突变个数不能超过10
#define length 640//length取屏幕大小
void showAfter();
void showbefore();
int number=0;
int Ylarge=5;
int xwidth=0;
int yposition=430;
int WIDTH;
int temp;
float smoothdata[TOTAL];
int second_begin;
int second_up;
int second_end;
int begin;
int up;
int j=0;
char rec_mes[10];
int end;
int text_length;
//;//获取文本框中输入的大小,
//将所获数据转换为int
float trydata[]=
{
3.585777,
3.509484,
3.509484,
3.43319,
3.509484,
3.356897,
3.356897,
3.356897,
3.280604,
3.509484,
3.509484,
3.43319,
3.356897,
3.280604,
3.43319,
3.43319,
3.43319,
3.43319,
3.356897,
3.43319,
3.509484,
3.43319,
3.43319,
3.356897,
3.43319,
3.509484,
3.585777,
3.585777,
3.509484,
3.585777,
3.509484,
3.509484,
3.585777,
3.509484,
3.509484,
3.356897,
3.356897,
3.356897,
3.356897,
3.585777,
3.509484,
3.509484,
3.509484,
3.585777,
3.738363,
3.585777,
3.585777,
3.509484,
3.585777,
3.509484,
3.509484,
3.509484,
3.509484,
3.509484,
3.509484,
3.585777,
3.585777,
3.509484,
3.585777,
3.585777,
3.585777,
3.509484,
3.43319,
3.509484,
3.509484,
3.509484,
3.585777,
3.43319,
3.585777,
3.43319,
3.43319,
3.585777,
3.585777,
3.66207,
3.585777,
3.585777,
3.509484,
3.43319,
3.585777,
3.585777,
3.585777,
3.66207,
3.738363,
3.66207,
3.66207,
3.585777,
3.585777,
3.66207,
3.66207,
3.66207,
3.585777,
3.509484,
3.66207,
3.509484,
3.43319,
3.509484,
3.509484,
3.585777,
3.585777,
3.66207,
3.738363,
3.738363,
3.738363,
3.738363,
3.814656,
3.738363,
3.890949,
3.890949,
3.890949,
3.814656,
3.738363,
3.890949,
3.814656,
3.814656,
3.738363,
3.814656,
3.738363,
3.66207,
3.66207,
3.66207,
3.814656,
3.738363,
3.738363,
3.738363,
3.814656,
3.890949,
3.814656,
3.890949,
3.890949,
4.119828,
4.119828,
4.043535,
4.043535,
4.196122,
4.119828,
4.119828,
4.043535,
4.272415,
4.272415,
4.425001,
4.348708,
4.501294,
4.501294,
4.577587,
4.425001,
4.577587,
4.577587,
4.65388,
4.730173,
4.806467,
4.806467,
4.730173,
4.88276,
4.959053,
4.959053,
5.035346,
5.111639,
5.111639,
5.187932,
5.340518,
5.340518,
5.340518,
5.340518,
5.493105,
5.493105,
5.645691,
5.721984,
5.721984,
5.798277,
5.87457,
5.87457,
6.027156,
6.10345,
6.179743,
6.332329,
6.408622,
6.408622,
6.713795,
6.790088,
7.018967,
7.09526,
7.09526,
7.32414,
7.32414,
7.553019,
7.705605,
7.858191,
8.010778,
8.163364,
8.31595,
8.392243,
8.468536,
8.544829,
8.773709,
8.926295,
9.078881,
9.307761,
9.53664,
9.765519,
9.841812,
10.070692,
10.223278,
10.604744,
10.833623,
10.909916,
11.215089,
11.443968,
11.596554,
11.825434,
12.054313,
12.206899,
12.435779,
12.740951,
12.893537,
13.122417,
13.427589,
13.580175,
13.732762,
13.809055,
13.961641,
14.266813,
14.4194,
14.571986,
14.800865,
15.029745,
15.258624,
15.563796,
15.792676,
16.021555,
16.174141,
16.403021,
16.555607,
16.784486,
16.784486,
17.013366,
17.165952,
17.394831,
17.700004,
18.005176,
18.234056,
18.386642,
18.615521,
18.768108,
18.691814,
18.920694,
18.996987,
19.149573,
19.149573,
19.302159,
19.454746,
19.531039,
19.759918,
19.912504,
19.988797,
20.065091,
20.141384,
20.141384,
20.065091,
20.217677,
20.217677,
20.217677,
20.217677,
20.29397,
20.217677,
20.29397,
20.29397,
20.370263,
20.29397,
20.370263,
20.370263,
20.29397,
20.29397,
20.370263,
20.29397,
20.217677,
20.141384,
20.065091,
19.988797,
19.836211,
19.683625,
19.531039,
19.531039,
19.454746,
19.454746,
19.378452,
19.302159,
19.225866,
19.149573,
19.149573,
18.996987,
18.920694,
18.844401,
18.615521,
18.462935,
18.386642,
18.310349,
18.386642,
18.234056,
18.081469,
17.85259,
17.547418,
17.394831,
17.318538,
17.242245,
17.165952,
17.013366,
16.86078,
16.6319,
16.326728,
16.174141,
16.021555,
15.868969,
15.64009,
15.487503,
15.258624,
15.106038,
14.953452,
14.800865,
14.724572,
14.648279,
14.4194,
14.266813,
14.19052,
14.037934,
13.961641,
13.809055,
13.732762,
13.580175,
13.351296,
13.19871,
13.046124,
12.893537,
12.817244,
12.664658,
12.435779,
12.206899,
11.97802,
11.901727,
11.825434,
11.672847,
11.596554,
11.520261,
11.443968,
11.215089,
11.138796,
10.909916,
10.75733,
10.681037,
10.528451,
10.375864,
10.070692,
10.070692,
9.918106,
9.765519,
9.765519,
9.460347,
9.384054,
9.155174,
9.078881,
8.926295,
8.850002,
8.621123,
8.468536,
8.239657,
8.163364,
8.087071,
8.087071,
7.781898,
7.781898,
7.629312,
7.629312,
7.476726,
7.32414,
7.32414,
7.171553,
7.247846,
7.09526,
7.09526,
7.018967,
6.866381,
6.866381,
6.637501,
6.637501,
6.484915,
6.332329,
6.332329,
6.10345,
5.950863,
5.950863,
5.798277,
5.721984,
5.645691,
5.569398,
5.569398,
5.493105,
5.416812,
5.416812,
5.416812,
5.264225,
5.111639,
5.111639,
5.035346,
4.88276,
4.806467,
4.730173,
4.730173,
4.577587,
4.806467,
4.806467,
4.806467,
4.577587,
4.65388,
4.501294,
4.348708,
4.196122,
4.196122,
4.119828,
4.119828,
4.119828,
4.196122,
4.119828,
4.119828,
4.043535,
4.196122,
4.119828,
4.119828,
4.043535,
3.890949,
3.890949,
3.814656,
3.890949,
3.814656,
3.890949,
3.814656,
3.738363,
3.66207,
3.66207,
3.814656,
3.738363,
3.66207,
3.585777,
3.66207,
3.585777,
3.585777,
3.509484,
3.509484,
3.585777,
3.585777,
3.585777,
3.585777,
3.585777,
3.509484,
3.509484,
3.43319,
3.356897,
3.356897,
3.356897,
3.280604,
3.356897,
3.280604,
3.43319,
3.356897,
3.280604,
3.280604,
3.356897,
3.280604,
3.43319,
3.43319,
3.43319,
3.43319,
3.356897,
3.509484,
3.43319,
3.509484,
3.509484,
3.509484,
3.509484,
3.509484,
3.585777,
3.66207,
3.738363,
3.814656,
3.738363,
3.738363,
3.66207,
3.738363,
3.66207,
3.585777,
3.509484,
3.356897,
3.585777,
3.585777,
3.509484,
3.43319,
3.356897,
3.43319,
3.356897,
3.356897,
3.43319,
3.280604,
3.509484,
3.43319,
3.43319,
3.509484,
3.509484,
3.66207,
3.585777,
3.509484,
3.43319,
3.43319,
3.43319,
3.356897,
3.356897,
3.43319,
3.280604,
3.509484,
3.280604,
3.280604,
3.280604,
3.280604,
3.43319,
3.43319,
3.43319,
3.356897,
3.43319,
3.43319,
3.43319,
3.43319,
3.356897,
3.280604,
3.43319,
3.356897,
3.356897,
3.43319,
3.43319,
3.66207,
3.585777,
3.43319,
3.356897,
3.356897,
3.43319,
3.356897,
3.280604,
3.280604,
3.204311,
3.280604,
3.356897,
3.356897,
3.280604,
3.280604,
3.356897,
3.280604,
3.356897,
3.43319,
3.356897,
3.43319,
3.509484,
3.43319,
3.43319,
3.280604,
3.43319,
3.43319,
3.43319,
3.585777,
3.509484,
3.509484,
3.585777,
3.43319,
3.356897,
3.356897,
3.509484,
3.509484,
3.509484,
3.43319,
3.43319,
3.509484,
3.43319,
3.43319,
3.43319,
3.509484,
3.509484,
3.509484,
3.43319,
3.43319,
3.356897,
3.509484,
3.43319,
3.43319,
3.356897,
3.280604,
3.356897,
3.280604,
3.280604,
3.280604,
3.204311,
3.356897,
3.280604,
3.356897,
3.280604,
3.204311,
3.204311,
3.356897,
3.356897,
3.356897,
3.280604,
3.280604,
3.356897,
3.356897,
3.356897,
3.356897,
3.356897,
3.509484,
3.509484,
3.43319,
3.43319,
3.356897,
3.43319,
3.356897,
3.280604,
3.280604,
3.204311,
3.356897,
3.204311,
3.204311,
3.280604,
3.43319,
3.509484,
3.509484,
3.43319,
3.43319,
3.43319,
3.509484,
3.509484,
3.509484,
3.509484,
3.43319,
3.509484
- 1
- 2
前往页