Skip to content

Commit 90288b3

Browse files
committed
Bug fix.
1 parent 72784b5 commit 90288b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/datasketches/tdigest/TDigestDouble.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public double getQuantile(final double rank) {
282282
}
283283
final double w1 = weight - centroidsWeight_ - (centroidWeights_[numCentroids_ - 1] / 2.0);
284284
final double w2 = (centroidWeights_[numCentroids_ - 1] / 2.0) - w1;
285-
return weightedAverage(centroidWeights_[numCentroids_ - 1], w1, maxValue_, w2);
285+
return weightedAverage(centroidMeans_[numCentroids_ - 1], w1, maxValue_, w2);
286286
}
287287

288288
/**

0 commit comments

Comments
 (0)