pyhctsa.operations.distribution.trimmed_mean

pyhctsa.operations.distribution.trimmed_mean(x, p_exclude=0.0)

Mean of the trimmed time series.

Returns the mean of the time series after removing a specified percentage of the highest and lowest values.

Parameters:
x : array-like

The input time series or data vector

p_exclude : float, optional

The percentage of highest and lowest values to exclude from the mean calculation (default is 0.0, which gives the standard mean)

Returns:

The mean of the trimmed time series.

Return type:

float