fuzzyrb 1.2.1 → 1.2.2
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/History.txt +7 -0
- data/Manifest.txt +1 -1
- data/Rakefile +5 -0
- data/examples/compare_models.rb +2 -2
- data/lib/fuzzy.rb +1 -1
- data/test/{test_fuzzy.rb → fuzzy_test.rb} +3 -2
- data/test/test_fuzzy_implication.rb +3 -1
- data/test/test_fuzzy_rule.rb +1 -0
- data/test/test_fuzzy_set.rb +1 -0
- data/test/test_point.rb +1 -0
- data.tar.gz.sig +0 -0
- metadata +2 -3
- metadata.gz.sig +0 -0
data/History.txt
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
== 1.2.2 / 2007-11-19
|
|
2
|
+
|
|
3
|
+
* Bugfix: little changes in test, so now they can be run in any of the ways:
|
|
4
|
+
% rake hoe:test
|
|
5
|
+
% ruby test/fuzzy_test.rb
|
|
6
|
+
% autotest (if you have zentest installed of course)
|
|
7
|
+
|
|
1
8
|
== 1.2.1 / 2007-11-19
|
|
2
9
|
|
|
3
10
|
* Bugfix: example has not included Fuzzyrb module.
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
data/examples/compare_models.rb
CHANGED
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
#
|
|
40
40
|
# Without uncomenting this line 3dplot seems not to work.
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
$:.unshift(File.dirname(__FILE__) + "/../lib/")
|
|
44
43
|
require 'fuzzy'
|
|
45
44
|
include Fuzzyrb
|
|
45
|
+
|
|
46
46
|
@smallInput = FuzzySet.trapezoid([0, 0, 0, 10])
|
|
47
47
|
@largeInput = FuzzySet.trapezoid([0, 10, 10, 10])
|
|
48
48
|
@smallOutput = FuzzySet.trapezoid([0, 0, 0, 10])
|
|
@@ -97,7 +97,7 @@ def count_error(implication, params)
|
|
|
97
97
|
plot.set("isosample", "40,40")
|
|
98
98
|
|
|
99
99
|
plot.data << Gnuplot::DataSet.new( [x, y, z] ) do |ds|
|
|
100
|
-
ds.with = "
|
|
100
|
+
ds.with = "pm3d"
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
end
|
data/lib/fuzzy.rb
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
$:.unshift(File.dirname(__FILE__) + "/../lib/")
|
|
2
2
|
$:.unshift(File.dirname(__FILE__) + "/../test/")
|
|
3
|
-
require 'test/unit'
|
|
4
|
-
require 'test/unit/ui/console/testrunner'
|
|
5
3
|
|
|
6
4
|
require 'fuzzy'
|
|
7
5
|
include Fuzzyrb
|
|
8
6
|
|
|
7
|
+
require 'test/unit'
|
|
8
|
+
require 'test/unit/ui/console/testrunner'
|
|
9
|
+
|
|
9
10
|
require 'test_fuzzy_set'
|
|
10
11
|
require 'test_fuzzy_rule'
|
|
11
12
|
require 'test_fuzzy_implication'
|
data/test/test_fuzzy_rule.rb
CHANGED
data/test/test_fuzzy_set.rb
CHANGED
data/test/test_point.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: fuzzyrb
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 1.2.
|
|
6
|
+
version: 1.2.2
|
|
7
7
|
date: 2007-11-19 00:00:00 +01:00
|
|
8
8
|
summary: Fuzzy Sets for Ruby
|
|
9
9
|
require_paths:
|
|
@@ -63,13 +63,12 @@ files:
|
|
|
63
63
|
- lib/fuzzy_set.rb
|
|
64
64
|
- lib/line.rb
|
|
65
65
|
- lib/point.rb
|
|
66
|
-
- test/
|
|
66
|
+
- test/fuzzy_test.rb
|
|
67
67
|
- test/test_fuzzy_implication.rb
|
|
68
68
|
- test/test_fuzzy_rule.rb
|
|
69
69
|
- test/test_fuzzy_set.rb
|
|
70
70
|
- test/test_point.rb
|
|
71
71
|
test_files:
|
|
72
|
-
- test/test_fuzzy.rb
|
|
73
72
|
- test/test_fuzzy_implication.rb
|
|
74
73
|
- test/test_fuzzy_rule.rb
|
|
75
74
|
- test/test_fuzzy_set.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|