Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

calculating the percentile in java

for (i=0, sum=0; i<n; i++) sum += Number[i];
tot = sum;
for (i=0, sum=0; i<n && sum < 0.95*tot; i++) sum += Number[i];
// i is about it
Source by softwareengineering.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #calculating #percentile #java
ADD COMMENT
Topic
Name
3+1 =