I have an array of length:
int lengthOfArray = 5;
lengthOfArray = ((lengthOfArray * (lengthOfArray - 1)) / 2);
System.out.println(lengthOfArray);
With an array of length 5, this will return that there are ten possible outcomes for a similar operator being used on all of the numbers, with no two numbers being paired again.
I need to come up with an efficient algorithm to calculate all of the sums of the numbers, throw them into an array, add them together, and divide by the number of entries to get the average y-axis change for the day.
After that, I plan to develop a pseudo-intelligent prediction method for guessing the next values.
Has anyone ever done anything like this before? I'm working on a Weather Analysis software based on logs generated by a program I wrote, using JSoup, to parse and interpret into a log file. Goal is to have it running the analysis as it's working on the download of new weather information.