Creates a Flex instance given the input parameter and plots it. Refer to the Flex documentation for the parameters.
how many bins should be used
number of samples
whether a cumulative histogram should be plotted
root directory for all plots
whether a histogram should be plotted
whether the reference PDF should be plotted
efficiency of the Flex algorithm
whether a CSV of the sampled values should be saved
step size of the points in the plot
CFlex glues the Flex algorithm to plotting code and allows to visualize the resulting distribution and its hat and squeeze plots. This is only intended for testing and visualizing the Flex algorithm.