limited accuracy of numbers in string comparisons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@797744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00589c9975
commit
48d014dac1
|
@ -100,12 +100,12 @@ public class MultivariateSummaryStatisticsTest extends TestCase {
|
|||
"min: 1.0, 1.0\n" +
|
||||
"max: 3.0, 3.0\n" +
|
||||
"mean: 2.0, 2.0\n" +
|
||||
"geometric mean: 1.8171205928321394, 1.8171205928321394\n" +
|
||||
"geometric mean: 1.817..., 1.817...\n" +
|
||||
"sum of squares: 14.0, 14.0\n" +
|
||||
"sum of logarithms: 1.791759469228055, 1.791759469228055\n" +
|
||||
"sum of logarithms: 1.791..., 1.791...\n" +
|
||||
"standard deviation: 1.0, 1.0\n" +
|
||||
"covariance: Array2DRowRealMatrix{{1.0,-1.0},{-1.0,1.0}}\n",
|
||||
stats.toString());
|
||||
stats.toString().replaceAll("([0-9]+\\.[0-9][0-9][0-9])[0-9]+", "$1..."));
|
||||
Locale.setDefault(d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue