minimization 0.2.0 → 0.2.1
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.tar.gz.sig +0 -0
- data/History.txt +3 -0
- data/README.txt +5 -1
- data/lib/minimization.rb +4 -2
- metadata +48 -19
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= minimization
|
2
2
|
|
3
|
-
http://
|
3
|
+
* http://github.com/clbustos/minimization
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
@@ -32,6 +32,10 @@ puts d.f_minimum
|
|
32
32
|
|
33
33
|
sudo gem install minimization
|
34
34
|
|
35
|
+
== API:
|
36
|
+
|
37
|
+
http://ruby-statsample.rubyforge.org/minimization/
|
38
|
+
|
35
39
|
== LICENSE:
|
36
40
|
|
37
41
|
GPL-2 (See LICENSE.txt)
|
data/lib/minimization.rb
CHANGED
@@ -16,10 +16,10 @@
|
|
16
16
|
# along with this program; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
18
18
|
#
|
19
|
-
require 'text-table'
|
20
19
|
# Algorithms for unidimensional minimization
|
20
|
+
require 'text-table'
|
21
21
|
module Minimization
|
22
|
-
VERSION="0.2.
|
22
|
+
VERSION="0.2.1"
|
23
23
|
FailedIteration=Class.new(Exception)
|
24
24
|
# Base class for unidimensional minimizers
|
25
25
|
class Unidimensional
|
@@ -39,6 +39,8 @@ module Minimization
|
|
39
39
|
attr_accessor :epsilon
|
40
40
|
# Expected value. Fast minimum finding if set
|
41
41
|
attr_reader :expected
|
42
|
+
# Numbers of iterations
|
43
|
+
attr_reader :iterations
|
42
44
|
# Create a new minimizer
|
43
45
|
def initialize(lower, upper, proc)
|
44
46
|
raise "first argument should be lower than second" if lower>=upper
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Claudio Bustos
|
@@ -30,39 +36,56 @@ cert_chain:
|
|
30
36
|
rpP0jjs0
|
31
37
|
-----END CERTIFICATE-----
|
32
38
|
|
33
|
-
date: 2010-
|
39
|
+
date: 2010-11-14 00:00:00 -03:00
|
34
40
|
default_executable:
|
35
41
|
dependencies:
|
36
42
|
- !ruby/object:Gem::Dependency
|
37
43
|
name: text-table
|
38
|
-
|
39
|
-
|
40
|
-
|
44
|
+
prerelease: false
|
45
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
41
47
|
requirements:
|
42
48
|
- - ~>
|
43
49
|
- !ruby/object:Gem::Version
|
50
|
+
hash: 11
|
51
|
+
segments:
|
52
|
+
- 1
|
53
|
+
- 2
|
44
54
|
version: "1.2"
|
45
|
-
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id001
|
46
57
|
- !ruby/object:Gem::Dependency
|
47
58
|
name: rubyforge
|
48
|
-
|
49
|
-
|
50
|
-
|
59
|
+
prerelease: false
|
60
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
51
62
|
requirements:
|
52
63
|
- - ">="
|
53
64
|
- !ruby/object:Gem::Version
|
65
|
+
hash: 7
|
66
|
+
segments:
|
67
|
+
- 2
|
68
|
+
- 0
|
69
|
+
- 4
|
54
70
|
version: 2.0.4
|
55
|
-
|
71
|
+
type: :development
|
72
|
+
version_requirements: *id002
|
56
73
|
- !ruby/object:Gem::Dependency
|
57
74
|
name: hoe
|
58
|
-
|
59
|
-
|
60
|
-
|
75
|
+
prerelease: false
|
76
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
61
78
|
requirements:
|
62
79
|
- - ">="
|
63
80
|
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
|
81
|
+
hash: 19
|
82
|
+
segments:
|
83
|
+
- 2
|
84
|
+
- 6
|
85
|
+
- 2
|
86
|
+
version: 2.6.2
|
87
|
+
type: :development
|
88
|
+
version_requirements: *id003
|
66
89
|
description: Minimization algorithms on pure Ruby.
|
67
90
|
email:
|
68
91
|
- clbustos_AT_gmail.com
|
@@ -86,7 +109,7 @@ files:
|
|
86
109
|
- spec/spec.opts
|
87
110
|
- spec/spec_helper.rb
|
88
111
|
has_rdoc: true
|
89
|
-
homepage: http://
|
112
|
+
homepage: http://github.com/clbustos/minimization
|
90
113
|
licenses: []
|
91
114
|
|
92
115
|
post_install_message:
|
@@ -96,21 +119,27 @@ rdoc_options:
|
|
96
119
|
require_paths:
|
97
120
|
- lib
|
98
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
99
123
|
requirements:
|
100
124
|
- - ">="
|
101
125
|
- !ruby/object:Gem::Version
|
126
|
+
hash: 3
|
127
|
+
segments:
|
128
|
+
- 0
|
102
129
|
version: "0"
|
103
|
-
version:
|
104
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
105
132
|
requirements:
|
106
133
|
- - ">="
|
107
134
|
- !ruby/object:Gem::Version
|
135
|
+
hash: 3
|
136
|
+
segments:
|
137
|
+
- 0
|
108
138
|
version: "0"
|
109
|
-
version:
|
110
139
|
requirements: []
|
111
140
|
|
112
141
|
rubyforge_project: ruby-statsample
|
113
|
-
rubygems_version: 1.3.
|
142
|
+
rubygems_version: 1.3.7
|
114
143
|
signing_key:
|
115
144
|
specification_version: 3
|
116
145
|
summary: Minimization algorithms on pure Ruby.
|
metadata.gz.sig
CHANGED
Binary file
|