1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-21 11:13:54 +03:00

Updates to the documentation. Changed version number to 2.4.0-beta1 (CVS 417)

FossilOrigin-Name: 36a8fe0ad0ee2a67afafc04125dcc085ec1b5a13
This commit is contained in:
drh
2002-03-04 02:26:15 +00:00
parent 4ff6dfa7de
commit ef2daf547d
9 changed files with 268 additions and 61 deletions

View File

@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: func.c,v 1.13 2002/03/02 19:00:31 drh Exp $
** $Id: func.c,v 1.14 2002/03/04 02:26:16 drh Exp $
*/
#include <ctype.h>
#include <math.h>
@@ -242,6 +242,7 @@ struct StdDevCtx {
double sum2; /* Sum of the squares of terms */
};
#if 0 /* Omit because math library is required */
/*
** Routines used to compute the standard deviation as an aggregate.
*/
@@ -263,6 +264,7 @@ static void stdDevFinalize(sqlite_func *context){
sqrt((p->sum2 - p->sum*p->sum/rN)/(rN-1.0)));
}
}
#endif
/*
** The following structure keeps track of state information for the
@@ -396,7 +398,9 @@ void sqliteRegisterBuildinFunctions(sqlite *db){
{ "avg", 1, sumStep, avgFinalize },
{ "count", 0, countStep, countFinalize },
{ "count", 1, countStep, countFinalize },
#if 0
{ "stddev", 1, stdDevStep, stdDevFinalize },
#endif
};
int i;