Skip to content

Latest commit

 

History

History

helpers

Utilities for analyzing simulation output

Helper functions

  • ci_t - Obtain a t-confidence interval.

  • ci_willink - Obtain a Willink confidence interval (accounts for skewness).

  • dirnd - Lists files ignoring folders.

  • hist_edges - Finds the edges for an histogram (helper function used by other functions).

  • is_octave - Checks if the code is running in Octave or MATLAB.

  • ltxp - Formats a p-value for LaTeX using the ltxpv function, setting 'minpv' to 0.001 (i.e. truncating p-values to 0.001) and 'ulims' to [0 0] (i.e. disabling underlines).

  • ltxpv - Formats a p-value for LaTeX, using exponents and/or truncating very low p-values, and underlining/double-underlining p-values below user specified limits (defaulting to 0.05 for underline and 0.01 for double-underline). Requires siunitx and ulem LaTeX packages.

  • ltxr - Formats a real value for LaTeX (mainly a helper function used by other functions, requires LaTeX siunitx package)

  • mavg - Applies a moving average (low-pass) filter to vector x using a window of size w.

  • parse_output_names - Determine effective output names and number of outputs.

  • pval_adjust - Adjust p-values for multiple comparisons.

  • qqcalc - Calculates the (normalized) points for a QQ-plot of the specified sample data versus the normal distribution.

  • tikqq - Creates a QQ-plot in TikZ (LaTeX).

  • tikhist - Creates an histogram in TikZ (LaTeX).