From 4a3a3eba60249000a724d139d0cbc74a7ddcfd68 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Thu, 18 Oct 2012 21:26:13 +0000 Subject: [PATCH] MATH-881 Removed meaningless properties for multivariate distributions. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1399864 13f79535-47bb-0310-9956-ffa450edef68 --- .../AbstractMultivariateRealDistribution.java | 25 --------- .../MultivariateRealDistribution.java | 51 ------------------- 2 files changed, 76 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/distribution/AbstractMultivariateRealDistribution.java b/src/main/java/org/apache/commons/math3/distribution/AbstractMultivariateRealDistribution.java index db56d2bd5..397438b63 100644 --- a/src/main/java/org/apache/commons/math3/distribution/AbstractMultivariateRealDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/AbstractMultivariateRealDistribution.java @@ -78,29 +78,4 @@ public abstract class AbstractMultivariateRealDistribution public double probability(double[] x) { return 0; } - - /** {@inheritDoc} */ - public double getSupportLowerBound() { - return Double.NEGATIVE_INFINITY; - } - - /** {@inheritDoc} */ - public double getSupportUpperBound() { - return Double.POSITIVE_INFINITY; - } - - /** {@inheritDoc} */ - public boolean isSupportLowerBoundInclusive() { - return false; - } - - /** {@inheritDoc} */ - public boolean isSupportUpperBoundInclusive() { - return false; - } - - /** {@inheritDoc} */ - public boolean isSupportConnected() { - return false; - } } diff --git a/src/main/java/org/apache/commons/math3/distribution/MultivariateRealDistribution.java b/src/main/java/org/apache/commons/math3/distribution/MultivariateRealDistribution.java index 5f129f714..a9e018e39 100644 --- a/src/main/java/org/apache/commons/math3/distribution/MultivariateRealDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/MultivariateRealDistribution.java @@ -53,57 +53,6 @@ public interface MultivariateRealDistribution { */ double density(double[] x); - /** - * Access the lower bound of the support. - * This method must return the same value as {@code inverseCumulativeProbability(0)}. - * In other words, this method must return - *

- * inf {x in R | P(X <= x) > 0}. - *

- * - * @return the lower bound of the support (might be - * {@code Double.NEGATIVE_INFINITY}). - */ - double getSupportLowerBound(); - - /** - * Access the upper bound of the support. - * This method must return the same value as {@code inverseCumulativeProbability(1)}. - * In other words, this method must return - *

- * inf {x in R | P(X <= x) = 1}. - *

- * - * @return the upper bound of the support (might be - * {@code Double.POSITIVE_INFINITY}). - */ - double getSupportUpperBound(); - - /** - * Gets information about whether the lower bound of the support is - * inclusive or not. - * - * @return whether the lower bound of the support is inclusive or not. - */ - boolean isSupportLowerBoundInclusive(); - - /** - * gets information about whether the upper bound of the support is - * inclusive or not. - * - * @return whether the upper bound of the support is inclusive or not. - */ - boolean isSupportUpperBoundInclusive(); - - /** - * Gets information about whether the support is connected (i.e. all - * values between the lower and upper bound of the support are included - * in the support). - * - * @return whether the support is connected or not. - */ - boolean isSupportConnected(); - /** * Reseeds the random generator used to generate samples. *