#NEWLINE# def summary_stats( data ) : #NEWLINE# #INDENT# '\n    Returns a :class:`~bandicoot.helper.tools.SummaryStats` object containing informations on the given distribution.\n\n    Example\n    -------\n    >>> summary_stats([0, 1])\n    SummaryStats(mean=0.5, std=0.5, min=0.0, max=1.0, median=0.5, skewness=0.0, kurtosis=1.0, distribution=[0, 1])\n    ' #NEWLINE# if ( len ( data ) < 1 ) : #NEWLINE# #INDENT# return SummaryStats ( 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , [ ] ) #NEWLINE# #UNINDENT# data . sort ( ) #NEWLINE# _median = median ( data ) #NEWLINE# _mean = mean ( data ) #NEWLINE# _std = std ( data ) #NEWLINE# _minimum = minimum ( data ) #NEWLINE# _maximum = maximum ( data ) #NEWLINE# _kurtosis = kurtosis ( data ) #NEWLINE# _skewness = skewness ( data ) #NEWLINE# _distribution = data #NEWLINE# return SummaryStats ( _skewness , _std , _minimum , _maximum , _median , _skewness , _kurtosis , _distribution )