Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prillan/haskell-glicko
Haskell implementation of Glicko-2
https://github.com/prillan/haskell-glicko
glicko
Last synced: 15 days ago
JSON representation
Haskell implementation of Glicko-2
- Host: GitHub
- URL: https://github.com/prillan/haskell-glicko
- Owner: Prillan
- License: gpl-3.0
- Created: 2015-11-10T12:33:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T20:14:51.000Z (almost 4 years ago)
- Last Synced: 2024-10-28T00:21:27.333Z (2 months ago)
- Topics: glicko
- Language: Haskell
- Homepage:
- Size: 34.2 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Glicko
[![Hackage](https://img.shields.io/hackage/v/glicko.svg)](https://hackage.haskell.org/package/glicko)
[![Dependencies Status](http://img.shields.io/hackage-deps/v/glicko.svg)](http://packdeps.haskellers.com/feed?needle=glicko)Haskell implementation of the
[Glicko-2 rating algorithm](http://glicko.net/glicko/glicko2.pdf) by Professor Mark E. Glickman.## Building
Easiest is using stack.
```
$ git clone https://github.com/Prillan/haskell-glicko.git
$ cd haskell-glicko
$ stack setup
$ stack build
```## Examples
The test case from the Glicko-2 paper is included in `test/Paper.hs`.
```
$ stack ghci
*Main> :l test/Paper.hs
*Paper> :m + Data.Default
*Paper Data.Default> mapM_ print $ compute players matches def
Player {playerId = 1
, playerRating = 1464.0506705393013
, playerDev = 151.51652412385727
, playerVol = 5.9995984286488495e-2
, playerInactivity = 0
, playerAge = 1}
Player {playerId = 2
, playerRating = 1398.1435582337338
, playerDev = 31.67021528115062
, playerVol = 5.999912372888531e-2
, playerInactivity = 0
, playerAge = 1}
Player {playerId = 3
, playerRating = 1570.394740240854
, playerDev = 97.70916852200307
, playerVol = 5.999941947199381e-2
, playerInactivity = 0
, playerAge = 1}
Player {playerId = 4
, playerRating = 1784.4217901320874
, playerDev = 251.56556453224735
, playerVol = 5.9999011763670944e-2
, playerInactivity = 0
, playerAge = 1}
```