A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
three-gpp-channel-consistency-example Namespace Reference

Functions

 add_state_vlines (ax, add_legend=False)
 update (frame_idx)

Variables

 add_legend
 ani
 ax_map = axes[0, 0]
 ax_snr = axes[0, 1]
 ax_snr_diff = axes[1, 1]
 ax_snr_zoom = axes[1, 0]
 axes
 axes_snr
 bbox_inches
 buildings
 df = pd.read_csv("3gpp-channel-consistency-output.txt", sep=r"\s+", comment="#")
 dpi
 fig
 fig_snr
 figsize
 fps
 frame_indices = range(0, n_samples, frame_step)
 frame_step = max(1, n_samples // max_frames)
 linewidth
 max_abs_dsnr = float(np.max(np.abs(snr_diff)))
int max_frames = 800
 n_samples = len(df)
 prev_state = state.shift(1, fill_value=state.iloc[0])
 rect = patches.Rectangle((x0, y0), x1 - x0, y1 - y0, color="gray", alpha=0.5)
 rx_circle = patches.Circle((0.0, 0.0), 5.0, color="red", alpha=0.35)
 rx_x = df[RX_X_COL]
str RX_X_COL = "RxPosX[m]"
 rx_y = df[RX_Y_COL]
str RX_Y_COL = "RxPosY[m]"
 s_cur_is_nlos = s_cur.startswith("NLOS")
 s_prev_is_nlos = s_prev.startswith("NLOS")
 sharex
 snr = df[SNR_COL]
str SNR_COL = "SNR[dB]"
 snr_diff = snr.diff().fillna(0.0)
int snr_diff_ymax = +35
int snr_diff_ymin = -35
float snr_margin = 3.0
 snr_max = snr.max()
 snr_min = snr.min()
int snr_ymax = 30
int snr_ymin = -60
 state = df[STATE_COL].astype(str)
str STATE_COL = "ChannelState"
 t_max = time.max()
 t_min = time.min()
 time = df[TIME_COL]
str TIME_COL = "Time[s]"
list times_LN = []
list times_NL = []
 tx_circle = patches.Circle((0.0, 0.0), 5.0, color="blue", alpha=0.35)
 tx_x = df[TX_X_COL]
str TX_X_COL = "TxPosX[m]"
 tx_y = df[TX_Y_COL]
str TX_Y_COL = "TxPosY[m]"
 writer
 x0
 x1
 y0
 y1
float zoom_window_s = 0.05

Function Documentation

◆ add_state_vlines()

three-gpp-channel-consistency-example.add_state_vlines ( ax,
add_legend = False )
Draw vertical lines for LOS/NLOS transitions, with different types.

Definition at line 67 of file three-gpp-channel-consistency-example.py.

◆ update()

three-gpp-channel-consistency-example.update ( frame_idx)

Definition at line 222 of file three-gpp-channel-consistency-example.py.

Variable Documentation

◆ add_legend

three-gpp-channel-consistency-example.add_legend

Definition at line 169 of file three-gpp-channel-consistency-example.py.

◆ ani

three-gpp-channel-consistency-example.ani
Initial value:
1= animation.FuncAnimation(
2 fig,
3 update,
4 frames=frame_indices,
5 interval=0,
6 blit=False,
7)

Definition at line 251 of file three-gpp-channel-consistency-example.py.

◆ ax_map

three-gpp-channel-consistency-example.ax_map = axes[0, 0]

Definition at line 130 of file three-gpp-channel-consistency-example.py.

◆ ax_snr

three-gpp-channel-consistency-example.ax_snr = axes[0, 1]

Definition at line 131 of file three-gpp-channel-consistency-example.py.

◆ ax_snr_diff

three-gpp-channel-consistency-example.ax_snr_diff = axes[1, 1]

Definition at line 133 of file three-gpp-channel-consistency-example.py.

◆ ax_snr_zoom

three-gpp-channel-consistency-example.ax_snr_zoom = axes[1, 0]

Definition at line 132 of file three-gpp-channel-consistency-example.py.

◆ axes

three-gpp-channel-consistency-example.axes

Definition at line 128 of file three-gpp-channel-consistency-example.py.

◆ axes_snr

three-gpp-channel-consistency-example.axes_snr

Definition at line 197 of file three-gpp-channel-consistency-example.py.

◆ bbox_inches

three-gpp-channel-consistency-example.bbox_inches

Definition at line 214 of file three-gpp-channel-consistency-example.py.

◆ buildings

three-gpp-channel-consistency-example.buildings
Initial value:
1= pd.read_csv(
2 "3gpp-channel-consistency-buildings.txt", sep=r"\s+", comment="#", header=None
3)

Definition at line 150 of file three-gpp-channel-consistency-example.py.

◆ df

three-gpp-channel-consistency-example.df = pd.read_csv("3gpp-channel-consistency-output.txt", sep=r"\s+", comment="#")

Definition at line 19 of file three-gpp-channel-consistency-example.py.

◆ dpi

three-gpp-channel-consistency-example.dpi

Definition at line 128 of file three-gpp-channel-consistency-example.py.

◆ fig

three-gpp-channel-consistency-example.fig

Definition at line 128 of file three-gpp-channel-consistency-example.py.

◆ fig_snr

three-gpp-channel-consistency-example.fig_snr

Definition at line 197 of file three-gpp-channel-consistency-example.py.

◆ figsize

three-gpp-channel-consistency-example.figsize

Definition at line 128 of file three-gpp-channel-consistency-example.py.

◆ fps

three-gpp-channel-consistency-example.fps

Definition at line 259 of file three-gpp-channel-consistency-example.py.

◆ frame_indices

three-gpp-channel-consistency-example.frame_indices = range(0, n_samples, frame_step)

Definition at line 121 of file three-gpp-channel-consistency-example.py.

◆ frame_step

three-gpp-channel-consistency-example.frame_step = max(1, n_samples // max_frames)

Definition at line 120 of file three-gpp-channel-consistency-example.py.

◆ linewidth

three-gpp-channel-consistency-example.linewidth

Definition at line 167 of file three-gpp-channel-consistency-example.py.

◆ max_abs_dsnr

float three-gpp-channel-consistency-example.max_abs_dsnr = float(np.max(np.abs(snr_diff)))

Definition at line 103 of file three-gpp-channel-consistency-example.py.

◆ max_frames

int three-gpp-channel-consistency-example.max_frames = 800

Definition at line 119 of file three-gpp-channel-consistency-example.py.

◆ n_samples

three-gpp-channel-consistency-example.n_samples = len(df)

Definition at line 118 of file three-gpp-channel-consistency-example.py.

◆ prev_state

three-gpp-channel-consistency-example.prev_state = state.shift(1, fill_value=state.iloc[0])

Definition at line 49 of file three-gpp-channel-consistency-example.py.

◆ rect

three-gpp-channel-consistency-example.rect = patches.Rectangle((x0, y0), x1 - x0, y1 - y0, color="gray", alpha=0.5)

Definition at line 156 of file three-gpp-channel-consistency-example.py.

◆ rx_circle

three-gpp-channel-consistency-example.rx_circle = patches.Circle((0.0, 0.0), 5.0, color="red", alpha=0.35)

Definition at line 146 of file three-gpp-channel-consistency-example.py.

◆ rx_x

three-gpp-channel-consistency-example.rx_x = df[RX_X_COL]

Definition at line 34 of file three-gpp-channel-consistency-example.py.

◆ RX_X_COL

str three-gpp-channel-consistency-example.RX_X_COL = "RxPosX[m]"

Definition at line 25 of file three-gpp-channel-consistency-example.py.

◆ rx_y

three-gpp-channel-consistency-example.rx_y = df[RX_Y_COL]

Definition at line 35 of file three-gpp-channel-consistency-example.py.

◆ RX_Y_COL

str three-gpp-channel-consistency-example.RX_Y_COL = "RxPosY[m]"

Definition at line 26 of file three-gpp-channel-consistency-example.py.

◆ s_cur_is_nlos

three-gpp-channel-consistency-example.s_cur_is_nlos = s_cur.startswith("NLOS")

Definition at line 59 of file three-gpp-channel-consistency-example.py.

◆ s_prev_is_nlos

three-gpp-channel-consistency-example.s_prev_is_nlos = s_prev.startswith("NLOS")

Definition at line 58 of file three-gpp-channel-consistency-example.py.

◆ sharex

three-gpp-channel-consistency-example.sharex

Definition at line 197 of file three-gpp-channel-consistency-example.py.

◆ snr

three-gpp-channel-consistency-example.snr = df[SNR_COL]

Definition at line 36 of file three-gpp-channel-consistency-example.py.

◆ SNR_COL

str three-gpp-channel-consistency-example.SNR_COL = "SNR[dB]"

Definition at line 28 of file three-gpp-channel-consistency-example.py.

◆ snr_diff

three-gpp-channel-consistency-example.snr_diff = snr.diff().fillna(0.0)

Definition at line 44 of file three-gpp-channel-consistency-example.py.

◆ snr_diff_ymax

int three-gpp-channel-consistency-example.snr_diff_ymax = +35

Definition at line 110 of file three-gpp-channel-consistency-example.py.

◆ snr_diff_ymin

int three-gpp-channel-consistency-example.snr_diff_ymin = -35

Definition at line 109 of file three-gpp-channel-consistency-example.py.

◆ snr_margin

float three-gpp-channel-consistency-example.snr_margin = 3.0

Definition at line 95 of file three-gpp-channel-consistency-example.py.

◆ snr_max

three-gpp-channel-consistency-example.snr_max = snr.max()

Definition at line 94 of file three-gpp-channel-consistency-example.py.

◆ snr_min

three-gpp-channel-consistency-example.snr_min = snr.min()

Definition at line 93 of file three-gpp-channel-consistency-example.py.

◆ snr_ymax

int three-gpp-channel-consistency-example.snr_ymax = 30

Definition at line 98 of file three-gpp-channel-consistency-example.py.

◆ snr_ymin

int three-gpp-channel-consistency-example.snr_ymin = -60

Definition at line 99 of file three-gpp-channel-consistency-example.py.

◆ state

three-gpp-channel-consistency-example.state = df[STATE_COL].astype(str)

Definition at line 39 of file three-gpp-channel-consistency-example.py.

◆ STATE_COL

str three-gpp-channel-consistency-example.STATE_COL = "ChannelState"

Definition at line 27 of file three-gpp-channel-consistency-example.py.

◆ t_max

three-gpp-channel-consistency-example.t_max = time.max()

Definition at line 90 of file three-gpp-channel-consistency-example.py.

◆ t_min

three-gpp-channel-consistency-example.t_min = time.min()

Definition at line 89 of file three-gpp-channel-consistency-example.py.

◆ time

three-gpp-channel-consistency-example.time = df[TIME_COL]

Definition at line 31 of file three-gpp-channel-consistency-example.py.

◆ TIME_COL

str three-gpp-channel-consistency-example.TIME_COL = "Time[s]"

Definition at line 22 of file three-gpp-channel-consistency-example.py.

◆ times_LN

list three-gpp-channel-consistency-example.times_LN = []

Definition at line 51 of file three-gpp-channel-consistency-example.py.

◆ times_NL

list three-gpp-channel-consistency-example.times_NL = []

Definition at line 52 of file three-gpp-channel-consistency-example.py.

◆ tx_circle

three-gpp-channel-consistency-example.tx_circle = patches.Circle((0.0, 0.0), 5.0, color="blue", alpha=0.35)

Definition at line 145 of file three-gpp-channel-consistency-example.py.

◆ tx_x

three-gpp-channel-consistency-example.tx_x = df[TX_X_COL]

Definition at line 32 of file three-gpp-channel-consistency-example.py.

◆ TX_X_COL

str three-gpp-channel-consistency-example.TX_X_COL = "TxPosX[m]"

Definition at line 23 of file three-gpp-channel-consistency-example.py.

◆ tx_y

three-gpp-channel-consistency-example.tx_y = df[TX_Y_COL]

Definition at line 33 of file three-gpp-channel-consistency-example.py.

◆ TX_Y_COL

str three-gpp-channel-consistency-example.TX_Y_COL = "TxPosY[m]"

Definition at line 24 of file three-gpp-channel-consistency-example.py.

◆ writer

three-gpp-channel-consistency-example.writer

Definition at line 259 of file three-gpp-channel-consistency-example.py.

◆ x0

three-gpp-channel-consistency-example.x0

Definition at line 155 of file three-gpp-channel-consistency-example.py.

◆ x1

three-gpp-channel-consistency-example.x1

Definition at line 155 of file three-gpp-channel-consistency-example.py.

◆ y0

three-gpp-channel-consistency-example.y0

Definition at line 155 of file three-gpp-channel-consistency-example.py.

◆ y1

three-gpp-channel-consistency-example.y1

Definition at line 155 of file three-gpp-channel-consistency-example.py.

◆ zoom_window_s

float three-gpp-channel-consistency-example.zoom_window_s = 0.05

Definition at line 87 of file three-gpp-channel-consistency-example.py.