pyhctsa.operations.distribution.pleft

pyhctsa.operations.distribution.pleft(y, th=0.1)

Distance from the mean at which a given proportion of data are more distant.

Finds the distance from the mean that is exceeded by a given proportion, th, of the time-series data points (deviations above and below the mean are pooled). Normalizes by the standard deviation of the time series.

Parameters:
y : array-like

The input data vector.

th : float, optional

The proportion of data points further from the mean than the returned distance. Default is 0.1.

Returns:

The distance from the mean exceeded by a proportion th of the data, normalized by the standard deviation.

Return type:

float