@@ -38,7 +38,7 @@ public interface QuantilesGenericAPI<T> extends QuantilesAPI, PartitioningFeatur
3838 * @return a discrete CDF array of m+1 double ranks (or cumulative probabilities) on the interval [0.0, 1.0].
3939 * @throws IllegalArgumentException if sketch is empty.
4040 */
41- default double [] getCDF (T [] splitPoints ) {
41+ default double [] getCDF (final T [] splitPoints ) {
4242 return getCDF (splitPoints , INCLUSIVE );
4343 }
4444
@@ -118,7 +118,7 @@ default int getMaxPartitions() {
118118 * @return a PMF array of m+1 probability masses as doubles on the interval [0.0, 1.0].
119119 * @throws IllegalArgumentException if sketch is empty.
120120 */
121- default double [] getPMF (T [] splitPoints ) {
121+ default double [] getPMF (final T [] splitPoints ) {
122122 return getPMF (splitPoints , INCLUSIVE );
123123 }
124124
@@ -170,7 +170,7 @@ default double[] getPMF(T[] splitPoints) {
170170 * @return the approximate quantile given the normalized rank.
171171 * @throws IllegalArgumentException if sketch is empty.
172172 */
173- default T getQuantile (double rank ) {
173+ default T getQuantile (final double rank ) {
174174 return getQuantile (rank , INCLUSIVE );
175175 }
176176
@@ -227,7 +227,7 @@ default T getQuantile(double rank) {
227227 * @return an array of quantiles corresponding to the given array of normalized ranks.
228228 * @throws IllegalArgumentException if sketch is empty.
229229 */
230- default T [] getQuantiles (double [] ranks ) {
230+ default T [] getQuantiles (final double [] ranks ) {
231231 return getQuantiles (ranks , INCLUSIVE );
232232 }
233233
@@ -250,7 +250,7 @@ default T[] getQuantiles(double[] ranks) {
250250 * @return the normalized rank corresponding to the given quantile.
251251 * @throws IllegalArgumentException if sketch is empty.
252252 */
253- default double getRank (T quantile ) {
253+ default double getRank (final T quantile ) {
254254 return getRank (quantile , INCLUSIVE );
255255 }
256256
@@ -271,7 +271,7 @@ default double getRank(T quantile) {
271271 * @return an array of normalized ranks corresponding to the given array of quantiles.
272272 * @throws IllegalArgumentException if sketch is empty.
273273 */
274- default double [] getRanks (T [] quantiles ) {
274+ default double [] getRanks (final T [] quantiles ) {
275275 return getRanks (quantiles , INCLUSIVE );
276276 }
277277
0 commit comments