Class: Reem::Clusterer
- Inherits:
-
Object
- Object
- Reem::Clusterer
- Defined in:
- lib/reem/clusterer.rb
Constant Summary collapse
- TOLERANCE =
1E-6.freeze
- MAX_ITERATIONS =
1000.freeze
Instance Method Summary collapse
-
#initialize(k = 2, tolerance = TOLERANCE, max_iterations = MAX_ITERATIONS) ⇒ Clusterer
constructor
A new instance of Clusterer.
Constructor Details
#initialize(k = 2, tolerance = TOLERANCE, max_iterations = MAX_ITERATIONS) ⇒ Clusterer
Returns a new instance of Clusterer.
6 7 8 |
# File 'lib/reem/clusterer.rb', line 6 def initialize(k = 2, tolerance = TOLERANCE, max_iterations = MAX_ITERATIONS) end |