Use optimization for bin nudging
mjskay opened this issue · comments
Matthew Kay commented
Pretty sure could do constrained least squares where R = diag(bin_count)
and d = bin_count*bin_width
(or normalize by bin width so d = bin_count
) subject to all adjacent pairs being at least binwidth apart (or 1 apart if normalized by binwidth).