File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -253,10 +253,6 @@ function find_breaks(v::AbstractVector, qs::AbstractVector)
253
253
q = qs[i]
254
254
end
255
255
end
256
- # if last values in x are equal to q, breaks were not initialized
257
- for i in i: n
258
- breaks[i] = q
259
- end
260
256
return breaks
261
257
end
262
258
@@ -295,9 +291,7 @@ function cut(x::AbstractArray, ngroups::Integer;
295
291
throw (ArgumentError (" NaN values are not allowed in input vector" ))
296
292
end
297
293
qs = quantile! (sorted_x, (1 : (ngroups- 1 ))/ ngroups, sorted= true )
298
- @show qs, min_x, max_x
299
294
breaks = [min_x; find_breaks (sorted_x, qs); max_x]
300
- @show breaks
301
295
if ! allowempty && ! allunique (@view breaks[1 : end - 1 ])
302
296
throw (ArgumentError (" cannot compute $ngroups quantiles due to " *
303
297
" too many duplicated values in `x`. " *
You can’t perform that action at this time.
0 commit comments