Skip to content

Commit

Permalink
correct params for np.percentile
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-beta-soup committed Nov 7, 2023
1 parent 8fe2a7f commit b6366e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/decile.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def trim_zeros(filt: np.ndarray, trim='fb') -> np.ndarray:
return filt[i:j]

def calculate_deciles(data: np.ndarray) -> np.ndarray:
deciles = np.quantile(
deciles = np.percentile(
trim_zeros(np.sort(data.flatten(), axis=0, kind='stable'), trim='f'),
np.arange(10, 100, 10),
method='closest_observation'
Expand Down

0 comments on commit b6366e9

Please sign in to comment.