onedclusterer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.travis.yml +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/lib/onedclusterer.rb +0 -0
- data/lib/onedclusterer/ckmeans.rb +2 -2
- data/lib/onedclusterer/clusterer.rb +0 -0
- data/lib/onedclusterer/jenks.rb +0 -0
- data/lib/onedclusterer/version.rb +1 -1
- data/onedclusterer.gemspec +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20a6af7d4e3b3b1ad72458ccb3b49f38b907f767
|
4
|
+
data.tar.gz: 7b4c3bb5e0417ca0ef376185da766c7e917400f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76815bcb59367abd81df6c57f6678295b86101bb63fdc542b235575581f9abf40bf1daa190217cb5cafaa81a4e4bb7ff69b00221fea3f83cd64ad8e192516a34
|
7
|
+
data.tar.gz: eb16ca7177745b591538b7d776e7cf22c25caceecd0f0428f0e3eb977fcd555430da57645b8959f678a9f092bfd23bd331111e18f7f5ef55a35b2765d30d62e0
|
data/.gitignore
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/bin/console
CHANGED
File without changes
|
data/bin/setup
CHANGED
File without changes
|
data/lib/onedclusterer.rb
CHANGED
File without changes
|
@@ -32,7 +32,7 @@ module OnedClusterer
|
|
32
32
|
class Ckmeans
|
33
33
|
include Clusterer
|
34
34
|
|
35
|
-
attr_reader :data, :kmin, :kmax
|
35
|
+
attr_reader :data, :kmin, :kmax
|
36
36
|
|
37
37
|
# Input:
|
38
38
|
# data -- a vector of numbers, not necessarily sorted
|
@@ -52,7 +52,7 @@ module OnedClusterer
|
|
52
52
|
raise ArgumentError, "kmax can not be greater than data size." if kmax > @data_size
|
53
53
|
end
|
54
54
|
|
55
|
-
# returns clustered data as array
|
55
|
+
# returns clustered data as array
|
56
56
|
def clusters
|
57
57
|
@clusters_result ||=begin
|
58
58
|
if @unique <= 1 # A single cluster that contains all elements
|
File without changes
|
data/lib/onedclusterer/jenks.rb
CHANGED
File without changes
|
data/onedclusterer.gemspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onedclusterer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamdi Akoguz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.4.6
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: a tiny ruby library for one-dimensional clustering methods.
|