* Fix wrong mathematical formula in the PVI index computation in i.vi * fix #1984
@@ -17,7 +17,7 @@ double p_vi(double redchan, double nirchan)
result = -1.0;
}
else {
- result = (sin(1) * nirchan) / (cos(1) * redchan);
+ result = (sin(1) * nirchan) - (cos(1) * redchan);
return result;