06 2021 档案

摘要:a = np.array([1,2,3,4,4,5,2,1]) 是np.array而不是arange() 还可以加参数dtype = float 例如a = np.array([1,2,3,4,4,5,2,1],dtype = float) 还有一种方法是:创建一个1000*1000*3的RGB图片 阅读全文
posted @ 2021-06-18 09:04 bH1pJ 阅读(19) 评论(0) 推荐(0) 编辑
摘要:https://www.runoob.com/python/att-string-format.html {:0>2d} 宽度为2,前边补0 保留小数点后两位 {:.2f} "{:s}, Time:{:.2f}min, Size:{:.2f}Gb".format(id, idTime/1000/60 阅读全文
posted @ 2021-06-18 09:02 bH1pJ 阅读(26) 评论(0) 推荐(0) 编辑
摘要:一维: a=medfilt1(x,5); 二维 b=medfilt2(x0,[n,n]); 阅读全文
posted @ 2021-06-17 18:18 bH1pJ 阅读(100) 评论(0) 推荐(0) 编辑
摘要:1、小波函数和小波变换之间的关系? 和傅里叶变换类似。在FFT中,一个信号由无数个sin和cos构成。 那么在小波变换变换中,一个信号由无数个小波基函数构成。 常见的小波基函数有哪些? 2、小波变换中的两个基本概念,scale和shift 短时傅里叶变换... 阅读全文
posted @ 2021-06-17 17:42 bH1pJ 阅读(910) 评论(0) 推荐(0) 编辑
摘要:有点不方便哦 阅读全文
posted @ 2021-06-17 16:29 bH1pJ 阅读(104) 评论(0) 推荐(0) 编辑
摘要:import matplotlib.pyplot as plt #这里应该把trace plot 出来,同时,还应该把峰值给plot出来; plt.figure() plt.plot(sigAv, color='red', label='dis') plt.plot(peaks, sigAv[pea 阅读全文
posted @ 2021-06-16 18:27 bH1pJ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#这里应该把trace plot 出来,同时,还应该把峰值给plot出来;plt.figure()plt.plot(sigAv, color='red', label='dis')plt.plot(peaks, sigAv[peaks], "x")plt.sa... 阅读全文
posted @ 2021-06-16 18:27 bH1pJ 阅读(94) 评论(0) 推荐(0) 编辑
摘要:w=2π·f f 阅读全文
posted @ 2021-06-16 18:26 bH1pJ 阅读(93) 评论(0) 推荐(0) 编辑
摘要:最后使用plt.show()即可 阅读全文
posted @ 2021-06-16 15:52 bH1pJ 阅读(662) 评论(0) 推荐(0) 编辑
摘要:python pycharm如何自动show出图片 踏破铁鞋无ni chu 啊 plt.interactive(True) scientific mode 阅读全文
posted @ 2021-06-16 14:13 bH1pJ 阅读(35) 评论(0) 推荐(0) 编辑
摘要:python pycharm如何自动show出图片 踏破铁鞋无ni chu 啊 plt.interactive(True) 阅读全文
posted @ 2021-06-16 14:14 bH1pJ 阅读(258) 评论(0) 推荐(0) 编辑
摘要:坑 plt.interactive(True) 阅读全文
posted @ 2021-06-16 13:53 bH1pJ 阅读(60) 评论(0) 推荐(0) 编辑
摘要:a = np.array([1,2,3,4,4,5,2,1]) 是np.array而不是arange() 还可以加参数dtype = float 例如a = np.array([1,2,3,4,4,5,2,1],dtype = 'float') ... 阅读全文
posted @ 2021-06-16 12:59 bH1pJ 阅读(121) 评论(0) 推荐(0) 编辑
摘要:原始信号直接乘上-1. 继续使用find_peak函数 阅读全文
posted @ 2021-06-16 12:43 bH1pJ 阅读(246) 评论(0) 推荐(0) 编辑
摘要:#寻找峰谷,并进行标记;sig = bodyPart4['dis'].to_numpy()sigAv = moving_average(sig, 3)#做一下简单的滑动平均plt.plot(sigAv, 'g')np.savetxt(r"D:\PythonPr... 阅读全文
posted @ 2021-06-16 11:36 bH1pJ 阅读(361) 评论(0) 推荐(0) 编辑
摘要:def moving_average(interval, windowsize): window = np.ones(int(windowsize)) / float(windowsize) re = np.convolve(interval, w... 阅读全文
posted @ 2021-06-16 11:35 bH1pJ 阅读(617) 评论(0) 推荐(0) 编辑
摘要:左上角的坐标X,Y 以及ROI的width和hight 阅读全文
posted @ 2021-06-16 11:34 bH1pJ 阅读(71) 评论(0) 推荐(0) 编辑
摘要:我去震惊一百年。 有点过于好用了。(前提,梯子的速度得够快) 下载地址: Publish or Perish 阅读全文
posted @ 2021-06-15 11:44 bH1pJ 阅读(67) 评论(0) 推荐(0) 编辑
摘要:我去震惊一百年。 有点过于好用了。(前提,梯子的速度得够快) ------------------ 下载地址: https://harzing.com/resources/publish-or-perish ... 阅读全文
posted @ 2021-06-15 11:45 bH1pJ 阅读(1902) 评论(0) 推荐(0) 编辑
摘要:1、 有了__init__.py,那么这个文件夹 就变成了一个Python包 2、__init__.py里边的函数在import的时候,会被自动执行。 阅读全文
posted @ 2021-06-15 09:31 bH1pJ 阅读(50) 评论(0) 推荐(0) 编辑
摘要:https://jingyan.baidu.com/article/cb5d610559ed31405d2fe010.html 可以借鉴以上策略:↑ 阅读全文
posted @ 2021-06-13 12:30 bH1pJ 阅读(31) 评论(0) 推荐(0) 编辑
摘要:我也是崩溃了。 阅读全文
posted @ 2021-06-13 00:21 bH1pJ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/liangjianli/p/11616067.html 阅读全文
posted @ 2021-06-12 20:42 bH1pJ 阅读(432) 评论(0) 推荐(0) 编辑
摘要:坑 就没有自动同步的嘛? 需要一张,一张得上传。 感觉效率很低啊。 阅读全文
posted @ 2021-06-10 14:50 bH1pJ 阅读(276) 评论(0) 推荐(0) 编辑
摘要:http://mohu.org/info/symbols/symbols.htm https://www.math.pku.edu.cn/teachers/lidf/docs/textrick/index.htm 阅读全文
posted @ 2021-06-10 14:30 bH1pJ 阅读(33) 评论(0) 推荐(0) 编辑
摘要:http://mohu.org/info/symbols/symbols.htm 阅读全文
posted @ 2021-06-10 14:30 bH1pJ 阅读(47) 评论(0) 推荐(0) 编辑
摘要:# 批量删除PM1244中CellVideo2# 请非常谨慎的使用。import shutilimport os# PMRootPath = r'X:/PM210603161151244'PMRootPath = r'D:/Data/SanChaShenJin... 阅读全文
posted @ 2021-06-07 17:36 bH1pJ 阅读(84) 评论(0) 推荐(0) 编辑
摘要:控制面板 控制面板\所有控制面板项\凭据管理器 阅读全文
posted @ 2021-06-07 13:06 bH1pJ 阅读(62) 评论(0) 推荐(0) 编辑
摘要:介绍的还是挺详细的。 阅读全文
posted @ 2021-06-06 16:20 bH1pJ 阅读(45) 评论(0) 推荐(0) 编辑
摘要:(1)确定要删除的区间[100,200] (2)A = duplicate[0,100],以及B = duplicate[200,end]; (3)合并A+B; https://blog.csdn.net/Hodors/article/details/112... 阅读全文
posted @ 2021-06-04 16:35 bH1pJ 阅读(339) 评论(0) 推荐(0) 编辑
摘要:Before = np.arange(range[0]-frame*n, range[0], n)During = np.arange(range[0], range[1], n)After = np.arange(range[1], range[1]+fra... 阅读全文
posted @ 2021-06-04 14:09 bH1pJ 阅读(201) 评论(0) 推荐(0) 编辑
摘要:https://www.cnpython.com/qa/38388 这个网站总结的非常详细。 import numpy as npa = np.arange(1,11,1)print(a)print(a[::3]) 阅读全文
posted @ 2021-06-04 13:01 bH1pJ 阅读(674) 评论(0) 推荐(0) 编辑
摘要:Prism存在致命缺陷(Group Data的数据结构,A组[Column]的A1[Row]组合标签下,最多只能放256个数据点)。如何解决? 好像找到了解决方案: 如下↓ 用Nested Table Nested 不提供如下的结果图类型: 懵... 阅读全文
posted @ 2021-06-04 09:37 bH1pJ 阅读(90) 评论(0) 推荐(0) 编辑
摘要:PupilSize = PupilSize[PupilSize['PupilSize'] > 200]#只要大于200以上的瞳孔 阅读全文
posted @ 2021-06-03 22:20 bH1pJ 阅读(81) 评论(0) 推荐(0) 编辑
摘要:看着心烦。算了,不管了 阅读全文
posted @ 2021-06-03 21:51 bH1pJ 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-03 17:57 bH1pJ 阅读(20) 评论(0) 推荐(0) 编辑
摘要:(1)分析需求: 我有3组数据。每一组,有三列(代表做了三次实验) 方差分析 (1)方差分析和F检验是同义词; (2)假设检验(Hypothesis Test)概述,用一些特定的数值来确定样本是否来自某一个总体。 (3)只要提到假设检验,先说H... 阅读全文
posted @ 2021-06-03 13:54 bH1pJ 阅读(1055) 评论(0) 推荐(0) 编辑
摘要:为什么pycharm的jupyter的debug没有 debug python consle(用起来真不方便啊) 坑 已经反馈给anna了。希望他们能早日解决。 阅读全文
posted @ 2021-06-02 16:07 bH1pJ 阅读(50) 评论(0) 推荐(0) 编辑
摘要:a=[1,2,3] b= [4,5,6] c=a+b c= [1,2,3,4,5,6] 阅读全文
posted @ 2021-06-02 14:48 bH1pJ 阅读(63) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u011412768/article/details/109522349 这篇博客总结的非常仔细。非常好! 阅读全文
posted @ 2021-06-02 13:48 bH1pJ 阅读(15) 评论(0) 推荐(0) 编辑
摘要:prism脚本语言中,导入数据后边的参数,该怎么放置? 阅读全文
posted @ 2021-06-01 18:45 bH1pJ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:Prism如何修改图的link 阅读全文
posted @ 2021-06-01 15:27 bH1pJ 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-01 12:36 bH1pJ 阅读(81) 评论(0) 推荐(0) 编辑
摘要:newdf = pd.DataFrame(data = df.value.T) 阅读全文
posted @ 2021-06-01 12:36 bH1pJ 阅读(46) 评论(0) 推荐(0) 编辑
摘要:这个答案好 l2.extend(0 for _ in range(abs(len(a1)-len(a2))) 阅读全文
posted @ 2021-06-01 11:32 bH1pJ 阅读(143) 评论(0) 推荐(0) 编辑
摘要:这个答案好 l2.extend(0 for _ in range(abs(len(a1)-len(a2))) 阅读全文
posted @ 2021-06-01 11:33 bH1pJ 阅读(242) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_43828405/article/details/92801613 推荐使用subplots 阅读全文
posted @ 2021-06-01 11:00 bH1pJ 阅读(171) 评论(0) 推荐(0) 编辑
摘要:N09_0027_P1 = N09_0027_P1.reset_index(drop=True) 阅读全文
posted @ 2021-06-01 10:45 bH1pJ 阅读(140) 评论(0) 推荐(0) 编辑
摘要:def search(df, column, keywords): """ Pandas fuzzy search :param df: pandas dataframe :param column: the name of colum... 阅读全文
posted @ 2021-06-01 10:23 bH1pJ 阅读(191) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示