buncher 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/buncher.rb +2 -2
- metadata +1 -1
data/lib/buncher.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'buncher/buncher'
|
2
2
|
module Buncher
|
3
|
-
VERSION = "1.0.
|
3
|
+
VERSION = "1.0.15"
|
4
4
|
# your cluster needs to look like this. Make a bunch of them and pass them in. It's ok to pass in empty elements to start.
|
5
5
|
class Cluster
|
6
6
|
attr_accessor :elements
|
@@ -90,7 +90,7 @@ module Buncher
|
|
90
90
|
if min_fKs.empty?
|
91
91
|
solutions.select {|key| min_fKs.include?(key)}.sort
|
92
92
|
else
|
93
|
-
|
93
|
+
{1.0 => elements.map {|ele| Cluster.new(ele,[ele])}} # ie, not clustered at all
|
94
94
|
end
|
95
95
|
elsif !min_fKs.empty?
|
96
96
|
solutions[min_fKs.first]
|