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

Add a constructor for SpearmansCorrelation that allows to solely set the Ranking algorithm

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1
    • None
    • None

    Description

      As suggested by Patrick Meyer on the users mailinglist:

      currently there is no way to create an instance of SpearmansCorrelation and set the used RankingAlgorithm.

      There are ctors to provide both data and algorithm, but it would be convenient to have a ctor that only sets the algorithm and allows for later calls to correlate, suggested signature:

          public SpearmansCorrelation(final RankingAlgorithm rankingAlgorithm)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tn Thomas Neidhart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: