wts function

Identify weights