pyart.util.interval_mean#
- pyart.util.interval_mean(dist, interval_min, interval_max)[source]#
Compute the mean of a distribution within an interval.
Return the average of the array elements which are interpreted as being taken from a circular interval with endpoints given by interval_min and interval_max.
- Parameters:
dist (array like) – Distribution of values within an interval.
interval_min, interval_max (float) – The endpoints of the interval.
- Returns:
mean (float) – The mean value of the distribution.