com.groupbyinc.flux.common.ExponentiallyWeightedMovingAverage.class Maven / Gradle / Ivy
???? 4 G =com/groupbyinc/flux/common/ExponentiallyWeightedMovingAverage java/lang/Object 'ExponentiallyWeightedMovingAverage.java alpha D averageBits (Ljava/util/concurrent/atomic/AtomicLong; (DD)V ()V
"java/lang/IllegalArgumentException ?alpha must be greater or equal to 0 and less than or equal to 1 (Ljava/lang/String;)V
&java/util/concurrent/atomic/AtomicLong java/lang/Double doubleToLongBits (D)J
(J)V
! # this ?Lcom/groupbyinc/flux/common/ExponentiallyWeightedMovingAverage;
initialAvg
getAverage ()D get ()J * +
, longBitsToDouble (J)D . /
0 addValue (D)V ( )
4
compareAndSet (JJ)Z 6 7
8 currentBits J
currentAvg newAvg newBits newValue
successful Z Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile !
B ? /*? '?? '??
? Y? ?*'? *? Y)? ? "? $? C / % &