pad definition
merged power functions (welch and periodogram)