Return-Path: X-Original-To: apmail-commons-notifications-archive@minotaur.apache.org Delivered-To: apmail-commons-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8D2317CA3 for ; Fri, 17 Apr 2015 19:49:18 +0000 (UTC) Received: (qmail 97742 invoked by uid 500); 17 Apr 2015 19:49:18 -0000 Delivered-To: apmail-commons-notifications-archive@commons.apache.org Received: (qmail 97695 invoked by uid 500); 17 Apr 2015 19:49:18 -0000 Mailing-List: contact notifications-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list notifications@commons.apache.org Received: (qmail 97500 invoked by uid 99); 17 Apr 2015 19:49:18 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 19:49:18 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 7550AAC0A9C for ; Fri, 17 Apr 2015 19:49:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r948065 [16/16] - in /websites/production/commons/content/proper/commons-math/xref-test: ./ org/apache/commons/math3/ org/apache/commons/math3/analysis/ org/apache/commons/math3/analysis/differentiation/ org/apache/commons/math3/analysis/fu... Date: Fri, 17 Apr 2015 19:49:15 -0000 To: notifications@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150417194918.7550AAC0A9C@hades.apache.org> Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/interval/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/interval/package-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/interval/package-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat.interval + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat.interval Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/package-frame.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/package-frame.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/package-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/package-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/ranking/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/ranking/package-frame.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/ranking/package-frame.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat.ranking + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat.ranking Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/ranking/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/ranking/package-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/ranking/package-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat.ranking + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat.ranking Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/OLSMultipleLinearRegressionTest.html Fri Apr 17 19:49:06 2015 @@ -790,7 +790,42 @@ 782 TestUtils.assertEquals(835542680000.000, model.calculateResidualSumOfSquares(), 1.0e-3); 783 return; 784 } -785 } +785 +786 /** +787 * Anything requiring beta calculation should advertise SME. +788 */ +789 @Test(expected=org.apache.commons.math3.linear.SingularMatrixException.class) +790 public void testSingularCalculateBeta() { +791 OLSMultipleLinearRegression model = new OLSMultipleLinearRegression(); +792 model.newSampleData(new double[] {1, 2, 3, 1, 2, 3, 1, 2, 3}, 3, 2); +793 model.calculateBeta(); +794 } +795 +796 @Test +797 public void testNoSSTOCalculateRsquare() { +798 OLSMultipleLinearRegression model = new OLSMultipleLinearRegression(); +799 model.newSampleData(new double[] {1, 2, 3, 1, 7, 8, 1, 10, 12}, 3, 2); +800 Assert.assertTrue(Double.isNaN(model.calculateRSquared())); +801 } +802 +803 @Test(expected=NullPointerException.class) +804 public void testNoDataNPECalculateBeta() { +805 OLSMultipleLinearRegression model = new OLSMultipleLinearRegression(); +806 model.calculateBeta(); +807 } +808 +809 @Test(expected=NullPointerException.class) +810 public void testNoDataNPECalculateHat() { +811 OLSMultipleLinearRegression model = new OLSMultipleLinearRegression(); +812 model.calculateHat(); +813 } +814 +815 @Test(expected=NullPointerException.class) +816 public void testNoDataNPESSTO() { +817 OLSMultipleLinearRegression model = new OLSMultipleLinearRegression(); +818 model.calculateTotalSumOfSquares(); +819 } +820 }
Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/SimpleRegressionTest.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/SimpleRegressionTest.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/SimpleRegressionTest.html Fri Apr 17 19:49:06 2015 @@ -555,138 +555,154 @@ 547 Assert.assertTrue(regression.getSlope() > 0.0); 548 Assert.assertTrue(regression.getSumSquaredErrors() >= 0.0); 549 } -550 +550 551 @Test -552 public void testPerfectNegative() { +552 public void testPerfect2() { 553 SimpleRegression regression = new SimpleRegression(); -554 int n = 100; -555 for (int i = 0; i < n; i++) { -556 regression.addData(- ((double) i) / (n - 1), i); -557 } -558 -559 Assert.assertEquals(0.0, regression.getSignificance(), 1.0e-5); -560 Assert.assertTrue(regression.getSlope() < 0.0); -561 } -562 -563 @Test -564 public void testRandom() { -565 SimpleRegression regression = new SimpleRegression(); -566 Random random = new Random(1); -567 int n = 100; -568 for (int i = 0; i < n; i++) { -569 regression.addData(((double) i) / (n - 1), random.nextDouble()); -570 } -571 -572 Assert.assertTrue( 0.0 < regression.getSignificance() -573 && regression.getSignificance() < 1.0); -574 } -575 -576 -577 // Jira MATH-85 = Bugzilla 39432 -578 @Test -579 public void testSSENonNegative() { -580 double[] y = { 8915.102, 8919.302, 8923.502 }; -581 double[] x = { 1.107178495E2, 1.107264895E2, 1.107351295E2 }; -582 SimpleRegression reg = new SimpleRegression(); -583 for (int i = 0; i < x.length; i++) { -584 reg.addData(x[i], y[i]); -585 } -586 Assert.assertTrue(reg.getSumSquaredErrors() >= 0.0); -587 } -588 -589 // Test remove X,Y (single observation) -590 @Test -591 public void testRemoveXY() { -592 // Create regression with inference data then remove to test -593 SimpleRegression regression = new SimpleRegression(); -594 regression.addData(infData); -595 regression.removeData(removeX, removeY); -596 regression.addData(removeX, removeY); -597 // Use the inference assertions to make sure that everything worked -598 Assert.assertEquals("slope std err", 0.011448491, -599 regression.getSlopeStdErr(), 1E-10); -600 Assert.assertEquals("std err intercept", 0.286036932, -601 regression.getInterceptStdErr(),1E-8); -602 Assert.assertEquals("significance", 4.596e-07, -603 regression.getSignificance(),1E-8); -604 Assert.assertEquals("slope conf interval half-width", 0.0270713794287, -605 regression.getSlopeConfidenceInterval(),1E-8); -606 } -607 -608 -609 // Test remove single observation in array -610 @Test -611 public void testRemoveSingle() { -612 // Create regression with inference data then remove to test -613 SimpleRegression regression = new SimpleRegression(); -614 regression.addData(infData); -615 regression.removeData(removeSingle); -616 regression.addData(removeSingle); -617 // Use the inference assertions to make sure that everything worked -618 Assert.assertEquals("slope std err", 0.011448491, -619 regression.getSlopeStdErr(), 1E-10); -620 Assert.assertEquals("std err intercept", 0.286036932, -621 regression.getInterceptStdErr(),1E-8); -622 Assert.assertEquals("significance", 4.596e-07, -623 regression.getSignificance(),1E-8); -624 Assert.assertEquals("slope conf interval half-width", 0.0270713794287, -625 regression.getSlopeConfidenceInterval(),1E-8); -626 } -627 -628 // Test remove multiple observations -629 @Test -630 public void testRemoveMultiple() { -631 // Create regression with inference data then remove to test -632 SimpleRegression regression = new SimpleRegression(); -633 regression.addData(infData); -634 regression.removeData(removeMultiple); -635 regression.addData(removeMultiple); -636 // Use the inference assertions to make sure that everything worked -637 Assert.assertEquals("slope std err", 0.011448491, -638 regression.getSlopeStdErr(), 1E-10); -639 Assert.assertEquals("std err intercept", 0.286036932, -640 regression.getInterceptStdErr(),1E-8); -641 Assert.assertEquals("significance", 4.596e-07, -642 regression.getSignificance(),1E-8); -643 Assert.assertEquals("slope conf interval half-width", 0.0270713794287, -644 regression.getSlopeConfidenceInterval(),1E-8); -645 } -646 -647 // Remove observation when empty -648 @Test -649 public void testRemoveObsFromEmpty() { -650 SimpleRegression regression = new SimpleRegression(); -651 regression.removeData(removeX, removeY); -652 Assert.assertEquals(regression.getN(), 0); -653 } -654 -655 // Remove single observation to empty -656 @Test -657 public void testRemoveObsFromSingle() { -658 SimpleRegression regression = new SimpleRegression(); -659 regression.addData(removeX, removeY); -660 regression.removeData(removeX, removeY); -661 Assert.assertEquals(regression.getN(), 0); -662 } -663 -664 // Remove multiple observations to empty -665 @Test -666 public void testRemoveMultipleToEmpty() { -667 SimpleRegression regression = new SimpleRegression(); -668 regression.addData(removeMultiple); -669 regression.removeData(removeMultiple); -670 Assert.assertEquals(regression.getN(), 0); -671 } -672 -673 // Remove multiple observations past empty (i.e. size of array > n) -674 @Test -675 public void testRemoveMultiplePastEmpty() { -676 SimpleRegression regression = new SimpleRegression(); -677 regression.addData(removeX, removeY); -678 regression.removeData(removeMultiple); -679 Assert.assertEquals(regression.getN(), 0); -680 } -681 } +554 System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing +555 regression.addData(0, 0); +556 System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing +557 regression.addData(1, 1); +558 System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing +559 regression.addData(2, 2); +560 System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing +561 System.out.println("getMeanSquareError()=" + regression.getMeanSquareError()); // TODO temp check to see why Jenkins H10/H11 is failing +562 Assert.assertEquals(0.0, regression.getSlopeStdErr(), 0.0); +563 Assert.assertEquals(0.0, regression.getSignificance(), Double.MIN_VALUE); +564 Assert.assertEquals(1, regression.getRSquare(), Double.MIN_VALUE); +565 } +566 +567 @Test +568 public void testPerfectNegative() { +569 SimpleRegression regression = new SimpleRegression(); +570 int n = 100; +571 for (int i = 0; i < n; i++) { +572 regression.addData(- ((double) i) / (n - 1), i); +573 } +574 +575 Assert.assertEquals(0.0, regression.getSignificance(), 1.0e-5); +576 Assert.assertTrue(regression.getSlope() < 0.0); +577 } +578 +579 @Test +580 public void testRandom() { +581 SimpleRegression regression = new SimpleRegression(); +582 Random random = new Random(1); +583 int n = 100; +584 for (int i = 0; i < n; i++) { +585 regression.addData(((double) i) / (n - 1), random.nextDouble()); +586 } +587 +588 Assert.assertTrue( 0.0 < regression.getSignificance() +589 && regression.getSignificance() < 1.0); +590 } +591 +592 +593 // Jira MATH-85 = Bugzilla 39432 +594 @Test +595 public void testSSENonNegative() { +596 double[] y = { 8915.102, 8919.302, 8923.502 }; +597 double[] x = { 1.107178495E2, 1.107264895E2, 1.107351295E2 }; +598 SimpleRegression reg = new SimpleRegression(); +599 for (int i = 0; i < x.length; i++) { +600 reg.addData(x[i], y[i]); +601 } +602 Assert.assertTrue(reg.getSumSquaredErrors() >= 0.0); +603 } +604 +605 // Test remove X,Y (single observation) +606 @Test +607 public void testRemoveXY() { +608 // Create regression with inference data then remove to test +609 SimpleRegression regression = new SimpleRegression(); +610 regression.addData(infData); +611 regression.removeData(removeX, removeY); +612 regression.addData(removeX, removeY); +613 // Use the inference assertions to make sure that everything worked +614 Assert.assertEquals("slope std err", 0.011448491, +615 regression.getSlopeStdErr(), 1E-10); +616 Assert.assertEquals("std err intercept", 0.286036932, +617 regression.getInterceptStdErr(),1E-8); +618 Assert.assertEquals("significance", 4.596e-07, +619 regression.getSignificance(),1E-8); +620 Assert.assertEquals("slope conf interval half-width", 0.0270713794287, +621 regression.getSlopeConfidenceInterval(),1E-8); +622 } +623 +624 +625 // Test remove single observation in array +626 @Test +627 public void testRemoveSingle() { +628 // Create regression with inference data then remove to test +629 SimpleRegression regression = new SimpleRegression(); +630 regression.addData(infData); +631 regression.removeData(removeSingle); +632 regression.addData(removeSingle); +633 // Use the inference assertions to make sure that everything worked +634 Assert.assertEquals("slope std err", 0.011448491, +635 regression.getSlopeStdErr(), 1E-10); +636 Assert.assertEquals("std err intercept", 0.286036932, +637 regression.getInterceptStdErr(),1E-8); +638 Assert.assertEquals("significance", 4.596e-07, +639 regression.getSignificance(),1E-8); +640 Assert.assertEquals("slope conf interval half-width", 0.0270713794287, +641 regression.getSlopeConfidenceInterval(),1E-8); +642 } +643 +644 // Test remove multiple observations +645 @Test +646 public void testRemoveMultiple() { +647 // Create regression with inference data then remove to test +648 SimpleRegression regression = new SimpleRegression(); +649 regression.addData(infData); +650 regression.removeData(removeMultiple); +651 regression.addData(removeMultiple); +652 // Use the inference assertions to make sure that everything worked +653 Assert.assertEquals("slope std err", 0.011448491, +654 regression.getSlopeStdErr(), 1E-10); +655 Assert.assertEquals("std err intercept", 0.286036932, +656 regression.getInterceptStdErr(),1E-8); +657 Assert.assertEquals("significance", 4.596e-07, +658 regression.getSignificance(),1E-8); +659 Assert.assertEquals("slope conf interval half-width", 0.0270713794287, +660 regression.getSlopeConfidenceInterval(),1E-8); +661 } +662 +663 // Remove observation when empty +664 @Test +665 public void testRemoveObsFromEmpty() { +666 SimpleRegression regression = new SimpleRegression(); +667 regression.removeData(removeX, removeY); +668 Assert.assertEquals(regression.getN(), 0); +669 } +670 +671 // Remove single observation to empty +672 @Test +673 public void testRemoveObsFromSingle() { +674 SimpleRegression regression = new SimpleRegression(); +675 regression.addData(removeX, removeY); +676 regression.removeData(removeX, removeY); +677 Assert.assertEquals(regression.getN(), 0); +678 } +679 +680 // Remove multiple observations to empty +681 @Test +682 public void testRemoveMultipleToEmpty() { +683 SimpleRegression regression = new SimpleRegression(); +684 regression.addData(removeMultiple); +685 regression.removeData(removeMultiple); +686 Assert.assertEquals(regression.getN(), 0); +687 } +688 +689 // Remove multiple observations past empty (i.e. size of array > n) +690 @Test +691 public void testRemoveMultiplePastEmpty() { +692 SimpleRegression regression = new SimpleRegression(); +693 regression.addData(removeX, removeY); +694 regression.removeData(removeMultiple); +695 Assert.assertEquals(regression.getN(), 0); +696 } +697 }
Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/package-frame.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/package-frame.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat.regression + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat.regression Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/package-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/stat/regression/package-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.stat.regression + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.stat.regression Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/transform/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/transform/package-frame.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/transform/package-frame.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.transform + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.transform Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/transform/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/transform/package-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/transform/package-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.transform + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.transform Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/util/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/util/package-frame.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/util/package-frame.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.util + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.util @@ -49,9 +49,6 @@ FastMathTest
  • - FastMathTestPerformance -
  • -
  • IncrementorTest
  • Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/util/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/util/package-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/util/package-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference Package org.apache.commons.math3.util + Apache Commons Math 3.5 Reference Package org.apache.commons.math3.util @@ -91,11 +91,6 @@ - - FastMathTestPerformance - - - IncrementorTest Modified: websites/production/commons/content/proper/commons-math/xref-test/overview-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/overview-frame.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/overview-frame.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference + Apache Commons Math 3.5 Reference @@ -91,6 +91,9 @@ org.apache.commons.math3.geometry.euclidean.twod.hull
  • + org.apache.commons.math3.geometry.partitioning +
  • +
  • org.apache.commons.math3.geometry.partitioning.utilities
  • Modified: websites/production/commons/content/proper/commons-math/xref-test/overview-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-math/xref-test/overview-summary.html (original) +++ websites/production/commons/content/proper/commons-math/xref-test/overview-summary.html Fri Apr 17 19:49:06 2015 @@ -3,7 +3,7 @@ - Apache Commons Math 3.4.1 Reference + Apache Commons Math 3.5 Reference @@ -24,7 +24,7 @@ -

    Apache Commons Math 3.4.1 Reference

    +

    Apache Commons Math 3.5 Reference

    @@ -159,6 +159,11 @@ + + +
    + org.apache.commons.math3.geometry.partitioning +
    org.apache.commons.math3.geometry.partitioning.utilities