Statistical error aggregate functions for PostgreSQL
| LICENSE | readme, license | |
| Makefile | initial | |
| pg_error--1.0.0.sql | use double precision instead of real numbers | |
| pg_error.c | use double precision instead of real numbers | |
| pg_error.control | initial | |
| README.md | typo | |
pg_error
This Postgres extension adds some useful aggregate functions for calculating statistical errors (e.g. MAE, MSE, RMSE).
Installation
- Install libraries and headers for C language Postgres backend development
(e.g.
postgresql-server-dev-17on Ubuntu) -
$ git clone https://codeberg.org/arslee07/pg_error $ cd pg_error $ make $ sudo make install - Activate the extension in your database:
CREATEEXTENSIONpg_error;
Usage Example
CREATETABLEdata(predREAL,actualREAL);-- populate the table with some data...
SELECTmae(pred,actual)FROMdata;License
pg_error is licensed under PostgreSQL License.