Commit f67c8356 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: siplify expression

parent 4c66a432
......@@ -91,7 +91,7 @@ ReduceSpectralResponse<TSpectralResponse ,TRSR>
//Compute the surface of the trapezoid
ValuePrecisionType area = (lambda2-lambda1)*rmin + (lambda2-lambda1)*(rmax-rmin)/2.0;
ValuePrecisionType area = (lambda2-lambda1)*(rmax+rmin)/2.0;
res += area;
totalArea += (lambda2-lambda1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment