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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: