@@ -67,7 +67,7 @@ public interface GenericSortedView<T> extends PartitioningFeature<T>, SketchPar
6767 * </blockquote>
6868 * @param searchCrit the desired search criteria.
6969 * @return a discrete CDF array of m+1 double ranks (or cumulative probabilities) on the interval [0.0, 1.0].
70- * @throws IllegalArgumentException if sketch is empty.
70+ * @throws SketchesArgumentException if sketch is empty.
7171 */
7272 default double [] getCDF (final T [] splitPoints , final QuantileSearchCriteria searchCrit ) {
7373 if (isEmpty ()) { throw new SketchesArgumentException (EMPTY_MSG ); }
@@ -92,7 +92,7 @@ default double[] getCDF(final T[] splitPoints, final QuantileSearchCriteria sear
9292 * sketch algorithm.
9393 *
9494 * @return the maximum item of the stream
95- * @throws IllegalArgumentException if sketch is empty.
95+ * @throws SketchesArgumentException if sketch is empty.
9696 */
9797 T getMaxItem ();
9898
@@ -101,7 +101,7 @@ default double[] getCDF(final T[] splitPoints, final QuantileSearchCriteria sear
101101 * sketch algorithm.
102102 *
103103 * @return the minimum item of the stream
104- * @throws IllegalArgumentException if sketch is empty.
104+ * @throws SketchesArgumentException if sketch is empty.
105105 */
106106 T getMinItem ();
107107
@@ -143,7 +143,7 @@ default double[] getCDF(final T[] splitPoints, final QuantileSearchCriteria sear
143143 * </blockquote>
144144 * @param searchCrit the desired search criteria.
145145 * @return a PMF array of m+1 probability masses as doubles on the interval [0.0, 1.0].
146- * @throws IllegalArgumentException if sketch is empty.
146+ * @throws SketchesArgumentException if sketch is empty.
147147 */
148148 default double [] getPMF (final T [] splitPoints , final QuantileSearchCriteria searchCrit ) {
149149 if (isEmpty ()) { throw new SketchesArgumentException (EMPTY_MSG ); }
@@ -164,7 +164,7 @@ default double[] getPMF(final T[] splitPoints, final QuantileSearchCriteria sear
164164 * If EXCLUSIVE, he given rank includes all quantiles <
165165 * the quantile directly corresponding to the given rank.
166166 * @return the approximate quantile given the normalized rank.
167- * @throws IllegalArgumentException if sketch is empty.
167+ * @throws SketchesArgumentException if sketch is empty.
168168 * @see org.apache.datasketches.quantilescommon.QuantileSearchCriteria
169169 */
170170 T getQuantile (double rank , QuantileSearchCriteria searchCrit );
@@ -181,7 +181,7 @@ default double[] getPMF(final T[] splitPoints, final QuantileSearchCriteria sear
181181 * @param quantile the given quantile
182182 * @param searchCrit if INCLUSIVE the given quantile is included into the rank.
183183 * @return the normalized rank corresponding to the given quantile.
184- * @throws IllegalArgumentException if sketch is empty.
184+ * @throws SketchesArgumentException if sketch is empty.
185185 * @see org.apache.datasketches.quantilescommon.QuantileSearchCriteria
186186 */
187187 double getRank (T quantile , QuantileSearchCriteria searchCrit );
0 commit comments