Go to the documentation of this file.00001 #include <QApplication>
00002 #include <QObject>
00003
00004 #include "DGVPlot.h"
00005
00006 typedef double plotType;
00007
00008 const int Size = 128;
00009
00010 int main(int argc, char *argv[])
00011 {
00012 QApplication app(argc,argv);
00013 DGVPlot Plot;
00014 Array<double,1> gaussian(Size), xValues(Size);
00015 firstIndex x;
00016
00017 xValues = x;
00018 plotType stddev = Size/4.0, x0 = Size/2.0;
00019 gaussian = exp(-(x-x0)*(x-x0)/(stddev*stddev));
00020
00021 Plot.setRenderAntialiased();
00022 Plot.createCurvePlot(xValues,gaussian,"Gaussian");
00023 Plot.show();
00024
00025 return app.exec();
00026 }