Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252859

Inconsistent use of alpha in class AbsSeq

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      generic

      Description

      Field `_alpha` in `AbsSeq` is supposed to be the exponential smoothing factor, but its usage in the source code is actually inverted. In other words, `1.0 - _alpha` in the source code is corresponding to the actual smoothing factor often used in the literature. Background reading: https://en.wikipedia.org/wiki/Exponential_smoothing

      This inconsistency was discovered in https://bugs.openjdk.java.net/browse/JDK-8252093, but not addressed in that patch to avoid mixing different concerns.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ayang Albert Yang
              Reporter:
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: