Update for using Kullbak Leibner Divergence for weight computation