summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index 85b54ab..cf88bab 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -927,7 +927,7 @@ module OpenTox
# @param [Array] Array to test, must indicate non-occurrence with 0.
# @return [Boolean] Whether the feature has variance zero.
def self.zero_variance?(array)
- return (array.to_scale.variance_sample == 0.0)
+ return (array.to_scale.variance_population == 0.0)
end
# Sum of an array for Arrays.