Skip to content
Need help with a simple Java programming question
Profile icon

I added a picture of it. I'm mostly unsure about how to count the data in each.
This file cannot be displayed:

You are viewing a single comment. View All
Profile icon

I don't know how you do standard deviation in Java, but here's some pseudo-code:
(std = standard deviation)

int[] findOutlier(int[] data) { int[data.length] outliers; for(int i = 0; i < data.length; i++) { if(isOutsideAverage(data[i], findStd(data) * 3)) { outliers[i] = data[i]; } } return outliers; }

something like that I guess. I haven't used Java in a while, but that hopefully should give you a good idea of what to do.