IEEE754 extension.

This commit is contained in:
Nuno Cruces
2023-12-30 10:44:50 +00:00
parent a3c5f47d79
commit fab70ddbec
10 changed files with 68 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
// Package hash provides cryptographic hash functions.
//
// Functions:
// Provided functions:
// - md4(data)
// - md5(data)
// - sha1(data)

View File

@@ -1,6 +1,6 @@
// Package stats provides aggregate functions for statistics.
//
// Functions:
// Provided functions:
// - stddev_pop: population standard deviation
// - stddev_samp: sample standard deviation
// - var_pop: population variance
@@ -9,8 +9,16 @@
// - covar_samp: sample covariance
// - corr: correlation coefficient
//
// These join the [Built-in Aggregate Functions]:
// - count: count rows/values
// - sum: sum values
// - avg: average value
// - min: minimum value
// - max: maximum value
//
// See: [ANSI SQL Aggregate Functions]
//
// [Built-in Aggregate Functions]: https://sqlite.org/lang_aggfunc.html
// [ANSI SQL Aggregate Functions]: https://www.oreilly.com/library/view/sql-in-a/9780596155322/ch04s02.html
package stats

45
ext/stats/todo.md Normal file
View File

@@ -0,0 +1,45 @@
# ANSI SQL Aggregate Functions
https://www.oreilly.com/library/view/sql-in-a/9780596155322/ch04s02.html
## Built in
- [x] `COUNT(*)`
- [x] `COUNT(expression)`
- [x] `SUM(expression)`
- [x] `AVG(expression)`
- [x] `MIN(expression)`
- [x] `MAX(expression)`
https://sqlite.org/lang_aggfunc.html
## Implemented
- [x] `STDDEV_POP(expression)`
- [x] `STDDEV_SAMP(expression)`
- [x] `VAR_POP(expression)`
- [x] `VAR_SAMP(expression)`
- [x] `COVAR_POP(dependent, independent)`
- [x] `COVAR_SAMP(dependent, independent)`
- [x] `CORR(dependent, independent)`
## Linear regression
- [ ] `REGR_AVGX(dependent, independent)`
- [ ] `REGR_AVGY(dependent, independent)`
- [ ] `REGR_COUNT(dependent, independent)`
- [ ] `REGR_INTERCEPT(dependent, independent)`
- [ ] `REGR_R2(dependent, independent)`
- [ ] `REGR_SLOPE(dependent, independent)`
- [ ] `REGR_SXX(dependent, independent)`
- [ ] `REGR_SXY(dependent, independent)`
- [ ] `REGR_SYY(dependent, independent)`
## Other
- [ ] `CUME_DIST(value_list) WITHIN GROUP (ORDER BY sort_list)`
- [ ] `RANK(value_list) WITHIN GROUP (ORDER BY sort_list)`
- [ ] `DENSE_RANK(value_list) WITHIN GROUP (ORDER BY sort_list)`
- [ ] `PERCENT_RANK(value_list) WITHIN GROUP (ORDER BY sort_list)`
- [ ] `PERCENTILE_CONT(percentile) WITHIN GROUP (ORDER BY sort_list)`
- [ ] `PERCENTILE_DISC(percentile) WITHIN GROUP (ORDER BY sort_list)`

View File

@@ -1,13 +1,4 @@
ieee754
ieee754_exponent
ieee754_from_blob
ieee754_inc
ieee754_mantissa
ieee754_to_blob
zipfile
zipfile_cds
sqlar_compress
sqlar_uncompress
remember
sqlar_uncompress