pyhctsa.operations.distribution.mean

pyhctsa.operations.distribution.mean(y, mean_type='arithmetic')

A given measure of location of a data vector.

Parameters:
y : array-like

Input time series or data vector

mean_type : str, optional

Type of mean to calculate. Default is ‘arithmtic’:

  • ’norm’ or ‘arithmetic’: standard arithmetic mean

  • ’median’: middle value (50th percentile)

  • ’geom’: geometric mean (nth root of product)

  • ’harm’: harmonic mean (reciprocal of mean of reciprocals)

  • ’rms’: root mean square (quadratic mean)

  • ’iqm’: interquartile mean (mean of values between Q1 and Q3)

  • ’midhinge’: average of first and third quartiles

Returns:

The calculated mean value.

Return type:

float