[DEV] add noise calculation function