computes weights for the algorithm

weights2(dys, s, p, c1, c2)

Arguments

dys

vector of distances

s

real positive number, the s-cale of distances

p

dimension of ambient space

c1

constant for rho_1 function

c2

constant for rho_2 function