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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 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

            Unassigned Unassigned
            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: