flash_extensions 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 510387470171f5e46cd3491eb45c3194de942a7e
|
4
|
+
data.tar.gz: c51ab2da76f809b3a07987fa9ab4894a5f49dac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 986e4bdde3a3ced737e9ac0d2f9854a095a8344f0596cb6485dc3a0f650cb454e559f72b1f46811862d11e5cd2dabd95d7d360deb0c088f1b8db4f24ce36bf75
|
7
|
+
data.tar.gz: 07bcc17e2eba9f8506f5c7d18bd9359f21179871c18a044259c2f7a8563db52f834790b414b1d5ef5f0d72202747a5cec5e640e58b36a91aebd788a35ddc707b
|
@@ -133,7 +133,7 @@ module Enumerable
|
|
133
133
|
def variance
|
134
134
|
collection_length = length
|
135
135
|
|
136
|
-
return 0 if collection_length
|
136
|
+
return 0 if collection_length <= 1
|
137
137
|
sum = inject(0) { |accumulator, value| accumulator + (value - mean) ** 2 }
|
138
138
|
sum / (collection_length.to_f - 1)
|
139
139
|
end
|