swt

时频方向上重排

半腔热情 提交于 2020-08-10 06:51:24
自己挖的坑,死也要往下跳(哭),下面看下重排在S变换中的应用吧 先看几个概念: 时频重排:可以有效的聚集时频能量,提高时频分辨率! 高低频定义:按照 电气和电子工程师学会 (IEEE)制定的频谱划分表,低频频率为30~300kHz,中频频率为300~3000kHz,高频频率为3~30MHz,频率范围在30~300MHz的为甚高频,在300~1000MHz的为特高频。相对于低频信号, 高频信号 变化非常快、有突变;低频信号变化缓慢、波形平滑; 微震信号:微震信号实际上是地震波,地震波都是连续频谱,什么频率成分都有的。反正都很低,几赫兹的量级,反正人耳听不到; 一、同步挤压变换及特点 1.1 同步挤压变换原理 一个时变信号 一般可以分为多个谐波函数的叠加 ,即 式中: 为第K个分量的瞬时振幅; 为第K个分量的瞬时相位; 为噪声或误差; 为分量数 。 同步挤压变换是在其它时频变换(如STFT、CWT、ST)基础上,根据信号各组成分量的时频特征、压缩时频曲线,达到提高时间和空间分辨率的目的 。本文应用的是基于连续小波变换的同步挤压法即SWT。 首先对信号 进行连续小波变换,得到小波系数 : 式中: 分别为尺度和平移因子; 为小波母函数; 为小波函数的共轭复数。根据帕塞瓦尔定理,式(2)在频率域的等价变换式为 式中: 为圆频率; 分别为 的傅里叶变换。通过式(3

How can I specify an Eclipse .classpath entry for specific O/S platform?

江枫思渺然 提交于 2020-08-02 07:22:11
问题 I am working on an SWT project as part of a team. We are constantly breaking each others build environment because Eclipses .classpath file is checked into version control and we include different SWT libraries for our machines. Depending on who committed last, the .classpath entry can be: <classpathentry kind="lib" path="lib/swt/swt-win32.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-carbon.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-gtk.jar"/> It appears that the

How can I specify an Eclipse .classpath entry for specific O/S platform?

别等时光非礼了梦想. 提交于 2020-08-02 07:22:08
问题 I am working on an SWT project as part of a team. We are constantly breaking each others build environment because Eclipses .classpath file is checked into version control and we include different SWT libraries for our machines. Depending on who committed last, the .classpath entry can be: <classpathentry kind="lib" path="lib/swt/swt-win32.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-carbon.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-gtk.jar"/> It appears that the

Unable to open multiple selected files and folders using Eclipse ShowInSystemExplorerHandler API

岁酱吖の 提交于 2020-07-23 06:34:17
问题 Hi I am using Eclipse ShowInSystemExplorerHandler API, it is working fine if I select a single file or folder. But it does not work for multiple selection of files or folders. I provide below the code snippet. Please help me how to resolve so that I should be able to open multiple folders/files in OS specific explorer. By the way I am using structuredSelection.forEach so that I can open all the files and folders. Find below the code. @SuppressWarnings("restriction") public class

Unable to open multiple selected files and folders using Eclipse ShowInSystemExplorerHandler API

喜夏-厌秋 提交于 2020-07-23 06:31:22
问题 Hi I am using Eclipse ShowInSystemExplorerHandler API, it is working fine if I select a single file or folder. But it does not work for multiple selection of files or folders. I provide below the code snippet. Please help me how to resolve so that I should be able to open multiple folders/files in OS specific explorer. By the way I am using structuredSelection.forEach so that I can open all the files and folders. Find below the code. @SuppressWarnings("restriction") public class

Set default font for SWT Shell

我的未来我决定 提交于 2020-07-20 09:33:33
问题 Is there a way to set a default font for the whole Shell such that any new control will use that same font? It seems that right now I have to set the font for every control I create, which leads to too much redundancy. 回答1: Font which is used by default is chosen by platform (see other info in Class Font - SWT: The Standard Widget Toolkit), so it's not possible to set default font for all widgets, if you want that, you have to do it "by hand".. Why are you changing default font anyway..? 回答2:

How to easily get a data reference from an SWT Combo drop list

佐手、 提交于 2020-06-28 12:32:17
问题 How do you get a data reference from an SWT Combo drop list? Currently I need to get the text from the Combo box, then run through my data objects until I reach one that has the same text as what the Combo box reports. Combo combo = new Combo( new Shell(), SWT.READ_ONLY ); for (Person person : People.getPeople()) combo.add( person.getName() ); for (Person person : People.getPeople()) if (combo.getText().equals( person.getName() )) System.out.println( "Person: " + person.getFullName() ); While

How to implement Auto-Hide Scrollbar in SWT Text Component

混江龙づ霸主 提交于 2020-06-25 09:19:08
问题 I have a SWT Text component, for which I set SWT.MULTI , SWT.V_SCROLL and SWT.H_SCROLL to show the scrollbar when required. I found that even content is smaller than the text component then also scrollbar are visible in disable state. Is there is any way through which I can auto hide the scrollbar? Like java Swing has JScrollPane.horizontal_scrollbar_as_needed 回答1: That works on all cases: Text text = new Text(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); Listener scrollBarListener = new

How to add Content Assist to text field in Wizard using SWT java [closed]

半腔热情 提交于 2020-05-16 03:59:45
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I have designed a wizard page with a text field using SWT. I want to add a content assist to the text field i.e , when i press 'Ctrl+space', it has to propose the list of data. Any standard method to implement this feature? 回答1: You can use the JFace ContentProposalAdapter to do

Why do all the images of the Plugin disappear once the plugin is exported as a jar and integrated in the IDE?

安稳与你 提交于 2020-04-17 18:56:43
问题 In my eclipse plugin, while testing the plugin( Run As Eclipse Application )- As seen below, all the images in the New Wizard are rendered properly, highlighted in yellow. However, once the plugin is exported as shown below, and placed as the jar in \eclipse\plugins , all the images are lost. What could be the reason for this? After the jar is placed, the below is rendered without the images- MANIFEST.MF file- 回答1: Eclipse adds the compiled Java classes by default. Other files must be