From 8269ece153d9f8d1a8a5fb7238adce6aa4226f99 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Wed, 4 Dec 2024 22:32:12 +0300 Subject: added vtek7 --- tempalte/Makefile | 2 +- tempalte/data | 0 tempalte/main.cpp | 12 ++++++++---- tempalte/plots.gp | 11 +++++------ 4 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 tempalte/data (limited to 'tempalte') 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 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; +using table = prak::table; +using f64p = prak::pvalue; +using f64v = std::vector; +using vecarg = const std::vector &; +using argvec = const std::vector &; -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", \ -- cgit v1.2.3-70-g09d2