Update Sm1 calculation
Sm1 will now be taken as the maximum of either the period = 1.0
second value or 0.90 * maximum of the considered period values. More succinctly:
sm1 = Math.max(sam[a], 0.9 * sm1);
Note: This is done immediately after
sm1
is defined as the largest value in the subset of thesam
array.
Edited by Martinez, Eric M.