Text this: Spectrum resource allocation method of maximizing transmission rate in cognitive heterogeneous wireless networks