Skip to content

Commit

Permalink
updated quantile function
Browse files Browse the repository at this point in the history
  • Loading branch information
majoma7 committed May 21, 2024
1 parent a850a74 commit fad8f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddop/newsvendor/_SampleAverageApproximationNewsvendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _findQ(self, weights):

for k in range(self.n_outputs_):
alpha = self.cu_[k] / (self.cu_[k] + self.co_[k])
q.append(np.quantile(y[:, k], alpha, interpolation="higher"))
q.append(np.quantile(y[:, k], alpha, interpolation="inverted_cdf"))

return q

Expand Down

0 comments on commit fad8f7f

Please sign in to comment.