minimization 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,6 @@
1
+ === 0.2.1 / 2010-11-14
2
+ * Added iterations method
3
+
1
4
  === 0.2.0 / 2010-04-15
2
5
  * New Minimization::NewtonRahpson class, which implements a naive Newton-Rahpson minimization method
3
6
  x=x_n-(f'(x)/f''(x))
data/README.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  = minimization
2
2
 
3
- http://ruby-statsample.rubyforge.org/
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)
@@ -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.0"
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
- version: 0.2.0
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-04-15 00:00:00 -04:00
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
- type: :runtime
39
- version_requirement:
40
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
55
+ type: :runtime
56
+ version_requirements: *id001
46
57
  - !ruby/object:Gem::Dependency
47
58
  name: rubyforge
48
- type: :development
49
- version_requirement:
50
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
71
+ type: :development
72
+ version_requirements: *id002
56
73
  - !ruby/object:Gem::Dependency
57
74
  name: hoe
58
- type: :development
59
- version_requirement:
60
- version_requirements: !ruby/object:Gem::Requirement
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
- version: 2.6.0
65
- version:
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://ruby-statsample.rubyforge.org/
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.5
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