Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9198

We should provide an average/mean DGM method similar to Kotlin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta-3
    • None
    • None

    Description

      I propose to use a return type of double for double and float primitive arrays and BigDecimal for other Number arrays, Object will be used for the other methods. The intention is to give the same result you would get if you used sum() and then divided by the total count of objects by hand.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: