diff options
Diffstat (limited to 'tempalte')
-rw-r--r-- | tempalte/Makefile | 2 | ||||
-rw-r--r-- | tempalte/data | 0 | ||||
-rw-r--r-- | tempalte/main.cpp | 12 | ||||
-rw-r--r-- | tempalte/plots.gp | 11 |
4 files changed, 14 insertions, 11 deletions
diff --git a/tempalte/Makefile b/tempalte/Makefile index eb309ff..224506f 100644 --- a/tempalte/Makefile +++ b/tempalte/Makefile @@ -6,7 +6,7 @@ CFLAGS = -std=c++2c -mavx -Iinclude -ggdb run: gnuplot gnuplot: plots.gp run_main - gnuplot $< + gnuplot $< &>/dev/null run_main: main ./main diff --git a/tempalte/data b/tempalte/data new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tempalte/data diff --git a/tempalte/main.cpp b/tempalte/main.cpp index b1ce4e1..2786234 100644 --- a/tempalte/main.cpp +++ b/tempalte/main.cpp @@ -2,13 +2,17 @@ #include "include/praktable.hpp" -using table = prak::table<double>; +using table = prak::table<f64>; +using f64p = prak::pvalue<f64>; +using f64v = std::vector<f64>; +using vecarg = const std::vector<f64> &; +using argvec = const std::vector<f64> &; -void ex1(void) { - table t; +void ex1(std::string file) { + table t(file); } int main() { - ex1(); + ex1("data"); return 0; } diff --git a/tempalte/plots.gp b/tempalte/plots.gp index 702408a..314be12 100644 --- a/tempalte/plots.gp +++ b/tempalte/plots.gp @@ -1,14 +1,13 @@ set term pngcairo size 1000, 800 -set tmargin at screen 0.95 -f1(x) = a1*x+b1 -fit f1(x) '.plot' using 1:2:3 yerr via a1, b1 +#f1(x) = a1*x+b1 +#fit f1(x) '.plot' using 1:2:3 yerr via a1, b1 set output '' -set label "" at graph 0.5, graph 1.025 center +set title "" set xlabel "" set ylabel "" -plot '.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \ - f1(x) title "" lc rgb "red", \ +#plot '.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \ +# f1(x) title "" lc rgb "red", \ |