lan_rate_stream::average_data

Source: stream/rate/Lan/lan_rate_stream__average_data.pro

 lan_rate_stream::average_data
        Do time averaging on a rate stream.

 Usage:
        strref -> average_data, tptr, trptr, nav, avt

 Arguments:
        tptr    pointer A pointer to the times for the averaged data.
        trptr   pointer A pointer to a reference count for the times array.
        nav     int     The number of averaged times.
        avt     double  The time bounds for the averages.

 Notes:
        It is the responsibility of the calling routine (normally the
        dataset averaging method) to provide a sensible reference
        count.

 History:
        Original: 13/1/00; SJT
        Add avt argument to cope with overlapped averages: 2/2/00; SJT
        Check that it makes sense to average: 12/7/00; SJT
        Do rate averaging here to save a loop: 27/3/01; SJT
        Rewrite algorithm: 28/3/01; SJT



James Tappin 2005-02-04