def dissimilarity_weights(m): w = int((m-1)/2) v = range(-w, w+1) [x, y] = meshgrid(v, v) g=norm.pdf(x)*norm.pdf(y) return g