$w_{j}=b_{j}\biggm{/}\sum_{j=1}^{n}b_{j},$