Global estimation of n unknown frequencies