commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject [math] LeastSquaresProblem countEvaluations?
Date Fri, 05 Feb 2016 01:02:12 GMT
Hi,

The LM optimize method counts evaluations.  The below method also does.  Just wanted to check
in to see whether it's still supposed to?

     public static LeastSquaresProblem countEvaluations(final LeastSquaresProblem problem,
                                                        final Incrementor counter) {
         return new LeastSquaresAdapter(problem) {

             /** {@inheritDoc} */
             @Override
             public Evaluation evaluate(final RealVector point) {
                 counter.incrementCount();
                 return super.evaluate(point);
             }

             // Delegate the rest.
         };
     }

Cheers,
Ole

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message