From eb452bcb1dfa621cd91d433725c266a98d975d87 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Tue, 1 Jun 2010 06:25:36 +0000 Subject: [PATCH] fixed an error message git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@949935 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math/MessagesResources_fr.java | 2 +- .../math/optimization/general/LevenbergMarquardtOptimizer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/MessagesResources_fr.java b/src/main/java/org/apache/commons/math/MessagesResources_fr.java index 1fc6de08f..fdada8239 100644 --- a/src/main/java/org/apache/commons/math/MessagesResources_fr.java +++ b/src/main/java/org/apache/commons/math/MessagesResources_fr.java @@ -756,7 +756,7 @@ public class MessagesResources_fr // org.apache.commons.math.distribution.AbstractIntegerDistribution // org.apache.commons.math.distribution.AbstractContinuousDistribution { "Sample size must be positive", - "Taille de l'\u00e9chantillon doit \u00eatre positif" }, + "La taille de l'\u00e9chantillon doit \u00eatre positive" }, // org.apache.commons.math.distribution.BinomialDistributionImpl { "number of trials must be non-negative ({0})", diff --git a/src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java b/src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java index 052a9709b..d294fc969 100644 --- a/src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java +++ b/src/main/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizer.java @@ -805,7 +805,7 @@ public class LevenbergMarquardtOptimizer extends AbstractLeastSquaresOptimizer { ak2 = norm2; } } - if (ak2 == 0) { + if (ak2 < 1.0e-66) { rank = k; return; }