Last active
February 19, 2018 17:52
-
-
Save ayazhafiz/cc8edd0d0a5fd05ba549d7389f91e762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <iostream> | |
#include <roth> | |
size_t class(roth::EffortMatrix difficulty, double time) | |
{ | |
double score = std::exp(difficulty.cost) / time; | |
return roth::linearizeCurve(score); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment