lib/rubyfca.rb in rubyfca-0.2.9 vs lib/rubyfca.rb in rubyfca-0.2.10
- old
+ new
@@ -1,9 +1,9 @@
## lib/rubyfca.rb -- Formal Concept Analysis tool in Ruby
## Author:: Yoichiro Hasebe (mailto: yohasebe@gmail.com)
## Kow Kuroda (mailto: kuroda@nict.go.jp)
-## Copyright:: Copyright 2009 Yoichiro Hasebe and Kow Kuroda
+## Copyright:: Copyright 2010 Yoichiro Hasebe and Kow Kuroda
## License:: GNU GPL version 3
# -*- coding: utf-8 -*-
require 'csv'
@@ -99,11 +99,11 @@
end
newary
end
## Apply a formal concept analysis on the matrix
- def calcurate
+ def calculate
@concepts, @extM, @intM = ganter_alg(@matrix)
@relM, @reltrans, @rank = create_rel(@intM)
@gammaM, @muM = gammaMu(@extM, @intM, @matrix)
end
@@ -192,11 +192,11 @@
end
a1 = extension[0].join("")
a2 = extension[1].join("")
if a1 == a2
- shift extension
- shift intension
+ extension.shift
+ intension.shift
anzCpt -= 1
end
c = []
0.upto(anzCpt) do |i|