@@ -1034,21 +1034,6 @@ def quantile(
10341034 else :
10351035 axis = int (axis )
10361036
1037- methods = {
1038- "inverted_cdf" ,
1039- "averaged_inverted_cdf" ,
1040- "closest_observation" ,
1041- "hazen" ,
1042- "interpolated_inverted_cdf" ,
1043- "linear" ,
1044- "median_unbiased" ,
1045- "normal_unbiased" ,
1046- "weibull" ,
1047- "harrell-davis" ,
1048- }
1049- if method not in methods :
1050- raise ValueError (f"`method` must be one of { methods } " ) # noqa: EM102
1051-
10521037 if keepdims not in {None , True , False }:
10531038 raise ValueError ("If specified, `keepdims` must be True or False." ) # noqa: EM101
10541039
@@ -1078,8 +1063,6 @@ def quantile(
10781063 "weibull" ,
10791064 }:
10801065 res = _quantile_hf (y , q , n , method , xp )
1081- elif method == "harrell-davis" :
1082- res = _quantile_hd (y , q , n , xp )
10831066 else :
10841067 raise ValueError (f"Unknown method: { method } " ) # noqa: EM102
10851068
@@ -1112,7 +1095,7 @@ def quantile(
11121095def _quantile_hf (
11131096 y : Array , p : Array , n : Array , method : str , xp : ModuleType
11141097) -> Array : # numpydoc ignore=PR01,RT01
1115- """Helper function for Hyndman-Fan quantile methods ."""
1098+ """Helper function for Hyndman-Fan quantile method ."""
11161099 ms = {
11171100 "inverted_cdf" : 0 ,
11181101 "averaged_inverted_cdf" : 0 ,
@@ -1154,12 +1137,3 @@ def _quantile_hf(
11541137 return (1 - g ) * xp .take_along_axis (y , j , axis = - 1 ) + g * xp .take_along_axis (
11551138 y , jp1 , axis = - 1
11561139 )
1157-
1158-
1159- def _quantile_hd (
1160- y : Array , p : Array , n : Array , xp : ModuleType
1161- ) -> Array : # numpydoc ignore=PR01,RT01
1162- """Helper function for Harrell-Davis quantile method."""
1163- # For now, implement a simplified version that falls back to linear method
1164- # since betainc is not available in the array API standard
1165- return _quantile_hf (y , p , n , "linear" , xp )
0 commit comments