check for _d_avg
use Math::Sma
check for _k_avg, and _d_avg