Negative distance weight function
d=ann_negdist(w,x)
weight
input
negative distance
Calculate negative distance weight function
w = [1 2 3;4 5 6]; x = [1 2; 3 4; 5 6]; d = ann_negdist(w,x)