Validate the q factor for downsampling

check_q(q, srate)

Arguments

q

Q factor

srate

Sampling rate