db_clustering 0.1.16 → 0.1.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7ff8128a19abfa02a7e29d7870f28e444bcfd57
4
- data.tar.gz: 2f0c8cf6f8fd233de343d1838c9026a230f8e3c9
3
+ metadata.gz: a4acf6872648c6b5ecf2dcda7b2d294e6ded20d9
4
+ data.tar.gz: 1251fc75a6b3bd5e0bd1464c9f6baae6d2ced5da
5
5
  SHA512:
6
- metadata.gz: 3025f12355a8d8716abba10f87819526831aea091c106213cdd5407a0d0a0d1d5f450d70bddeffef3134736463ee5e988c08f48f5c2151eef7c619e3074ec857
7
- data.tar.gz: 2b05b6b4fc0146a4e320eb202d83ad10305fc8696af6dead82b0da076e905b4ff76b118fa56b718047eba007d23fb7af2ed6b78bd7501cb61c2e908aa1908bf2
6
+ metadata.gz: 8759c921d9332af4db4bc5c756b8672007d317c38f6c8ff3218d0665750c1e39dbfb073f72339dd759e41fabf751525d9b8f9026f242fb338555c9cb12d5e38a
7
+ data.tar.gz: fa83d469200fa24af4c0a182e893c96f34d4bf97b8a99392856b11d30e7dd6038d05cbbbab8ef5f6248543b5ff59b252db110f9fc4acc3a165019396d73643b1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
1
+ 0.1.17
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: db_clustering 0.1.16 ruby lib
5
+ # stub: db_clustering 0.1.17 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "db_clustering"
9
- s.version = "0.1.16"
9
+ s.version = "0.1.17"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Cihat G\u{fc}nd\u{fc}z"]
14
- s.date = "2015-07-18"
14
+ s.date = "2015-07-20"
15
15
  s.description = "Big-Data clustering algorithms in Ruby (on Rails). Currently only supports DBSCAN algorithm and ActiveRecord database."
16
16
  s.email = "CihatGuenduez@posteo.de"
17
17
  s.extra_rdoc_files = [
@@ -38,12 +38,7 @@ module DbClustering
38
38
 
39
39
  if @debug
40
40
  point_type_string = point.is_edge_point? ? 'E' : point.is_core_point? ? 'C' : 'N'
41
-
42
- if point.cluster
43
- print "(#{point_type_string}|#{point.cluster.id}|#{point.cluster.points.count})"
44
- else
45
- print "(#{point_type_string}|nil|0)"
46
- end
41
+ print point_type_string
47
42
 
48
43
  progress = (current_index + 1) * 100 / points_count.to_f
49
44
 
@@ -53,6 +48,11 @@ module DbClustering
53
48
  end
54
49
  end
55
50
  end
51
+
52
+ if @debug
53
+ print "\n"
54
+ puts "#{clusters.count} clusters found"
55
+ end
56
56
  end
57
57
 
58
58
  def expand_cluster(point, neighbors, max_distance)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_clustering
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cihat Gündüz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-18 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord