feat: add plots for n m k trends
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
set datafile separator comma
|
||||
set terminal pngcairo size 1000,700 enhanced font "Arial,12"
|
||||
set output "plots/png/fpp_vs_k.png"
|
||||
|
||||
set title "Bloom filter false-positive rate vs k (n=10000, m=100000)"
|
||||
set xlabel "hash functions (k)"
|
||||
set ylabel "false-positive rate"
|
||||
set grid
|
||||
set key outside
|
||||
|
||||
plot "plots/data/bloom_filter_stats.csv" using (($1 == 10000 && $2 == 100000) ? $3 : 1/0):4 every ::1 with linespoints title "theoretical", \
|
||||
"plots/data/bloom_filter_stats.csv" using (($1 == 10000 && $2 == 100000) ? $3 : 1/0):5 every ::1 with linespoints title "filter estimate", \
|
||||
"plots/data/bloom_filter_stats.csv" using (($1 == 10000 && $2 == 100000) ? $3 : 1/0):6 every ::1 with linespoints title "observed"
|
||||
@@ -0,0 +1,16 @@
|
||||
set datafile separator comma
|
||||
set terminal pngcairo size 1000,700 enhanced font "Arial,12"
|
||||
set output "plots/png/fpp_vs_m.png"
|
||||
|
||||
set title "Bloom filter false-positive rate vs m (n=10000, k=5)"
|
||||
set xlabel "filter size in bits (m)"
|
||||
set ylabel "false-positive rate"
|
||||
set logscale x 10
|
||||
set logscale y 10
|
||||
set yrange [1e-5:0.2]
|
||||
set grid
|
||||
set key outside
|
||||
|
||||
plot "plots/data/bloom_filter_stats.csv" using (($1 == 10000 && $3 == 5) ? $2 : 1/0):4 every ::1 with linespoints title "theoretical", \
|
||||
"plots/data/bloom_filter_stats.csv" using (($1 == 10000 && $3 == 5) ? $2 : 1/0):5 every ::1 with linespoints title "filter estimate", \
|
||||
"plots/data/bloom_filter_stats.csv" using (($1 == 10000 && $3 == 5) ? $2 : 1/0):6 every ::1 with linespoints title "observed"
|
||||
@@ -0,0 +1,14 @@
|
||||
set datafile separator comma
|
||||
set terminal pngcairo size 1000,700 enhanced font "Arial,12"
|
||||
set output "plots/png/fpp_vs_n.png"
|
||||
|
||||
set title "Bloom filter false-positive rate vs n (m=100000, k=5)"
|
||||
set xlabel "inserted keys (n)"
|
||||
set ylabel "false-positive rate"
|
||||
set logscale x 10
|
||||
set grid
|
||||
set key outside
|
||||
|
||||
plot "plots/data/bloom_filter_stats.csv" using (($2 == 100000 && $3 == 5) ? $1 : 1/0):4 every ::1 with linespoints title "theoretical", \
|
||||
"plots/data/bloom_filter_stats.csv" using (($2 == 100000 && $3 == 5) ? $1 : 1/0):5 every ::1 with linespoints title "filter estimate", \
|
||||
"plots/data/bloom_filter_stats.csv" using (($2 == 100000 && $3 == 5) ? $1 : 1/0):6 every ::1 with linespoints title "observed"
|
||||
Reference in New Issue
Block a user