Synopsis: plot_linear_distribution [ -sgn | -abs ] <distribution> { <distribution> }
Plots a linear distribution.
The plot is output to file in Latex format. It will be given an appropriate name and written to the plots
directory. If this directory does not exist, it will be created. If the plot already exists, an error will be reported.
Arguments <distribution>
where
<distribution>
is the path to the distribution
Flags specifying the plot appearance (defaults to -sgn
):
-sgn
draw a plot in the signed logarithm of the argument-abs
draw a plot in the absolute value of the logarithm of the argument
To compile the source for the plot, you may use pdflatex
as exemplified below:
$ ./plot_linear_distribution distributions/linear-distribution-det-dim-2048-d-m-2048-s-30.txt
Importing the distribution from "distributions/linear-distribution-det-dim-2048-d-m-2048-s-30.txt"...
Writing the plot to "plots/plot-linear-distribution-d-m-2048-s-30.tex"...
Done.
$ cd plots
$ pdflatex plot-linear-distribution-d-m-2048-s-30.tex
(..)
You may of course also use other versions of Latex such as xelatex
. Note that the Latex source requires Tikz.
When solving discrete logarithm problems, the plot generated is in the signed logarithm of the argument
When solving order-finding problems, the plot generated is in the signed logarithm of the argument