5g beam forming

How beam forming work? What are parameter to be defined?