postgresql/contrib/statmath
Jan Wieck 31a020f6eb Added CVS header
Jan
2000-07-04 14:37:32 +00:00
..
Makefile New contrib module for statistical mathematics 2000-07-04 14:36:03 +00:00
README.statmath New contrib module for statistical mathematics 2000-07-04 14:36:03 +00:00
statmath.c Added CVS header 2000-07-04 14:37:32 +00:00
statmath.sql.in New contrib module for statistical mathematics 2000-07-04 14:36:03 +00:00

README.statmath

Statistical aggregate functions for PostgreSQL.

This module provides some aggregate functions for statistical 
mathematics. A new datatype holding two double precision 
floating point values is required by them. 

The aggregates are:

average(float8)         average value computed by

                                   n
                                  ___
                        _    1    \
                        x = ---    >  x
                             n    /__  i
                                  i=1


variance(float8         variance computed by

                                    n
                                   ___
                         2    1    \         _ 2
                        s  = ---    >  (x  - x) 
                             n-1   /__   i
                                   i=1



stddev(float8)          standard deviation computed by

                                 _____
                                /  2 
                        s =    /  s
                             \/


-- 
Jan Wieck <JanWieck@Yahoo.com>