Count the number of occurrences of pairs of positive integers in two vectors, producing a matrix.
count2d(xb, yb, nb)
A matrix with nb[1]
rows and nb[2]
columns with counts.
It serves as the input for two-dimensional histogram smoothing.
a vector of integers.
a vector of integers.
a vector of length 2 that provides the number of bins for the 2D histogram on x
and y
.
This function builds a two-dimensional histogram, based on two two vectors of bin numbers (obtained
with binit
). Rows where x[i] > nb[1]
or y[i] > nb[2]
are discarded without a warning.