diff --git a/content/.trash/Homework_1.md b/content/.trash/Homework_1.md deleted file mode 100644 index fc43600d0..000000000 --- a/content/.trash/Homework_1.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Homework 1, student's Problem -tags: - - work-about ---- - -# 0780 - diff --git a/content/.trash/Log_28022024.md b/content/.trash/Log_28022024.md deleted file mode 100644 index d6f611c92..000000000 --- a/content/.trash/Log_28022024.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: A log for test -tags: - - log -date: 2024-02-28 ---- -A log for test \ No newline at end of file diff --git a/content/.trash/Problem.md b/content/.trash/Problem.md deleted file mode 100644 index 3c6fbc30e..000000000 --- a/content/.trash/Problem.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Problem -tags: - - research-about ---- -* UWB signal ejection -* S parameter -> Frequency spectrum -* Know why VNA don't have time domain (circuit view) \ No newline at end of file diff --git a/content/.trash/UWB.md b/content/.trash/UWB.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 10.md b/content/.trash/Untitled 10.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 11.md b/content/.trash/Untitled 11.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 12.md b/content/.trash/Untitled 12.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 13.md b/content/.trash/Untitled 13.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 14.md b/content/.trash/Untitled 14.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 2.md b/content/.trash/Untitled 2.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 3.md b/content/.trash/Untitled 3.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 4.md b/content/.trash/Untitled 4.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 5.md b/content/.trash/Untitled 5.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 6.md b/content/.trash/Untitled 6.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 7.md b/content/.trash/Untitled 7.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 8.md b/content/.trash/Untitled 8.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled 9.md b/content/.trash/Untitled 9.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/Untitled.canvas b/content/.trash/Untitled.canvas deleted file mode 100644 index 9e26dfeeb..000000000 --- a/content/.trash/Untitled.canvas +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/content/.trash/Untitled.md b/content/.trash/Untitled.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/content/.trash/VNA/IFBW.md b/content/.trash/VNA/IFBW.md deleted file mode 100644 index 036c05290..000000000 --- a/content/.trash/VNA/IFBW.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Intermediate Frequency Bandwidth -tags: - - equipment - - VNA - - research-about ---- - diff --git a/content/.trash/attachments/Pasted image 20230918104114.png b/content/.trash/attachments/Pasted image 20230918104114.png deleted file mode 100644 index 51ed6092c..000000000 Binary files a/content/.trash/attachments/Pasted image 20230918104114.png and /dev/null differ diff --git a/content/.trash/attachments/mop.23107.pdf b/content/.trash/attachments/mop.23107.pdf deleted file mode 100644 index 586a37ef2..000000000 Binary files a/content/.trash/attachments/mop.23107.pdf and /dev/null differ diff --git a/content/.trash/dota/attachments/Pasted image 20230918135105.png b/content/.trash/dota/attachments/Pasted image 20230918135105.png deleted file mode 100644 index ed5b209c2..000000000 Binary files a/content/.trash/dota/attachments/Pasted image 20230918135105.png and /dev/null differ diff --git a/content/.trash/dota/dota2_learning_road.md b/content/.trash/dota/dota2_learning_road.md deleted file mode 100644 index dc7fc9eb0..000000000 --- a/content/.trash/dota/dota2_learning_road.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: Dota2 Learning Road -tags: - - data2 - - game ---- - - -# Map 7.33 - -![](dota/attachments/Pasted%20image%2020230918135105.png) - -* [A, Nathan, et al. “Dota 2 New Map April 2023 - Dota 2 Guide.” _IGN_, https://www.ign.com/wikis/dota-2/Dota_2_New_Map_April_2023. Accessed 18 Sept. 2023.](https://www.ign.com/wikis/dota-2/Dota_2_New_Map_April_2023) - - - diff --git a/content/.trash/equip_res_MOC.md b/content/.trash/equip_res_MOC.md deleted file mode 100644 index 8e14d2fb8..000000000 --- a/content/.trash/equip_res_MOC.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Equipment Research MOC -tags: - - MOC ---- - diff --git a/content/.trash/experiment_design.md b/content/.trash/experiment_design.md deleted file mode 100644 index 5c6aeabf0..000000000 --- a/content/.trash/experiment_design.md +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: UWB signal characterization experiment by VNA demo -tags: - - experiment ---- - - -# Experiment Graph Overview - -![](research_career/attachments/Untitled-1.png) - - -In this experiment, we use VNA Port 1 to eject signal and port2 to receive the signal reflecting by the reflection medium, such as burned tissue. - -And we can use VNA to get scattering parameter to do analysis in frequency spectrum, including amplitude information and phase information. - -# Experiment Explanations - -## What is VNA - -![](research_career/attachments/Pasted%20image%2020231016082202.png) - -A Vector Network Analyzer (VNA) is a sophisticated electronic instrument used in the field of radio frequency (RF) and microwave engineering. Its primary function is to measure and characterize the electrical behavior of high-frequency components, such as antennas, cables, and passive RF devices like filters and amplifiers. VNAs are essential tools in the design, testing, and maintenance of RF and microwave systems. -## Ejecting Signal - -The VNA generates an "ejecting signal," also known as the "incident signal" or "test signal", which is usually be a continuous wave (CW) or narrowband signal. In our VNA equipment, the signal is CW signal, which is at discrete frequencies sweeping in the specific frequency range. - -Here I want to name the signal, which is at discrete frequencies sweeping in the specific frequency range, **frequency sweeping signal** - -**So we can not acquire UWB signal directly in VNA.** - -Here are two possible solutions: - -1. Modem our sweep signal to UWB signal. - * I have already find the way to modem chirp signal to UWB signal, here: - [Chirp BOK BPSK.pdf](https://pinktalk.online/research_career/attachments/CN101267424A.pdf) - * Not sure if we can modem our frequency sweeping signal to UWB signal. - -2. Direct using our frequency sweeping signal. - * Though we don't directly eject UWB signal, our ejecting signal also contains discrete frequencies, which are composition of UWB signal. In this way, we can analysis different frequencies component in UWB separately. - * Speculatively, we guess the high frequency part's phase information can provide the range detection function. The low frequency part's amplitude information will have a relation with the reflecting medium. - -In this experiment demo, we use solution 2. - -## Data we get - -In this experiment, we can only get scattering parameter, S11 and S12. - -![](research_career/attachments/Pasted%20image%2020231016091540.png) - -Using this parameter, considering incident as a constant we can get frequency spectrum information, though the signal is not UWB signal - -# Experiment Step - -## 1. Set up Experiment equipment - -* Prepare the experimental apparatus - * VNA, Keysight E5063A 100kHz - 6.5GHz - * UWB antennas - * N, male - SMA male - -* VNA calibration -* Load the UWB antennas to VNA port1 and port2 - - -## 2. Set reference data - -* In antenna's near field and far filed, such as 20cm and 40cm, we need to set a specified medium and get S11 and S12 trace data. -* This two experiments will be our reference. Later we can get other S11 and S12 to compare with this data get range and material. - - -## 3. Data collection - -Collect S11 and S12 trace in different reflection mediums and distances between antennas and mediums. - -## 4. Data analysis - -We want to build relationship between our data with distance and reflection mediums to show that UWB can have the ability to detect burning tissue level. \ No newline at end of file diff --git a/content/.trash/log_06072023.md b/content/.trash/log_06072023.md deleted file mode 100644 index a9ff6c135..000000000 --- a/content/.trash/log_06072023.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Log 2023.07.06 - 路过人间,谁有意见 -tags: -- log -- music ---- - -![](文学/log/2023/7/attachments/7JEC(63A65[8JFI[G6O`IIK_tmb.jpg) \ No newline at end of file diff --git a/content/.trash/log_11092023.md b/content/.trash/log_11092023.md deleted file mode 100644 index ed0653cdf..000000000 --- a/content/.trash/log_11092023.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Log 2023.09.11 - Get some interesting blog here -tags: - - log - - front-end ---- -* [_Building a Frontend Framework; Reactivity and Composability With Zero Dependencies_. https://18alan.space/posts/how-hard-is-it-to-build-a-frontend-framework.html. Accessed 11 Sept. 2023.](https://18alan.space/posts/how-hard-is-it-to-build-a-frontend-framework.html) \ No newline at end of file diff --git a/content/.trash/log_18092023.md b/content/.trash/log_18092023.md deleted file mode 100644 index b00ee053e..000000000 --- a/content/.trash/log_18092023.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Log 2023.09.18 - A Normal Learning Day -tags: - - log ---- - -* learn 红色高棉 by wiki -* try to use [TXYZ](https://txyz.ai/) to read paper \ No newline at end of file diff --git a/content/.trash/spectrum_analyzer.md b/content/.trash/spectrum_analyzer.md deleted file mode 100644 index 63e8dc279..000000000 --- a/content/.trash/spectrum_analyzer.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: Spectrum Analyzer -tags: - - equipment - - research-about ---- - -# What is spectrum analyzer? - -Measure input signal power spectrum -# Spectrum Analyzer for UWB - -## Papers - -### Measurements of UWB through-the-wall propagation using spectrum analyzer and the Hilbert transform - - -[*pdf* - Measurements of UWB through-the-wall propagation using spectrum analyzer and the Hilbert transform](https://pinktalk.online/equipment_research/attachments/mop.23107.pdf) - -![Architect](signal_processing/equipment/attachments/Pasted%20image%2020230918104114.png) - - -# Reference - -* [_Understanding Basic Spectrum Analyzer Operation_. _www.youtube.com_, https://www.youtube.com/watch?v=P5gxNGckjLc. Accessed 13 Sept. 2023.](https://pinktalk.online/%E6%96%87%E5%AD%A6/%E5%8F%A5%E5%AD%90/Feeling/) -* https://www.bilibili.com/video/BV1kG4y1q72V/?spm_id_from=333.337.search-card.all.click&vd_source=c47136abc78922800b17d6ce79d6e19f \ No newline at end of file diff --git a/content/signal_processing/curve_similarity/curve_similarity.md b/content/signal_processing/curve_similarity/curve_similarity.md new file mode 100644 index 000000000..c87c274c3 --- /dev/null +++ b/content/signal_processing/curve_similarity/curve_similarity.md @@ -0,0 +1,13 @@ +--- +title: Curve Similarity +tags: + - signal-processing + - signal + - algorithm +date: 2024-03-18 +--- + +# Method + +* [DTW(Dynamic Time Warping)](computer_sci/deep_learning_and_machine_learning/Trick/DTW.md) +* [Manhattan Distance](signal_processing/curve_similarity/manhattan_distance.md) \ No newline at end of file diff --git a/content/signal_processing/curve_similarity/manhattan_distance.md b/content/signal_processing/curve_similarity/manhattan_distance.md new file mode 100644 index 000000000..434bc2d53 --- /dev/null +++ b/content/signal_processing/curve_similarity/manhattan_distance.md @@ -0,0 +1,72 @@ +--- +title: Manhattan Distance +tags: + - algorithm + - distance +date: 2024-03-18 +--- +在曼哈顿的街道布局中,所有街道都是相互垂直的,因此从一个点到达另一个点,需要沿着水平方向和垂直方向分别移动一定的距离。曼哈顿距离就是这两个距离的总和。 + +$$ +d(A, B) = |x_A - x_B| + |y_A - y_B| +$$ + +曼哈顿距离具有以下特点: + +- 曼哈顿距离是非负的。 +- 曼哈顿距离满足三角不等式。 +- 曼哈顿距离是欧几里得距离的下界。 + + +曼哈顿距离在许多领域都有应用, + +- 图像处理:曼哈顿距离可以用于**计算图像的边缘强度**。 +- 机器学习:曼哈顿距离可以用于计算两个数据点的距离,并用于分类和回归任务。 +- 自然语言处理:曼哈顿距离可以用于**计算两个文本的相似度**。 + + +# Demo + +## Manhattan Distance for Image Edge Strength + + +```python +import numpy as np +import cv2 + +def manhattan_distance(image): + """ + 计算图像边缘强度 + + Args: + image: 形状为 (h, w, 3) 的数组,代表图像 + + Returns: + 形状为 (h, w) 的数组,代表边缘强度 + """ + + # 将图像转换为灰度图像,后面的系数是人眼对红绿蓝敏感度的权重 + gray_image = np.dot(image[...,:3], [0.2989, 0.5870, 0.1140]) + + # 对图像进行高斯滤波 + filtered_image = cv2.GaussianBlur(gray_image, (5, 5), 0) + + # 计算每个像素点与其相邻像素点的曼哈顿距离 + edge_image = np.zeros_like(filtered_image) + for i in range(1, filtered_image.shape[0] - 1): + for j in range(1, filtered_image.shape[1] - 1): + edge_image[i, j] = np.sum(np.abs(filtered_image[i-1:i+2, j-1:j+2] - filtered_image[i, j])) + + return edge_image + +# 读取图像 +image = cv2.imread('image.png') + +# 计算图像边缘强度 +edge_image = manhattan_distance(image) + +# 显示边缘图像 +cv2.imshow('Edge Image', edge_image) +cv2.waitKey(0) +cv2.destroyAllWindows() +``` diff --git a/content/signal_processing/signal_processing_MOC.md b/content/signal_processing/signal_processing_MOC.md index 60cce430e..cd4771521 100644 --- a/content/signal_processing/signal_processing_MOC.md +++ b/content/signal_processing/signal_processing_MOC.md @@ -28,6 +28,10 @@ date: 2024-01-12 * [Hilbert Transform - Envelope](signal_processing/envelope/hilbert_transform.md) +## Curve similarity + + + ## Filter * [Chebyshev Filter](signal_processing/filter/chebyshev_filter.md)