Math helpers for calculating trends.
Calculate the mean (average) for some values.
mean [ 1, 2, 3, 4, 5 ]
--> Ok 3Calculate the standard deviation for some values.
mean [ 1, 2, 3, 4, 5 ]
--> Ok 3Get the correlation coefficient for some values. The returned value will be between 0 (no correlation) and 1 (perfect correlation.)
correlation [ (1, 1), (2, 2), (3, 3), (4, 4) ]
--> Ok 1Minimum required values: 2
Under the covers, this is a Pearson correlation coefficient.
Indicate that something has gone wrong in the caculation of a trend line. Specifically:
NeedMoreValues: there was not enough data to calculate a value. The attachedIntis the minimum required.AllZeros: this likely means you've tried to plot a point through a bunch of zeroes, or a values that are very very close to zero. If that's not the case, please open an issue.