Skip to content

scDistributionTool

  scDistributionTool menu callback for distribution fitting

  Example:
  scDistributionTool(hObject, EventData, distribution) 

  fits the distribution to the data in the parent axes

  distribution is a string suitable for input to the mle function in the
  MATLAB Statistics Toolbox

  Distributions will be modeled using the MATLAB Stats Toolbox pdf
  function and the parameters returned by mle. Equality of data and model
  is compared using a Kolmogorov-Smirnov two sample test.

  -------------------------------------------------------------------------
  Author: Malcolm Lidierth 08/08
  Copyright © The Author & King's College London 2008-
  -------------------------------------------------------------------------

  Revisions:
  09.08.08 Bug fix: histarea wrongly calculated with selected data
           Tidy KS test and formatting
           Force integer bin edges for Poisson dist