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

First Moment is not public

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5
    • 4.X
    • None
    • None

    Description

      Hi there,
      is there a specific reason FirstMoment is not public?
      I want to calculate a mean over a List<Double>, for that I want to loop over that list and invoke Mean.increment(listValue), however this is slower than it could be. Every increment call makes a check to incMoment.
      I could avoid that if I use a FirstMoment directly, but I cannot create an instance, because it is protected.

      Also this effectively means that the public constructor Mean(FirstMoment) is not usable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fabianlange Fabian Lange
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: