Map to values of sigma and compute equidistant binning in sigma.

chi2bins(chivals, ndf, k)

Arguments

chivals

vector with chi2 values

ndf

number of parameters (degrees of freedom of the chi2 distribution)

k

number of bins

Value

bin assignment for each point