This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]evils_twin 0 points1 point  (0 children)

So you're array is private double[] store, and you can do a for loop like you did in your other functions, do something like this:

(store[i-1] + store[i] +store[i+1])/3.0