Permalink
Browse files

New attibute iterations

  • Loading branch information...
1 parent d7618a7 commit 3b7fafd36da5778c4e526137ede4697bd23a96a2 @clbustos committed Nov 15, 2010
Showing with 8 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 History.txt
  3. +4 −2 lib/minimization.rb
View
@@ -1,3 +1,4 @@
+lib/multidimensional
doc
pkg
*~
View
@@ -1,3 +1,6 @@
+=== 0.2.1 / 2010-11-14
+* Added iterations method
+
=== 0.2.0 / 2010-04-15
* New Minimization::NewtonRahpson class, which implements a naive Newton-Rahpson minimization method
x=x_n-(f'(x)/f''(x))
View
@@ -16,10 +16,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
-require 'text-table'
# Algorithms for unidimensional minimization
+require 'text-table'
module Minimization
- VERSION="0.2.0"
+ VERSION="0.2.1"
FailedIteration=Class.new(Exception)
# Base class for unidimensional minimizers
class Unidimensional
@@ -39,6 +39,8 @@ class Unidimensional
attr_accessor :epsilon
# Expected value. Fast minimum finding if set
attr_reader :expected
+ # Numbers of iterations
+ attr_reader :iterations
# Create a new minimizer
def initialize(lower, upper, proc)
raise "first argument should be lower than second" if lower>=upper

0 comments on commit 3b7fafd

Please sign in to comment.