calculate_histogram_bins Subroutine

public subroutine calculate_histogram_bins(data, n_bins, normalize_density, bin_edges, bin_counts)

Calculate histogram bin edges and counts from data

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: data(:)
integer, intent(in) :: n_bins
logical, intent(in) :: normalize_density
real(kind=wp), intent(out), allocatable :: bin_edges(:)
real(kind=wp), intent(out), allocatable :: bin_counts(:)