Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make last interval closed in cut #373

Closed
nalimilan opened this issue Oct 25, 2021 · 1 comment · Fixed by #409
Closed

Make last interval closed in cut #373

nalimilan opened this issue Oct 25, 2021 · 1 comment · Fixed by #409
Labels
Milestone

Comments

@nalimilan
Copy link
Member

As discussed at #372.

@bkamins
Copy link
Member

bkamins commented Oct 25, 2021

This is useful as e.g. would be naturally expected to work:

julia> x = rand(10)
10-element Vector{Float64}:
 0.2366632129795181
 0.04511113706323866
 0.8084793399073631
 0.2907765029064078
 0.5881736593087084
 0.41586589602258317
 0.6896384814928804
 0.028969731494246087
 0.9564963314531147
 0.922898163022281

julia> cut(x, quantile(x, [0, 0.5, 1]))
ERROR: ArgumentError: value 0.9564963314531147 (at index 9) does not fall inside the breaks: adapt them manually, or pass extend=true or extend=missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants