Format method for legibility (added some spaces in expressions.)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
06ebaca91c
commit
5d915eb6c6
|
@ -309,9 +309,9 @@ public class RandomStringUtilsTest extends junit.framework.TestCase {
|
|||
private double chiSquare(int[] expected, int[] observed) {
|
||||
double sumSq = 0.0d;
|
||||
double dev = 0.0d;
|
||||
for (int i = 0; i< observed.length; i++) {
|
||||
dev = (double)(observed[i] - expected[i]);
|
||||
sumSq += dev*dev/(double)expected[i];
|
||||
for (int i = 0; i < observed.length; i++) {
|
||||
dev = (double) (observed[i] - expected[i]);
|
||||
sumSq += dev * dev / (double) expected[i];
|
||||
}
|
||||
return sumSq;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue