How to convert percentage to z-score of normal distribution in C/C++?
问题 The goal is to say: "These values lie within a band of 95 % of values around the mean in a normal distribution." Now, I am trying to convert percentage to z-score, so then I can get the precise range of values. Something like <lower bound , upper bound> would be enough. So I need something like double z_score(double percentage) { // ... } // ... // according to https://en.wikipedia.org/wiki/68–95–99.7_rule z_score(68.27) == 1 z_score(95.45) == 2 z_score(99.73) == 3 I found an article