I need to convert the RSSI value as distance and there is a mathematical expression available for the same to convert i.e.,
d = 10 ^ ((TxPower -Rssi) / 10n) (n ranges from 2 to 4)
It is very difficult to choose the "n" value and it gives me the inaccurate results.
Another method is, nonlinear regression model. Which one gives the best result, as I need to feed the distance values to trilateration technique?