def __init__(self): VerySimplePskSimulationRunner.__init__(self) snr = np.array([0, 2, 4, 6, 8, 10]) self.params.add('SNR', snr) self.rep_max = 5000 self.modulator = fundamental.BPSK() self.progressbar_message = "BPSK Simulation - SNR: {SNR}"
def setUp(self): """Called before each test.""" self.bpsk_obj = fundamental.BPSK()
Nt = 2 Nr = 2 K = 3 H = misc.randn_c(Nr * K, Nt * K) Hquant = my_quant_func(H, Nr, Nt, K, C) if __name__ == '__main__': SNR = 15.0 noise_var = 1 / dB2Linear(SNR) M = 2 NSymbs = 50 rep_max = 300 modulator = fundamental.BPSK() K = 3 Nr = np.ones(K, dtype=int) * 2 Nt = np.ones(K, dtype=int) * 2 Ns = np.ones(K, dtype=int) * 1 multi_user_channel = pyphysim.channels.multiuser.MultiUserChannelMatrix() multi_user_channel_quant = pyphysim.channels.multiuser.MultiUserChannelMatrix( ) multi_user_channel.noise_var = noise_var multi_user_channel_quant.noise_var = noise_var ia_solver = algorithms.MaxSinrIASolver(multi_user_channel_quant) ia_solver.max_iterations = 120 pb = ProgressbarText2(rep_max, '*',