Пример #1
0
 def __init__(self, file_name='data_bg_129_130.txt'):
     super(freq_env, self).__init__()
     self.action_space = np.linspace(80, 1520, 19, dtype=np.int)
     self.n_actions = len(self.action_space)
     self.n_features = 160
     self.action_last = 0
     self.gen = generator()
     self.model = self.gen.create_model()
     self.current_line = -1
     self.jamm_pos = 0
     self.lines = 100
     self.interval = 5
Пример #2
0
    def __init__(self, file_name='data_bg_129_130.txt'):
        super(freq_env, self).__init__()
        self.action_space = np.linspace(80, 1520, 19, dtype=np.int)
        self.n_actions = len(self.action_space)
        self.n_features = 160
        self.action_last = 0

        self.gen = generator()
        self.model = self.gen.create_model()

        self.jamm_pos = 80
        self.lines = 100
        self.interval = 5

        self.tb = usrp_spetrum_sense.my_top_block()
        self.tb.start()
        self.user_obj = user()
        self.jammer_obj = jammer()