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

[math] Why are the methods of TTest not static?

    XMLWordPrintableJSON

    Details

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

      Operating System: Linux
      Platform: PC

    • Bugzilla Id:
      32663

      Description

      To do T-tests on data – for which many thanks! – you currently have to do the
      following

      TTest tester = new TTestImpl();
      tester.pairedTTest( ... );

      There are two things that are inelegant about this implementation: you have to
      explicitly call "new TTestImpl()" instead of using a factory method, and I don't
      see why there's this whole interface-implementation paradigm at all. As far as I
      can see, there's no state stored in the TTest implementation; why isn't it a
      singleton class with static methods instead?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              m.e.foster@ed.ac.uk Mary Ellen Foster
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: