All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.tdunning.math.stats.TreeDigest.class Maven / Gradle / Ivy

????2O9com/groupbyinc/flux/common/tdunning/math/stats/TreeDigest>com/groupbyinc/flux/common/tdunning/math/stats/AbstractTDigestTreeDigest.javacompressionDsummary:Lcom/groupbyinc/flux/common/tdunning/math/stats/GroupTree;countJVERBOSE_ENCODINGISMALL_ENCODING(D)V()V
@Y	8com/groupbyinc/flux/common/tdunning/math/stats/GroupTree
		
	this;Lcom/groupbyinc/flux/common/tdunning/math/stats/TreeDigest;add(DI)VcreateCentroid=(DI)Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;%&
'>(DILcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;)V#)
*xw
checkValue.
/floort(Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;)Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;12
3ceiling52
67com/groupbyinc/flux/common/tdunning/math/stats/Centroid8data()Ljava/util/List;:;
9<createWeightedQ(DILjava/lang/Iterable;)Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;>?
9@<(Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;)V#B
CtailSetO(Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;)Ljava/lang/Iterable;EF
G???????java/lang/IterableKiterator()Ljava/util/Iterator;MNLOjava/util/IteratorQhasNext()ZSTRUnext()Ljava/lang/Object;WXRYmean()D[\
9]java/lang/Math_abs(D)Dab
`cheadSum<(Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;)Jef
g()I
i
9j@genLjava/util/Random;pq	rjava/util/Randomt
nextDoublev\
uwremoveyB
z(DILjava/lang/Iterable;)V#|
9}sizei
?@4compress?
?zneighbor9Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;i$Ljava/util/Iterator;qk	neighborsOLjava/lang/Iterable;Ljava/lang/Iterable;minDistancelastNeighboriclosestsumnbasestartmergea(DLjava/lang/Iterable;Ljava/util/Random;)Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest;
??(Ljava/lang/Iterable;Ljava/util/Random;Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest;)Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest;??
?subDataNLjava/lang/Iterable;r=(Lcom/groupbyinc/flux/common/tdunning/math/stats/GroupTree;)V??
?
recordAllDataZ??	?:()Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest;??
?java/util/ArrayList?
?
Ojava/util/List?(Ljava/lang/Object;)Z#???java/util/Collections?shuffle%(Ljava/util/List;Ljava/util/Random;)V??
???OcentroidotherreducedtmpKLjava/util/List;Ljava/util/List;()Jcdf?first;()Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;??
?interpolate(DDD)D??
?itOLjava/util/Iterator;ableftrightvaluesquantile"java/lang/IllegalArgumentException?java/lang/StringBuilder?
?q should be in [0,1], got ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??(D)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??(Ljava/lang/String;)V?
??	centroids()Ljava/lang/Iterable;??
?java/lang/Double?isNaN(D)Z??
??(DDDDD)D??
?next2
nextIndex2	nextMean2	nextIndexindexpreviousMean
previousIndextotalPLjava/util/Iterator<+Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;>;
centroidCountbyteSize
smallByteSizei
java/nio/ByteBufferallocate(I)Ljava/nio/ByteBuffer;	

asSmallBytes(Ljava/nio/ByteBuffer;)V

positioni
boundbufLjava/nio/ByteBuffer;asBytesputInt

\
	putDouble(D)Ljava/nio/ByteBuffer;
putFloat(F)Ljava/nio/ByteBuffer;!"
#encode(Ljava/nio/ByteBuffer;I)V%&
'delta	fromBytesR(Ljava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/tdunning/math/stats/TreeDigest;getInt,i
-	getDouble/\
0[D2#$
4getFloat()F67
8decode(Ljava/nio/ByteBuffer;)I:;
<java/lang/IllegalStateException>'Invalid format for serialized histogram@
??meansencoding
ConstantValueCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable	Signature?(DLjava/lang/Iterable;Ljava/util/Random;)Lcom/groupbyinc/flux/common/tdunning/math/stats/TDigest;R()Ljava/lang/Iterable<+Lcom/groupbyinc/flux/common/tdunning/math/stats/Centroid;>;
SourceFile!	

E
EFi!*?*?*?Y??*	? *'??G!!"!H<012= >#$FO
*'*'?(?+?G 
!"
,
-
H
CD#)F??*'?0*??4:?*??7:?*?'?=?A?D*?? ?k*??H:I96	6
?P:?V?1?Z?9:?^'g?d9

??
9
6	?
???:*??h76
9?P:?V???Z?9:
	??}?^'g?d9??k?loc*? ?o9n*? i?kgk*?o9??*?k`???*?s?xo??:c9?k?a7?
??i?*?'?=?A?D?!*??{'?=?~*??D*Y? ?a? *?????*?k??*???G???
t??^8???k??U?
=?????????J]??OX?RU?
	UR?

?????????!"?,?-
??????IJ]??H?,HIJK N%O6P?RJSOTRUUVtW?X?Y?Z?_?`?b?c?d?e?f?g?h?j?k?l
o#p2q6s<uGvJwMyRzf~o{?????????J?? 9?
99LR?7?99L9R?9?b?99L9?"99	??Fp?Y&??:,-???G*??pq
?"I??H
?
?KL?F7	**????G	!"H
????F_??Y*???M*???,??W??Y??N+??:?V??Z?9:-??W???-*?s??-??:?V?"?Z?9:,?^?k?+???*,???GR<	??&"??n??X)???!"??	~?" j??I j??H6
???? ?<?E?H?P?n?~?????J??
?R?!?R?(?F/*? ?G!"H??bF"
*?N-???ů-???'-?ʶ^????9-??:?Z?9:?Z?9:?^?^glo9		9?V?h'?^c??(?k?'?^	g?^c??kc*? ?o??k?c9:?Z?9:9	?^?^glo9???9	:'?^c??(?k?'?^	g?^c??kc*? ?o??G\	-??3???????K???\??	`??!",?	I3???Hb?????*?-?3???K?\?`?j?w???????????????????	?J)?@?5	R99;29?bF?
T'??	'????Y??Y??ݶ?'????*?N-???ů-???-???Z?9?^?'*? 
e?k9?99	7
*??P:?Z?9:

?
?k?gloc9??h???O??	
?^??Z?9:

?k?a??k?gloc9
?^k?^kggo9
?^????V?9*? 
e?9
?^gkgkggo9
?^???

?k?a7

?^99??G??2????-?*????T!"T?,(?	Z??_??b??e?
|?W?
p???Ip??Hv??'?,?3?7???O?Z?b?ep|???????
??*;FMQJ*	?? R?;9=?iF2*????G!"H"??F/*??G!"H'KM\F/*??G!"H,iF8*???h`?G!"H4iF^*?<?M*,?,??G !"


H=>
?@Fj+?W+*?? W+*????W*???M,?V?,?Z?9N+-?^? W???*???M,?V?,?Z?9N+-?k?W???G>6	??#??]	??J??j!"jH*
KLMN6O?PBR]SfTiUJ?#R??R?
FO	?+?W+*?? W+*????WI*???:?V?)?Z?9:?^(g9?^I+??$W???*???:?V??Z?9:?k6+?(??ݱG\	E)<??&0??|?
u
??_&???!"?i,H:YZ[]^<_E`KaSbVdue|f?g?hJ?&R?/?R?%	*+Fq?*?.<?X*?1I?Y(??:*?.6?:6?*?1R????6?1*?.?5??????k*?1I?Y(??:*?.6?:96

?*?9?9c9
R?
???6

?*?=6

1
?5?
??????YA?B?G?(?
A?
PF?"@?
%:C2?)?"?

??

??

icsY?"yS?
MC2?J,??D
Hzpq
rstu%v/w8v>yHzVy\|_}d~is?y????????????????????????JV
?(3?????%	3?!???N




© 2015 - 2025 Weber Informatics LLC | Privacy Policy