Created
June 8, 2026 13:32
-
-
Save ellcom/2eb70e3c12af8769325543dfe96668b4 to your computer and use it in GitHub Desktop.
passmark linear transformation normalization
This file contains hidden or 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
| calculate_normalised_score <- function(passmark, score) { | |
| normalised_score <- 50 | |
| if (score > passmark) { | |
| normalised_score <- 50 + 50 * ( | |
| (score - passmark) / (100 - passmark) | |
| ) | |
| } else if (score < passmark) { | |
| normalised_score <- 50 - 50 * ( | |
| (passmark - score) / passmark | |
| ) | |
| } | |
| round(normalised_score) | |
| } | |
| calculate_normalised_score(60.28, 59.59) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment