remove logging

Reviewed by:	Mark Diggory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dirk Verbeeck 2003-11-15 18:59:10 +00:00
parent 14bbddbc4c
commit 90017dc7e7
4 changed files with 6 additions and 22 deletions

View File

@ -53,7 +53,6 @@
*/
package org.apache.commons.math.distribution;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.math.MathException;
import org.apache.commons.math.special.Beta;
import org.apache.commons.math.util.MathUtils;
@ -61,7 +60,7 @@ import org.apache.commons.math.util.MathUtils;
/**
* The default implementation of {@link BinomialDistribution}.
*
* @version $Revision: 1.6 $ $Date: 2003/11/15 16:01:35 $
* @version $Revision: 1.7 $ $Date: 2003/11/15 18:59:10 $
*/
public class BinomialDistributionImpl extends AbstractDiscreteDistribution
implements BinomialDistribution {
@ -164,9 +163,6 @@ public class BinomialDistributionImpl extends AbstractDiscreteDistribution
ret = 1.0 - Beta.regularizedBeta(getProbabilityOfSuccess(),
x + 1.0, getNumberOfTrials() - x);
} catch (MathException ex) {
LogFactory.getLog(getClass()).error(
"Failed to compute cummulative probability, returning NaN.",
ex);
ret = Double.NaN;
}
}

View File

@ -53,15 +53,14 @@
*/
package org.apache.commons.math.distribution;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.math.MathException;
import org.apache.commons.math.special.Beta;
/**
* Default implementation of
* {@link org.apache.commons.math.stat.distribution.FDistribution}.
* {@link org.apache.commons.math.distribution.FDistribution}.
*
* @version $Revision: 1.9 $ $Date: 2003/11/15 16:01:36 $
* @version $Revision: 1.10 $ $Date: 2003/11/15 18:59:10 $
*/
public class FDistributionImpl
extends AbstractContinuousDistribution
@ -111,9 +110,6 @@ public class FDistributionImpl
0.5 * n,
0.5 * m);
} catch (MathException ex) {
LogFactory.getLog(getClass()).error(
"Failed to compute cummulative probability, returning NaN.",
ex);
ret = Double.NaN;
}
}

View File

@ -53,14 +53,13 @@
*/
package org.apache.commons.math.distribution;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.math.MathException;
import org.apache.commons.math.special.Gamma;
/**
* The default implementation of {@link GammaDistribution}
*
* @version $Revision: 1.12 $ $Date: 2003/11/15 16:01:36 $
* @version $Revision: 1.13 $ $Date: 2003/11/15 18:59:10 $
*/
public class GammaDistributionImpl extends AbstractContinuousDistribution
implements GammaDistribution {
@ -106,9 +105,6 @@ public class GammaDistributionImpl extends AbstractContinuousDistribution
try {
ret = Gamma.regularizedGammaP(getAlpha(), x / getBeta());
} catch(MathException ex){
LogFactory.getLog(getClass()).error(
"Failed to compute cummulative probability, returning NaN.",
ex);
ret = Double.NaN;
}
}

View File

@ -53,15 +53,14 @@
*/
package org.apache.commons.math.distribution;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.math.MathException;
import org.apache.commons.math.special.Beta;
/**
* Default implementation of
* {@link org.apache.commons.math.stat.distribution.TDistribution}.
* {@link org.apache.commons.math.distribution.TDistribution}.
*
* @version $Revision: 1.9 $ $Date: 2003/11/15 16:01:36 $
* @version $Revision: 1.10 $ $Date: 2003/11/15 18:59:10 $
*/
public class TDistributionImpl
extends AbstractContinuousDistribution
@ -121,9 +120,6 @@ public class TDistributionImpl
ret = 1.0 - 0.5 * t;
}
} catch (MathException ex) {
LogFactory.getLog(getClass()).error(
"Failed to compute cummulative probability, returning NaN.",
ex);
ret = Double.NaN;
}
}