Please wait a minute...
大学物理实验, 2022, 35(6): 85-90     https://doi.org/10.14139/j.cnki.cn22-1228.2022.06.018
  本期目录 | 过刊浏览 | 高级检索 |
Python 在 RLC 串联谐振实验数据处理中的应用
赵文来,杨俊秀,陈秋妹
浙江理工大学 信息学院,浙江 杭州 310018
Application of Data Processing of RLC Series Resonant Circuit Experiment by Python
ZHAO Wenlai,YANG Junxiu,CHEN Qiumei
下载:  PDF (1023KB) 
输出:  BibTeX | EndNote (RIS)      
摘要 

RLC 串联谐振实验是电学的实验之一,以加强对串联谐振电路谐振特性的理解。Python语言在数据分析与处理等方面有很好的应用。首先利用 Python 的第三方库 numpy 对数据进行预处理;其次基于 scikit-learn 建立线性回归模型,通过数据训练、机器学习拟合数据并求解;为判定测试数据的质量,通过 sklearn 对拟合曲线进行均方误差回归损失分析,最后采用 matplotlib 绘制图形,实现数据的可视化。引入 Python 进行数据处理,能快速处理实验数据,绘制拟合曲线并分析测试数据的优劣,形象且直观,对教师评判实验报告的测试数据质量也具有一定的辅助作用。

服务
把本文推荐给朋友
加入引用管理器
E-mail Alert
RSS
作者相关文章
赵文来
杨俊秀
陈秋妹
关键词:  RLC 串联谐振  归一化  幅频特性  拟合  Python  numpy  sklearn     
Abstract: 

RLC series resonant is one of circuit experiments,in order to strengthen the understanding of impedance,current and voltage resonance characteristics.Python language has wide application in data analysis and processing because of concise statements,rich library classes,open source code and etc.Some measurement data of RLC series resonance are analyzed.Firstly,data are preprocessed by numpy library of Python.Secondly,linear regression model is established based on scikit-learn,and data are fitted and solved through data training and machine learning. In order to measure data quality,the mean square error regression loss is analyzed through sklearn. Finally,using matplotlib to achieve data visualization. Python language is introduced for experiment data processing.Students can quickly process data,draw fitting curve and analyze data.It is vivid and intuitive,and it has a certain auxiliary for teachers to judge the quality of the experimental report.

Key words:  series resonance    normalization    amplitude frequency characteristics    fitting    Python    numpy    sklearn
               出版日期:  2022-12-25      发布日期:  2022-12-25      整期出版日期:  2022-12-25
ZTFLH:  TN 30  
引用本文:    
赵文来, 杨俊秀, 陈秋妹. Python 在 RLC 串联谐振实验数据处理中的应用 [J]. 大学物理实验, 2022, 35(6): 85-90.
ZHAO Wenlai, YANG Junxiu, CHEN Qiumei. Application of Data Processing of RLC Series Resonant Circuit Experiment by Python . Physical Experiment of College, 2022, 35(6): 85-90.
链接本文:  
http://dawushiyan.jlict.edu.cn/CN/10.14139/j.cnki.cn22-1228.2022.06.018  或          http://dawushiyan.jlict.edu.cn/CN/Y2022/V35/I6/85
[1] 牛相宏 , 潘乘风, 陈 伟, 李兴鳌. Python 语言在大学物理实验数据分析中的应用 [J]. 大学物理实验, 2022, 35(6): 101-105.
[2] 何学敏, 任银娟, 毛巍威, 李三龙. 图解法用于受迫振动实验的定量研究 [J]. 大学物理实验, 2022, 35(2): 112-116.
[3] 刘宁亮, 李沁瑶 , 丁驰竹. 利用牛顿环测量液体折射率仿真实验设计与开发 [J]. 大学物理实验, 2022, 35(2): 85-88.
[4] 原安娟 , 崔 敏, 吴 龙, 何 伟, 欧阳丽婷, 刘立英, 万 欣, 张 兵. 基于虚拟仪器技术的 RLC 电路特性研究 [J]. 大学物理实验, 2022, 35(1): 94-97.
[5] 赵云飞, 邱成锋, 贾小文, 张金凤, 范海英. 基于Excel的直线拟合问题不确定度评定研究 [J]. 大学物理实验, 2022, 35(1): 110-114.
[6] 李春江, 李陆余, 杨靖垒, 李廷荣, 向文丽. 一种简便快速测量折射率的新方法研究 [J]. 大学物理实验, 2020, 33(1): 25-28.
[1] . [J]. Physical Experiment of College, 2020, 33(1): 0 .
[2] . [J]. Physical Experiment of College, 2020, 33(1): 0 .
[3] WU Ming, ZENG Hong, ZHANG Wenpeng, ZHANG Yuanwei, DAI Zhenbing. Theoretical and Experimental Research of A zimuthal-Radial Pendulum [J]. Physical Experiment of College, 2020, 33(1): 1 -6 .
[4] LIU Weiwei, SUN Qing, LIU Chenglin. Research on Selection of Critical Magnetization Current for Measuring Charge-Mass Ratio of Electron by Magnetron Controlling [J]. Physical Experiment of College, 2020, 33(1): 7 -9 .
[5] DENG Li, LIU Yang, ZHANG Hangzhong, ZHOU Kewei, ZHAO guoru, WEI luanyi. MATLAB simulation of Fourier transform of Gaussian beam and the spatial filtering effects basing on 4F optical imaging system [J]. Physical Experiment of College, 2020, 33(1): 10 -16 .
[6] MA Kun. Experiment Study on the Measuring Young' s Modulus by Stretching [J]. Physical Experiment of College, 2020, 33(1): 17 -20 .
[7] FEI Xianxiang, CHEN Chunlei, WANG Wenhua, SHI Wenqing, HUANG Cunyou. Design of Lens Group Focal Length Measurement System Based on Object-Image Parallax Comparison [J]. Physical Experiment of College, 2020, 33(1): 21 -24 .
[8] LI Chunjiang, LI Luyu, YANG Jinglei, LI Tingrong, XIANG Wenli. A New Method for Simple and Rapid Measurement of Refractive Index [J]. Physical Experiment of College, 2020, 33(1): 25 -28 .
[9] WANG Cuiping, YAO Mengyu, YE Liu, LI Aixia, ZHANG Ziyun, DAI Peng. Progress and Applications of Electron Spin Resonance in Biology [J]. Physical Experiment of College, 2020, 33(1): 29 -33 .
[10] CHEN Yingmo, SHEN Siyi, WANG Jie. Study on the Characteristics of Silicon Photocells [J]. Physical Experiment of College, 2020, 33(1): 34 -36 .
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed