Making code easier to read

This commit is contained in:
Wise Monk
2015-06-26 16:27:12 +03:00
parent eaa9a2f5d7
commit 310b73bacd

View File

@@ -14,7 +14,9 @@ class Object
end end
class Array class Array
def classification; collect { |v| v.last }; end def classification
collect { |v| v.last }
end
# calculate information entropy # calculate information entropy
def entropy def entropy