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)
253253 q = qs[i]
254254 end
255255 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
260256 return breaks
261257end
262258
@@ -295,9 +291,7 @@ function cut(x::AbstractArray, ngroups::Integer;
295291 throw (ArgumentError (" NaN values are not allowed in input vector" ))
296292 end
297293 qs = quantile! (sorted_x, (1 : (ngroups- 1 ))/ ngroups, sorted= true )
298- @show qs, min_x, max_x
299294 breaks = [min_x; find_breaks (sorted_x, qs); max_x]
300- @show breaks
301295 if ! allowempty && ! allunique (@view breaks[1 : end - 1 ])
302296 throw (ArgumentError (" cannot compute $ngroups quantiles due to " *
303297 " too many duplicated values in `x`. " *
You can’t perform that action at this time.
0 commit comments