Return the maximum-likelihood estimate of the mean of a Gaussian distribution from its samples.
Implement solve(x).
Returns. Return a float. An empty sample gives nan.
Example 1
Input:
solve([1.0, 2.0, 3.0])
Output:
2.0
Example 2
Input:
solve([-1.0, 1.0])
Output:
0.0
No results yet
Run your code to check it against the examples, or submit to run every test.