Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-44

[math] Contradictory asserts in javadoc comments of TTest and TTestImpl

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      34448

      Description

      Found in javadoc comment of method :
      public double tTest( X, X )
      'For a one-sided test, divide the returned value by 2.'

      But found in javadoc comment for method :
      public boolean tTest( X, X, double alpha)
      'To perform a 1-sided test, use <code>alpha / 2</code>'

      where it should be:
      'To perform a 1-sided test, use <code>alpha * 2</code>'

      confirmed by code of the boolean valued function:
      return (tTest(sampleStats1, sampleStats2) < alpha);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gillesgaillard@compuserve.com Gilles Gaillard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: