Tools for fitting measurement traces (:mod:`butools.fitting`) ============================================================= .. module:: butools.fitting To load this package, either start the :func:`BuToolsInit()` script, or execute .. list-table:: :widths: 50 50 * - :code:`addpath('butools/fitting')` - in Matlab, * - :code:`<` - Performs PH distribution fitting using the EM algorithm * - :py:func:`MAPFromTrace ` - Performs MAP fitting using the EM algorithm Functions for evaluating the results of fitting ----------------------------------------------- .. list-table:: :widths: 25 150 * - :py:func:`SquaredDifference ` - Returns the squared difference between two vectors * - :py:func:`RelativeEntropy ` - Returns the relative entropy (aka Kullback–Leibler divergence) of two vectors * - :py:func:`EmpiricalSquaredDifference ` - Returns the squared difference of two continuous functions given by samples and the bounds of the corresponding intervalls * - :py:func:`EmpiricalRelativeEntropy ` - Returns the relative entropy (aka Kullback–Leibler divergence) of two continuous functions given by samples and the bounds of the corresponding intervalls * - :py:func:`LikelihoodFromTrace ` - Evaluates the log-likelihood of a trace with the given PH distribution or MAP .. toctree:: :hidden: PHFromTrace MAPFromTrace SquaredDifference RelativeEntropy EmpiricalSquaredDifference EmpiricalRelativeEntropy LikelihoodFromTrace