function StdDev(int[] calldata x, int[] calldata weights, uint8 precision) returns the sample standard deviation.
The length of x and weights must be equal. Precision representes the number of decimal places between 0 and 18. It is applied to x, weights and the output.