Astervista

Astervista / BasicStatistic / 0.1.0

README.md

Basic statistic operations

Input: 2D array of points with x & y position, and a integer (range 0-6) to identify the operation to execute:
0: Arithmetic average. The result is a Map with "X" value as the average of Xs and "Y" value as the average of Ys.
1: Geometric average. The result is a Map with "X" value as the geometric average of Xs and "Y" value as the geometric average of Ys.
2: Armonic average. The result is a Map with "X" value as the armonic average of Xs and "Y" value as the armonic average of Ys.
3: RMS. The result is a Map with "X" value as the RMS of Xs and "Y" value as the RMS of Ys.
4: Standard deviation. The result is a Map with "X" value as the standard deviation of Xs and "Y" value as the standard deviation of Ys.
5: Linear regression. The result is a Map with "m" value as the slope and "q" value as the y offset at 0.
6: Quadratic regression. The result is a Map with "a" value as the coefficient of x²