Skip to content

Commit

Permalink
histogram update
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreza committed Dec 6, 2023
1 parent 34dfc65 commit 9004051
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Utils/histogram.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
export histogram

"""
histogram(array, bins=minimum([100, length(array)]), normalization=:uniform, custom_range=false)
histogram(array; bins=minimum([100, length(array)]), normalization=:uniform, custom_range=false)
# Description
Compute the histogram of an array. Useful for barplot in GLMakie.
# Arguments
- `array::AbstractArray`: Array to compute the histogram of.
# Keyword Arguments
- `bins::Integer`: Number of bins to use.
- `normalization::AbstractArray`: Normalization to use. If `:uniform`, then the normalization is uniform.
- `custom_range::Tuple`: Custom range to use. If `false`, then the range is computed from the data.
Expand Down

0 comments on commit 9004051

Please sign in to comment.