mjskay / ggdist

Visualizations of distributions and uncertainty

Home Page:https://mjskay.github.io/ggdist/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use optimization for bin nudging

mjskay opened this issue · comments

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).