Hi
You should look at the documentation:
"accepting an array of Point2f for the distance attenuation values where each pair in the array contains a distance and a gain scale factor"
I assume that your gain scale factor should be negative in your case.