1
0
Fork
You've already forked pg_error
0
Statistical error aggregate functions for PostgreSQL
C 90.5%
Makefile 9.5%
2025年05月13日 22:58:52 +09:00
LICENSE readme, license 2025年05月13日 22:50:44 +09:00
Makefile initial 2025年05月13日 21:33:25 +09:00
pg_error--1.0.0.sql use double precision instead of real numbers 2025年05月13日 22:36:39 +09:00
pg_error.c use double precision instead of real numbers 2025年05月13日 22:36:39 +09:00
pg_error.control initial 2025年05月13日 21:33:25 +09:00
README.md typo 2025年05月13日 22:58:52 +09:00

pg_error

This Postgres extension adds some useful aggregate functions for calculating statistical errors (e.g. MAE, MSE, RMSE).

Installation

  1. Install libraries and headers for C language Postgres backend development (e.g. postgresql-server-dev-17 on Ubuntu)
  2. $ git clone https://codeberg.org/arslee07/pg_error
    $ cd pg_error
    $ make
    $ sudo make install
    
  3. 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.