getRegularizedWeight: invert the first factor in w_i; fixes issue #24
Merge pull request #25 from pchalasani/master

getRegularizedWeight: invert the first factor in w_i; fixes issue #24