Skip to content

Commit e649c71

Browse files
committed
main page add:
time and frequency analysis formular project explaination
1 parent b948222 commit e649c71

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

Main_Page.py

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,40 @@
77
st.set_page_config(layout="wide") # 设置屏幕展开方式,宽屏模式布局更好
88

99
st.write('## OpenIE 数控机床数据电子仪表盘')
10-
workplan, prop = st.columns(2)
10+
workplan, time, frequency = st.columns(3)
1111

1212
path = './data/mill.xlsx'
1313
workplan_data = pd.read_excel(path, sheet_name='main_data')
1414
workplan.markdown('#### 加工安排')
1515
workplan.write(workplan_data)
1616

17-
prop.markdown('#### 各加工材料占比')
17+
time.markdown('#### 时域特征')
18+
time.write('''
19+
$ 绝对均值:|\\bar{x}|=\\frac{1}{N} \\sum_{i=1}^{N}\left|x_{i}\\right| $ \n
20+
$ 峰值:x_{pesk}=X_{max} $ \n
21+
$ 均方根值:x_{rms}=\sqrt{\\frac{1}{N} \sum_{k=1}^{N} x_{i}^{2}} $ \n
22+
$ 方根幅值:x_{kurtosis}=\\frac{1}{N} \sum_{k=1}^{N}(\pi)^{n} $ \n
23+
$ 峭度值:x_{ra}=\left(\\frac{1}{N} \sum_{i=1}^{N} \sqrt{|x_i|}\\right)^{2} $ \n
24+
$ 波形因子:f_{shape}=\\frac{x_{rms}}{|\\bar{x}|} $ \n
25+
$ 脉冲因子:f_{pulse}=\\frac{x_{peak}}{|x|} $ \n
26+
$ 峰值因子:f_{crest}=\\frac{x_{peak}}{x_{rms}} $ \n
27+
$ 裕度因子:f_{celearance}=\\frac{x_{peak}}{x_{ra}} $ \n
28+
''')
29+
30+
frequency.markdown('#### 频域特征')
31+
frequency.write('''
32+
$ 重心频率:F_{FC}=\\frac{\int_{0}^{+\infty}f(t)FFT(t)dt}{\int_{0}^{+\infty} FFT(t)dt} $ \n
33+
$ 均方频率:F_{MSF}=\\frac{\int_{0}^{+\infty} FFT(t)f(t)^{2}dt}{\int_{0}^{+\infty}FFT(t)dt} $ \n
34+
$ 均方根频率:F_{RMSF}=\sqrt{\\frac{\int_{0}^{+\infty}FFT(t)f(t)^{2}dt}{\int_{0}^{+\infty}FFT(t)dt}} $ \n
35+
$ 频率方差:F_{VF}=\\frac{\int_{0}^{+\infty}(f(t)-\\frac{\int_{0}^{+\infty}f(t)FFT(t)dt}{\int_{0}^{+\infty}FFT(t)dt} )^{2}dt}{\int_{0}^{+\infty}FFT(t)dt} $ \n
36+
$ \ $ \n
37+
''')
38+
frequency.markdown('#### 时频域特征')
39+
frequency.write('''
40+
$ 小波包分析 $ \n
41+
''')
42+
st.write('''
43+
## 说明:
44+
本网站功能是对CNC机床传感器数据进行数据分析以及信号图像可视化,项目源码可在[QianZehao's OpenIE Repository](https://gitee.com/qian_zehao/OpenIE)中获取。 \n
45+
Current、Vibration、AE页面是对机床主轴交流/直流电压信号,主轴/台面的振动和噪声信号进行交互式可视化。
46+
''')

0 commit comments

Comments
 (0)