com.groupbyinc.flux.common.tdunning.math.stats.AbstractTDigest.class Maven / Gradle / Ivy
???? 3 ? >com/groupbyinc/flux/common/tdunning/math/stats/AbstractTDigest 6com/groupbyinc/flux/common/tdunning/math/stats/TDigest AbstractTDigest.java gen Ljava/util/Random;
recordAllData Z $assertionsDisabled ()V
java/util/Random
this @Lcom/groupbyinc/flux/common/tdunning/math/stats/AbstractTDigest; weightedAverage (DDDD)D weightedAverageSorted
x1 D w1 x2 w2
" java/lang/AssertionError $
%
java/lang/Math ' min (DD)D ) *
( + max - *
( . x interpolate (DDD)D x0 encode (Ljava/nio/ByteBuffer;I)V java/nio/ByteBuffer 6 put (B)Ljava/nio/ByteBuffer; 8 9
7 : java/lang/IllegalStateException < Size is implausibly large > (Ljava/lang/String;)V @
= A b B buf Ljava/nio/ByteBuffer; n I k decode (Ljava/nio/ByteBuffer;)I get ()B L M
7 N Shift too large in decode P v z shift add >(DILcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;)V quantile (DDDDD)D index
previousIndex nextIndex previousMean nextMean delta previousWeight
nextWeight :()Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest; isRecording ()Z (D)V (DI)V U e
f ;(Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest;)V java/util/ArrayList i
j
centroids ()Ljava/util/Collection; l m
n java/util/Collection p iterator ()Ljava/util/Iterator; r s q t java/util/List v java/util/Iterator x hasNext z c y { next ()Ljava/lang/Object; } ~ y 7com/groupbyinc/flux/common/tdunning/math/stats/Centroid ? (Ljava/lang/Object;)Z U ? w ? java/util/Collections ? shuffle %(Ljava/util/List;Ljava/util/Random;)V ? ?
? ? w t mean ()D ? ?
? ? count ()I ? ?
? ? U V
? centroid 9Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid; other 8Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest; tmp KLjava/util/List; Ljava/util/List; createCentroid =(DI)Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid; (DIZ)V ?
? ? id java/lang/Class ? desiredAssertionStatus ? c
? ? Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
SourceFile!
? G *? *? Y? ? *? ? ? ? ? t &??
&(? ?&(? ? ? * ! ? $ % ' ?
? ?
1? #? &?? ? %Y? &?&(kkc(co9&? ,? /? ? 4 1 1 1 1 ! % 0 ? 3 4 % 5 ? 1 2 ? G &(g(go? ? 0 3 ? 9 4 5 ? ? ?=? ? . ?~??>*? ;W|?
? =Y?? B????*?? ;W? ? * C D ? E F ? G H = I H ? . = > ? @ A ! B $ C * D 4 F 7 G > H ? ? ' J K ? ? ;*? O<~=> ?~? '?
? =YQ? B?*? O<~x`=????? ? * ; E F 6 R H
1 S H
. T H ? *
K L
M
N O P % R * S 3 T 9 V ?
?
U V W X ? ? #(g9
&g
o9&(g
o9kkc? ? R # Y # Z # [ # \ # ] ^
_ ` ? h i j k a ? 5 *? *? ? ?
s t b c ? / *? ? ? ? y U d ? ? *'? g? ? 0 ?
? ? U h ?
i? jY? kM+? o? u N-? | ? -? ? ? ?:,? ? W???,*? ? ?,? ? N-? | ? !-? ? ? ?:*? ?? ?? ???ܱ ? 4 &