Skip to content

Instantly share code, notes, and snippets.

@manegame
Created May 26, 2020 16:13
Show Gist options
  • Save manegame/d4e3575c4bb47220bf9591c85ba6a8b8 to your computer and use it in GitHub Desktop.
Save manegame/d4e3575c4bb47220bf9591c85ba6a8b8 to your computer and use it in GitHub Desktop.
OCEAN mapping on an X-Y scale
// Start with an OCEAN model, for example:
// LGBTI
// O: 75
// C: 30
// E: 75
// A: 45
// N: 65
// Here we assign the weights for each of the scales
// SCALE X
// Traditional – Progressive
factor.x.o = 0.8,
factor.x.c = 0.7,
factor.x.e = 0.6,
factor.x.a = 0.3,
factor.x.n = 0.2
// SCALE Y
// Me – We
factor.y.o = 1,
factor.y.c = 0.2,
factor.y.e = 0.3,
factor.y.a = 0.8,
factor.y.n = 0.1
// Multiply all values with their corresponding factors and return an average
X = (O * factor.x.o + C * factor.x.c + E * factor.x.e + A * factor.x.a + N * factor.x.n) / 5
Y = (O * factor.y.o + C * factor.y.c + E * factor.y.e + A * factor.y.a + N * factor.y.n) / 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment