rubyfca 0.2.9 → 0.2.10

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Yoichiro Hasebe
1
+ Copyright (c) 2010 Yoichiro Hasebe
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -5,8 +5,8 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "rubyfca"
8
- gem.summary = %Q{TODO: one-line summary of your gem}
9
- gem.description = %Q{TODO: longer description of your gem}
8
+ gem.summary = %Q{Command line Formal Concept Ananlysis (FCA) tool written in Ruby}
9
+ gem.description = %Q{Command line Formal Concept Ananlysis (FCA) tool written in Ruby}
10
10
  gem.email = "yohasebe@gmail.com"
11
11
  gem.homepage = "http://github.com/yohasebe/rubyfca"
12
12
  gem.authors = ["Yoichiro Hasebe"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.2.10
data/bin/rubyfca CHANGED
@@ -79,7 +79,7 @@ end
79
79
  #
80
80
  begin
81
81
  ctxt = FormalContext.new(inputdata, input_type, !opts[:full])
82
- ctxt.calcurate
82
+ ctxt.calculate
83
83
  # rescue => e
84
84
  # puts e
85
85
  # showerror("Source data may have problems. Process aborted.", 1)
data/lib/ruby_graphviz.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  ## lib/ruby_graphviz.rb -- graphviz dot generator library
2
2
  ## Author:: Yoichiro Hasebe (mailto: yohasebe@gmail.com)
3
- ## Copyright:: Copyright 2009 Yoichiro Hasebe
3
+ ## Copyright:: Copyright 2010 Yoichiro Hasebe
4
4
  ## License:: GNU GPL version 3
5
5
 
6
6
  class RubyGraphviz
data/lib/rubyfca.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  ## lib/rubyfca.rb -- Formal Concept Analysis tool in Ruby
2
2
  ## Author:: Yoichiro Hasebe (mailto: yohasebe@gmail.com)
3
3
  ## Kow Kuroda (mailto: kuroda@nict.go.jp)
4
- ## Copyright:: Copyright 2009 Yoichiro Hasebe and Kow Kuroda
4
+ ## Copyright:: Copyright 2010 Yoichiro Hasebe and Kow Kuroda
5
5
  ## License:: GNU GPL version 3
6
6
 
7
7
  # -*- coding: utf-8 -*-
@@ -101,7 +101,7 @@ class FormalContext
101
101
  end
102
102
 
103
103
  ## Apply a formal concept analysis on the matrix
104
- def calcurate
104
+ def calculate
105
105
  @concepts, @extM, @intM = ganter_alg(@matrix)
106
106
  @relM, @reltrans, @rank = create_rel(@intM)
107
107
  @gammaM, @muM = gammaMu(@extM, @intM, @matrix)
@@ -194,8 +194,8 @@ class FormalContext
194
194
  a1 = extension[0].join("")
195
195
  a2 = extension[1].join("")
196
196
  if a1 == a2
197
- shift extension
198
- shift intension
197
+ extension.shift
198
+ intension.shift
199
199
  anzCpt -= 1
200
200
  end
201
201
 
data/rubyfca.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubyfca}
8
- s.version = "0.2.9"
9
- s.required_ruby_version = ">=1.8.6"
8
+ s.version = "0.2.10"
9
+
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Yoichiro Hasebe", "Kow Kuroda"]
12
- s.date = %q{2009-09-14}
11
+ s.authors = ["Yoichiro Hasebe"]
12
+ s.date = %q{2010-01-17}
13
13
  s.default_executable = %q{rubyfca}
14
14
  s.description = %q{Command line Formal Concept Ananlysis (FCA) tool written in Ruby}
15
15
  s.email = %q{yohasebe@gmail.com}
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
38
38
  s.rdoc_options = ["--charset=UTF-8"]
39
39
  s.require_paths = ["lib"]
40
40
  s.rubygems_version = %q{1.3.5}
41
- s.summary = %q{Command line Formal Concept Analysis (FCA) tool written in Ruby}
41
+ s.summary = %q{Command line Formal Concept Ananlysis (FCA) tool written in Ruby}
42
42
  s.test_files = [
43
43
  "test/rubyfca_test.rb",
44
44
  "test/test_helper.rb"
@@ -57,3 +57,4 @@ Gem::Specification.new do |s|
57
57
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
58
58
  end
59
59
  end
60
+
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe
8
- - Kow Kuroda
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
11
 
13
- date: 2009-09-14 00:00:00 +09:00
12
+ date: 2010-01-17 00:00:00 +09:00
14
13
  default_executable: rubyfca
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
@@ -60,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
59
  requirements:
61
60
  - - ">="
62
61
  - !ruby/object:Gem::Version
63
- version: 1.8.6
62
+ version: "0"
64
63
  version:
65
64
  required_rubygems_version: !ruby/object:Gem::Requirement
66
65
  requirements:
@@ -74,7 +73,7 @@ rubyforge_project:
74
73
  rubygems_version: 1.3.5
75
74
  signing_key:
76
75
  specification_version: 3
77
- summary: Command line Formal Concept Analysis (FCA) tool written in Ruby
76
+ summary: Command line Formal Concept Ananlysis (FCA) tool written in Ruby
78
77
  test_files:
79
78
  - test/rubyfca_test.rb
80
79
  - test/test_helper.rb