bincount

Count number of occurrences of each value in slice of non-negative ints.

  1. auto bincount(T xs, size_t minlength)
    pure nothrow @safe
    bincount
    (
    T
    )
    (
    T xs
    ,
    size_t minlength = 0
    )
  2. auto bincount(T xs, W weights, size_t minlength)

Parameters

xs T

input slice

minlength size_t

a minimum number of bins for the output array

Return Value

Type: auto

size_t slice of number of ocurrence TODO: support @nogc

Meta