Average_Value

Synopsis

    #include "average.h"
    
    double Average_Value( Average_Data *data );
    void Average_Point( Average_Data *data, double pt );
    

Description

Average_Point() and Average_Value() are used together to simplify realtime averaging. The Average_Data data structure holds the current sum and number of data points. Average_Value() resets the count and sum.

Returns

Average_Value() returns the average of points previously passed to Average_Point().

See Also

Average Functions.

Source File

/usr/local/src/nortlib/average.c

Alphabetical List
Subject List
Return to Manuals Page
webmaster@huarp.harvard.edu
Copyright 2001 by the President and Fellows of Harvard College