Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-825

DoubleRDDFunctions.sampleStdev() actually computes regular stdev()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.6.0, 0.6.1, 0.6.2, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0
    • 0.7.3, 0.8.0
    • Spark Core
    • None

    Description

      Due to a typo, DoubleRDDFunctions.sampleStdev() returns the regular, non-sample stdev():

        /** 
         * Compute the sample standard deviation of this RDD's elements (which corrects for bias in
         * estimating the standard deviation by dividing by N-1 instead of N).
         */
        def sampleStdev(): Double = stats().stdev
      

      Attachments

        Activity

          People

            joshrosen Josh Rosen
            joshrosen Josh Rosen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: