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

Inconsistent use of alpha in class AbsSeq

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • hotspot
    • None
    • b15
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: