Closed Lu-Jichen closed 3 years ago
I have to reject this PR, see various comments.
OK, let's do it like this. I'll merge this, fix all the issues I've mentioned and then we can discuss the results. If you're still willing to have another go at https://github.com/jOOQ/jOOL/pull/386, we can do that based on the improvements if you're interested.
Fixed #360 Since the standard deviation and the variance have similar calculation process, there is an extracted method named "getVariance", which calculate the variance of the given data.
As for the test cases, there includes the empty Seq test, and the test with self defined class, and other basic test. All the tests have passed with no conflicts with other tests.