
A query to the selected PitchTier object.
the mean of the curve within a specified time window.
The curve consists of a sequence of line segments. The contribution of the line segment from (t_{1}, f_{1}) to (t_{2}, f_{2}) to the area under the curve is
1/2 (f_{1} + f_{2}) (t_{2} – t_{1}) 
The mean is the sum of these values divided by toTime – fromTime.
For a PitchTier that was created from a Pitch object, this command gives the same result as Get mean.... for the original Pitch object (but remember that the median, as available for Pitch objects, is more robust).
To get the mean of the pitch points, i.e. not weighted by the durations of the line pieces, Use PitchTier: Get mean (points)... instead.
© ppgb, June 18, 2017