Overparameterization and Generalization Error: Weighted Trigonometric Interpolation