Pass a grade, get a better one.
Bijective translation (obtained by generating a second degree polynomial on the range [minimumGrade, maximumGrade]) to slightly exhale grades while keeping order.
Pass a grade, pass an exaltation rate and get a better grade while keeping your grades order for fairness
npm i exalt-grade
const exaltGrade = require("exalt-grade").exaltGrade;
or
import {exaltGrade} from "exalt-grade";
const betterGrade = exaltGrade(oldGrade);
By default exaltation is 28 and grades are between 0 and 5, but you can pass new values for the three of them
const betterGrade = exaltGrade(oldGrade, exaltation, minimumGrade, maximumGrade);
example :
const betterGrade = exaltGrade(oldGrade, 35, 0, 100);
- Define functions
- Build mathematic model (polynomial translation, acts like a bijective translation on the considered interval)
- Allow to pass an array of grades
- Only return one decimal max
- Build the npm package with js + ts
- Write the doc
- Unit testing