This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| V2I 信道模型教学演示脚本 | |
| ======================== | |
| 本脚本完整实现了 V2I (Vehicle-to-Infrastructure) 通信系统的信道模型, | |
| 适合新人理解和学习 5G V2X 无线通信基础。 | |
| 信道模型基于: | |
| - 3GPP TR 38.901 v16.1.0 (路径损耗) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import torch | |
| import torch.nn as nn | |
| import torch.nn.functional as F | |
| from torchvision import datasets, transforms | |
| from torchvision.transforms import functional as TF | |
| import matplotlib.pyplot as plt | |
| import tkinter as tk | |
| from PIL import Image, ImageDraw, ImageOps | |
| import warnings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cassert> | |
| #include <cstdio> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <memory> | |
| #include <stdexcept> | |
| // helper class for runtime polymorphism demo below | |
| struct B | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SHELL = /bin/sh | |
| OOQP=../../.. | |
| OOQPINCLUDEDIR=$(OOQP)/include | |
| OOQPLIBDIR=$(OOQP)/lib | |
| CXX = c++ | |
| CXXFLAGS =-O |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A C++ Program to implement A* Search Algorithm | |
| #include<bits/stdc++.h> | |
| using namespace std; | |
| #define ROW 9 | |
| #define COL 10 | |
| // Creating a shortcut for int, int pair type | |
| typedef pair<int, int> Pair; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| A* grid planning | |
| author: Atsushi Sakai(@Atsushi_twi) | |
| Nikos Kanargias (nkana@tee.gr) | |
| See Wikipedia article (https://en.wikipedia.org/wiki/A*_search_algorithm) | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdafx.h" | |
| #include "Astar.h" | |
| int map[101][101] = | |
| { | |
| {0,0,0,1,0,1,0,0,0}, | |
| {0,0,0,1,0,1,0,0,0}, | |
| {0,0,0,0,0,1,0,0,0}, | |
| {0,0,0,1,0,1,0,1,0}, | |
| {0,0,0,1,0,1,0,1,0}, | |
| {0,0,0,1,0,0,0,1,0}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import time | |
| import numpy as np | |
| from matplotlib.patches import Rectangle | |
| import point | |
| import random_map |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // C / C++ program for Dijkstra's shortest path algorithm for adjacency | |
| // list representation of graph | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <limits.h> | |
| // A structure to represent a node in adjacency list | |
| struct AdjListNode | |
| { |
NewerOlder