hist(v,e)
hist(v, e) -> e, counts
Compute the histogram of v
using a vector/range e
as the edges for the bins. The result will be a vector of length length(e) - 1
, such that the element at location i
satisfies sum(e[i] .< v .<= e[i+1])
. Note: Julia does not ignore NaN
values in the computation.
Examples
julia> y = randn(10^1)
hist(y, 5)
(-2.0:1.0:2.0,[1,5,2,2])
See Also
cummax, eigmax, findmax, hist, hist!, hist2d, hist2d!, histrange, indmax, maxabs, maxabs!, maximum!, mean, mean!, median, median!, minabs, minabs!, minimum!, minmax, quantile!, realmax, std, stdm,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.