function moved to utils
added cohen's total oscillation.