Completed remove duplicate frequencies function
Implemented apply_antenna_factor()