Skip to content

Instantly share code, notes, and snippets.

@ayazhafiz
Last active February 19, 2018 17:52
Show Gist options
  • Save ayazhafiz/cc8edd0d0a5fd05ba549d7389f91e762 to your computer and use it in GitHub Desktop.
Save ayazhafiz/cc8edd0d0a5fd05ba549d7389f91e762 to your computer and use it in GitHub Desktop.
#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