Skip to content
/ mkt Public

Mean kinetic temperature aggregate function for postgres

License

Notifications You must be signed in to change notification settings

zelti/mkt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mkt

Mean kinetic temperature aggregate function for postgres

input and output temperature in celsius

installation

[Linux]

  1. open your terminal an type
  psql -h localhost -U postgres < MKT_function.sql

Usage example

CREATE TABLE data(temp numeric);
INSERT INTO data VALUES (2), (2), (5), (8),(8),(8),(8);

select mkt(temp) from data;

Result
mkt  
------
 6.25

External links

Wikipedia Temperatura cinética media

About

Mean kinetic temperature aggregate function for postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published