CN115456007A - Electromagnetic signal comparison method, device, equipment and storage medium - Google Patents
Electromagnetic signal comparison method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115456007A CN115456007A CN202210899185.9A CN202210899185A CN115456007A CN 115456007 A CN115456007 A CN 115456007A CN 202210899185 A CN202210899185 A CN 202210899185A CN 115456007 A CN115456007 A CN 115456007A
- Authority
- CN
- China
- Prior art keywords
- electromagnetic signal
- test
- main peak
- peak value
- period
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000012360 testing method Methods 0.000 claims abstract description 163
- 230000015654 memory Effects 0.000 claims description 12
- 238000012795 verification Methods 0.000 claims description 6
- 238000013519 translation Methods 0.000 claims description 5
- 238000010200 validation analysis Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 3
- 230000000737 periodic effect Effects 0.000 description 26
- 238000004088 simulation Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000002474 experimental method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000011156 evaluation Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000011158 quantitative evaluation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/001—Measuring interference from external sources to, or emission from, the device under test, e.g. EMC, EMI, EMP or ESD testing
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
Description
技术领域technical field
本公开属于电磁环境效应技术领域,特别涉及一种电磁信号对比方法、装置、设备和存储介质。The disclosure belongs to the technical field of electromagnetic environment effects, and in particular relates to an electromagnetic signal comparison method, device, equipment and storage medium.
背景技术Background technique
电磁信号通常随时间变化很快,信号周期性震荡显著。在电磁环境效应研究中,对电磁信号的对比无法采用通用的统计学方法,特征选择验证(Feature SelectiveValidation,FSV)方法应运而生。Electromagnetic signals usually change rapidly with time, and the signal oscillates significantly periodically. In the study of electromagnetic environmental effects, the comparison of electromagnetic signals cannot use general statistical methods, and the Feature Selective Validation (FSV) method came into being.
FSV方法是电磁仿真有效性评估体系的核心方法。通过获取两个目标电磁信号,基于FSV方法对两个目标电磁信号进行对比,通过对数据的趋势、特征等方面的差异提取,得到定量评价,并将定量评价转化为自然语言描述的六类定性解释。根据六类定性解释的分布情况,可以模拟专家评估结果的分布情况。The FSV method is the core method of the electromagnetic simulation effectiveness evaluation system. By acquiring two target electromagnetic signals, comparing the two target electromagnetic signals based on the FSV method, and extracting the differences in data trends and characteristics, quantitative evaluation is obtained, and the quantitative evaluation is transformed into six types of qualitative descriptions described in natural language Explanation. According to the distribution of six types of qualitative explanations, the distribution of expert evaluation results can be simulated.
基于FSV方法对两个目标电磁信号进行对比时,对比结果不能反映两个目标电磁信号的真实差异,对比结果不准确。When comparing two target electromagnetic signals based on the FSV method, the comparison result cannot reflect the real difference between the two target electromagnetic signals, and the comparison result is inaccurate.
发明内容Contents of the invention
本公开实施例提供了一种电磁信号对比方法、装置、设备和存储介质,能够提高对比结果准确性。所述技术方案如下:Embodiments of the present disclosure provide an electromagnetic signal comparison method, device, equipment, and storage medium, which can improve the accuracy of comparison results. Described technical scheme is as follows:
一方面,提供了一种电磁信号对比方法,所述方法包括:获取第一测试电磁信号和第一参考电磁信号,所述第一测试电磁信号是由待验证电磁模型产生的,所述第一参考电磁信号是由参考电磁模型产生的;对所述第一测试电磁信号在时间轴上进行平移,得到第二测试电磁信号,所述第二测试电磁信号的主峰峰值对应的时间和所述第一参考电磁信号的主峰峰值对应的时间重合;选取所述第一参考电磁信号和所述第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号,所述目标周期为主峰以及主峰相邻的多个波峰对应的周期;基于特征选择验证FSV方法对所述第二参考电磁信号和所述第三测试电磁信号进行对比,得到第一对比结果。In one aspect, a method for comparing electromagnetic signals is provided, the method comprising: acquiring a first test electromagnetic signal and a first reference electromagnetic signal, the first test electromagnetic signal is generated by an electromagnetic model to be verified, and the first The reference electromagnetic signal is generated by a reference electromagnetic model; the first test electromagnetic signal is shifted on the time axis to obtain a second test electromagnetic signal, and the time corresponding to the main peak value of the second test electromagnetic signal is the same as the first The time corresponding to the main peak of a reference electromagnetic signal coincides; select the electromagnetic signal of the first reference electromagnetic signal and the second test electromagnetic signal in the target period as the second reference electromagnetic signal and the third test electromagnetic signal, so The target period is the period corresponding to the main peak and multiple peaks adjacent to the main peak; based on the feature selection verification FSV method, the second reference electromagnetic signal and the third test electromagnetic signal are compared to obtain the first comparison result.
可选地,所述选取所述第一参考电磁信号和所述第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号,包括:基于所述第一参考电磁信号的目标波峰峰值与所述第一参考电磁信号的主峰峰值之间的关系,确定所述目标周期的周期数,其中,所述目标波峰为所述第一参考电磁信号的主峰相邻的第N个波峰;将所述第一参考电磁信号和所述第二测试电磁信号在主峰以及主峰相邻的N个波峰对应的周期内的电磁信号,作为所述第二参考电磁信号和所述第三测试电磁信号,其中,所述周期数等于N+1。Optionally, the selecting the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within the target period as the second reference electromagnetic signal and the third test electromagnetic signal includes: based on the first Referring to the relationship between the target peak value of the electromagnetic signal and the main peak value of the first reference electromagnetic signal, determine the cycle number of the target cycle, wherein the target wave peak is adjacent to the main peak value of the first reference electromagnetic signal The Nth wave peak of the first reference electromagnetic signal and the electromagnetic signal of the first reference electromagnetic signal and the second test electromagnetic signal in the period corresponding to the main peak and the N peaks adjacent to the main peak, as the second reference electromagnetic signal and the electromagnetic signal The third test electromagnetic signal, wherein the number of periods is equal to N+1.
可选地,基于所述第一参考电磁信号的目标波峰峰值与所述第一参考电磁信号的主峰峰值之间的关系,确定所述目标周期的周期数,包括:当所述第一参考电磁信号的主峰相邻的第N个波峰峰值大于或者等于所述第一参考电磁信号的主峰峰值的设定比例,以及所述第一参考电磁信号的主峰相邻的第N+1个波峰峰值小于所述第一参考电磁信号的主峰峰值的设定比例时,确定所述目标周期的周期数为N+1,所述设定比例取值范围为[40%,60%]。Optionally, based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal, determining the period number of the target period includes: when the first reference electromagnetic signal The Nth peak-to-peak value adjacent to the main peak of the signal is greater than or equal to the set ratio of the main peak-to-peak value of the first reference electromagnetic signal, and the N+1th peak-to-peak value adjacent to the main peak of the first reference electromagnetic signal is less than When setting the ratio of the main peak value of the first reference electromagnetic signal, it is determined that the number of cycles of the target cycle is N+1, and the value range of the setting ratio is [40%, 60%].
可选地,该方法还包括:基于周期幅度尺度和周期时间尺度中的至少一种,对所述第二参考电磁信号和所述第三测试电磁信号进行对比,得到第二对比结果;其中,所述周期幅度尺度为主峰峰值与主峰相邻的第N个波峰峰值之间的差值的绝对值与所述N的比值;所述周期时间尺度为主峰峰值对应的时间与主峰相邻的第N个波峰峰值对应的时间之间的差值的绝对值与所述N的比值;所述基于特征选择验证FSV方法对所述第二参考电磁信号和所述第三测试电磁信号进行对比,包括:当所述第二对比结果满足设定条件时,基于特征选择验证FSV方法对所述第二参考电磁信号和所述第三测试电磁信号进行对比。Optionally, the method further includes: comparing the second reference electromagnetic signal and the third test electromagnetic signal based on at least one of a periodic amplitude scale and a periodic time scale to obtain a second comparison result; wherein, The cycle amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the Nth adjacent peak of the main peak to the N; the time scale of the cycle is the time corresponding to the peak value of the main peak and the adjacent N The ratio of the absolute value of the difference between the times corresponding to N peaks and peaks to the N; the feature selection-based verification FSV method compares the second reference electromagnetic signal with the third test electromagnetic signal, including : when the second comparison result satisfies the set condition, compare the second reference electromagnetic signal with the third test electromagnetic signal based on the feature selection verification FSV method.
可选地,所述设定条件包括以下至少一种:所述第二参考电磁信号周期幅度尺度和所述第三测试电磁信号的周期幅度尺度之间的比值在预设范围之内;所述第二参考电磁信号周期时间尺度和所述第三测试电磁信号的周期时间尺度之间的比值在预设范围之内。Optionally, the setting conditions include at least one of the following: the ratio between the period amplitude scale of the second reference electromagnetic signal and the period amplitude scale of the third test electromagnetic signal is within a preset range; the A ratio between the cycle time scale of the second reference electromagnetic signal and the cycle time scale of the third test electromagnetic signal is within a preset range.
可选地,所述对所述第一测试电磁信号在时间轴上进行平移,得到第二测试电磁信号,包括:获取所述第一测试电磁信号的主峰峰值对应的时间与所述第一参考电磁信号的主峰峰值对应的时间之间的差值;对所述第一测试电磁信号在时间轴上平移所述差值的距离,将平移后的电磁信号作为第二测试电磁信号。Optionally, the shifting the first test electromagnetic signal on the time axis to obtain the second test electromagnetic signal includes: obtaining the time corresponding to the main peak of the first test electromagnetic signal and the time corresponding to the first reference The difference between the times corresponding to the main peak and peak value of the electromagnetic signal; the first test electromagnetic signal is translated on the time axis by the distance of the difference, and the translated electromagnetic signal is used as the second test electromagnetic signal.
另一方面,提供了一种电磁信号对比装置,所述装置包括:获取单元,用于获取第一测试电磁信号和第一参考电磁信号,所述第一测试电磁信号是由待验证电磁模型产生的,所述第一参考电磁信号是由参考电磁模型产生的;平移单元,用于对所述第一测试电磁信号在时间轴上进行平移,得到第二测试电磁信号,所述第二测试电磁信号的主峰峰值对应的时间和所述第一参考电磁信号的主峰峰值对应的时间重合;选取单元,用于选取所述第一参考电磁信号和所述第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号,所述目标周期为主峰以及主峰相邻的多个波峰对应的周期;第一对比单元,用于基于特征选择验证FSV方法对所述第二参考电磁信号和所述第三测试电磁信号进行对比,得到第一对比结果。In another aspect, an electromagnetic signal comparison device is provided, the device includes: an acquisition unit, configured to acquire a first test electromagnetic signal and a first reference electromagnetic signal, the first test electromagnetic signal is generated by an electromagnetic model to be verified The first reference electromagnetic signal is generated by a reference electromagnetic model; the translation unit is used to translate the first test electromagnetic signal on the time axis to obtain a second test electromagnetic signal, and the second test electromagnetic signal The time corresponding to the main peak value of the signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal; the selection unit is used to select the electromagnetic frequency of the first reference electromagnetic signal and the second test electromagnetic signal within the target period Signals, as the second reference electromagnetic signal and the third test electromagnetic signal, the target period is the period corresponding to the main peak and multiple peaks adjacent to the main peak; the first comparison unit is used to verify the FSV method based on feature selection. The two reference electromagnetic signals are compared with the third test electromagnetic signal to obtain a first comparison result.
可选地,所述选取单元包括:周期确定子单元,用于基于所述第一参考电磁信号的目标波峰峰值与所述第一参考电磁信号的主峰峰值之间的关系,确定所述目标周期的周期数,其中,所述目标波峰为所述第一参考电磁信号的主峰相邻的第N个波峰;信号选取子单元,用于将所述第一参考电磁信号和所述第二测试电磁信号在主峰以及主峰相邻的N个波峰对应的周期内的电磁信号,作为所述第二参考电磁信号和所述第三测试电磁信号,其中,所述周期数等于N+1。Optionally, the selecting unit includes: a period determination subunit, configured to determine the target period based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal The number of cycles, wherein, the target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal; the signal selection subunit is used to combine the first reference electromagnetic signal and the second test electromagnetic Electromagnetic signals within periods corresponding to the main peak and N peaks adjacent to the main peak are used as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the number of periods is equal to N+1.
可选地,所述周期确定子单元还用于,当所述第一参考电磁信号的主峰相邻的第N个波峰峰值大于或者等于所述第一参考电磁信号的主峰峰值的设定比例,以及所述第一参考电磁信号的主峰相邻的第N+1个波峰峰值小于所述第一参考电磁信号的主峰峰值的设定比例时,确定所述目标周期的周期数为N+1,所述设定比例取值范围为[40%,60%]。Optionally, the period determination subunit is further configured to, when the Nth peak-to-peak value adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to the set ratio of the main peak-to-peak value of the first reference electromagnetic signal, And when the N+1th peak adjacent to the main peak of the first reference electromagnetic signal is less than the set ratio of the main peak of the first reference electromagnetic signal, determine that the number of cycles of the target cycle is N+1, The value range of the setting ratio is [40%, 60%].
另一方面,提供了一种计算机设备,所述计算机设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条程序代码,所述至少一条程序代码由所述一个或多个处理器加载并执行以实现前述任意一种电磁信号对比方法。In another aspect, a computer device is provided, the computer device includes one or more processors and one or more memories, at least one program code is stored in the one or more memories, and the at least one program code Loaded and executed by the one or more processors to realize any one of the aforementioned electromagnetic signal comparison methods.
另一方面,提供了一种计算机存储介质,所述计算机存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以实现前述任意一种电磁信号对比方法。In another aspect, a computer storage medium is provided, wherein at least one program code is stored in the computer storage medium, and the at least one program code is loaded and executed by a processor to implement any one of the aforementioned electromagnetic signal comparison methods.
本公开实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided by the embodiments of the present disclosure at least include:
在本公开实施例中,通过获取第一测试电磁信号和第一参考电磁信号,对第一测试电磁信号在时间轴上进行平移使得得到的第二测试电磁信号的主峰峰值对应的时间和第一参考电磁信号的主峰峰值对应的时间重合,这样使得两个电磁信号产生的时间一致,相同时间的电磁信号对比结果更准确。通过选取目标周期内的电磁信号,作为FSV方法对比的目标信号,选取有限长度的电磁信号进行对比,去掉了无效数据,对比更有针对性,对比结果更准确。In the embodiment of the present disclosure, by acquiring the first test electromagnetic signal and the first reference electromagnetic signal, the first test electromagnetic signal is shifted on the time axis so that the time corresponding to the main peak value of the second test electromagnetic signal and the first The time corresponding to the main peak of the reference electromagnetic signal coincides, so that the generation time of the two electromagnetic signals is consistent, and the comparison result of the electromagnetic signal at the same time is more accurate. By selecting the electromagnetic signal within the target period as the target signal for FSV method comparison, the electromagnetic signal of limited length is selected for comparison, and invalid data is removed, the comparison is more targeted, and the comparison result is more accurate.
附图说明Description of drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本公开实施例提供的一种电磁信号对比方法的流程图;FIG. 1 is a flowchart of an electromagnetic signal comparison method provided by an embodiment of the present disclosure;
图2是本公开实施例提供的另一种电磁信号对比方法的流程图;Fig. 2 is a flow chart of another electromagnetic signal comparison method provided by an embodiment of the present disclosure;
图3是本公开实施例提供的第一测试电磁信号和第一参考电磁信号示意图;3 is a schematic diagram of a first test electromagnetic signal and a first reference electromagnetic signal provided by an embodiment of the present disclosure;
图4是本公开实施例提供的第二测试电磁信号和第一参考电磁信号示意图;4 is a schematic diagram of a second test electromagnetic signal and a first reference electromagnetic signal provided by an embodiment of the present disclosure;
图5是本公开实施例提供的一种电磁信号对比装置结构框图;Fig. 5 is a structural block diagram of an electromagnetic signal comparison device provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一种计算机设备的结构框图。Fig. 6 is a structural block diagram of a computer device provided by an embodiment of the present disclosure.
具体实施方式detailed description
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present disclosure clearer, the implementation manners of the present disclosure will be further described in detail below in conjunction with the accompanying drawings.
为了便于理解本公开实施例,下面先对本公开实施例的应用场景进行示例性说明。In order to facilitate understanding of the embodiments of the present disclosure, the application scenarios of the embodiments of the present disclosure are firstly described as examples below.
在电磁环境效应研究中,通常需要将两个目标电磁信号进行对比。示例性地,两个目标电磁信号包括测试电磁信号和参考电磁信号,测试电磁信号是由待验证电磁模型产生的,参考电磁信号是由参考电磁模型产生的。通过对测试电磁信号和参考电磁信号的对比,以评估测试电磁信号相对参考电磁信号在整体和细节上的差异。示例性地,可以根据此差异来校正待验证电磁模型参数,以减小测试电磁信号与参考电磁信号的差异。In the study of electromagnetic environment effects, it is usually necessary to compare two target electromagnetic signals. Exemplarily, the two target electromagnetic signals include a test electromagnetic signal and a reference electromagnetic signal, the test electromagnetic signal is generated by the electromagnetic model to be verified, and the reference electromagnetic signal is generated by the reference electromagnetic model. By comparing the test electromagnetic signal and the reference electromagnetic signal, the overall and detailed differences between the test electromagnetic signal and the reference electromagnetic signal are evaluated. Exemplarily, parameters of the electromagnetic model to be verified can be corrected according to the difference, so as to reduce the difference between the test electromagnetic signal and the reference electromagnetic signal.
待验证电磁模型和参考电磁模型可以为不同的电磁模型,通过两个电磁模型获取两个目标电磁信号,对这两个目标电磁信号进行对比的结果用途也不同。The electromagnetic model to be verified and the reference electromagnetic model may be different electromagnetic models. Two target electromagnetic signals are obtained through the two electromagnetic models, and the results of comparing the two target electromagnetic signals are used for different purposes.
例如,待验证电磁模型为电磁实验平台,参考电磁模型为电磁仿真平台,两个目标电磁信号对比结果用于评估电磁实验平台的准确性。测试电磁信号携带实验数据,参考电磁信号携带仿真数据,电磁信号对比用于评估实验数据相对仿真数据的差异,实验人员可以根据该差异来校正电磁实验平台的参数。For example, the electromagnetic model to be verified is the electromagnetic experiment platform, the reference electromagnetic model is the electromagnetic simulation platform, and the comparison results of the two target electromagnetic signals are used to evaluate the accuracy of the electromagnetic experiment platform. The test electromagnetic signal carries the experimental data, and the reference electromagnetic signal carries the simulation data. The electromagnetic signal comparison is used to evaluate the difference between the experimental data and the simulation data. The experimenter can correct the parameters of the electromagnetic experiment platform according to the difference.
又例如,待验证电磁模型为电磁仿真平台,参考电磁模型为电磁实验平台,两个目标电磁信号对比结果用于评估电磁仿真平台的准确性。测试电磁信号携带仿真数据,参考电磁信号携带实验数据,电磁信号对比用于评估仿真数据相对实验数据的差异,实验人员可以根据该差异来校正电磁仿真平台的参数。For another example, the electromagnetic model to be verified is an electromagnetic simulation platform, the reference electromagnetic model is an electromagnetic experiment platform, and the comparison results of the two target electromagnetic signals are used to evaluate the accuracy of the electromagnetic simulation platform. The test electromagnetic signal carries the simulation data, the reference electromagnetic signal carries the experimental data, and the electromagnetic signal comparison is used to evaluate the difference between the simulation data and the experimental data, and the experimenter can correct the parameters of the electromagnetic simulation platform according to the difference.
在本公开实施例中,电磁实验平台可以为物理的,电磁仿真平台可以为数学的,即计算机仿真。In the embodiments of the present disclosure, the electromagnetic experiment platform may be physical, and the electromagnetic simulation platform may be mathematical, that is, computer simulation.
测试电磁信号和参考电磁信号的获取时间不同,导致这两个电磁信号的起始时间不一样,会出现相同物理意义的数据在两个电磁信号的时间存在偏差,例如主峰峰值在两个电磁信号的时间不一样。直接对这两个电磁信号进行对比时,同一时间的数据存在较大的偏差,而同一时间的数据的物理意义不同,可比性较低,导致对比结果不准确。The acquisition time of the test electromagnetic signal and the reference electromagnetic signal is different, resulting in a different start time of the two electromagnetic signals, and there will be a deviation in the time of the two electromagnetic signals for data with the same physical meaning, for example, the peak value of the main peak is between the two electromagnetic signals The time is different. When directly comparing the two electromagnetic signals, there is a large deviation in the data at the same time, and the data at the same time have different physical meanings, and the comparability is low, resulting in inaccurate comparison results.
此外,电磁信号由于存在衰减,随着时间的增大,获取的测试电磁信号和参考电磁信号的幅度越来越小,从而表现为测试电磁信号和参考电磁信号有很长的拖尾。而这些长拖尾的信号中,由于衰减存在波动性,导致两个电磁信号的拖尾信号差异很大。因此,对两个电磁信号携带的所有数据进行对比也是没有意义的,对比结果不准确。In addition, due to the attenuation of the electromagnetic signal, as time increases, the amplitudes of the acquired test electromagnetic signal and reference electromagnetic signal become smaller and smaller, which shows that the test electromagnetic signal and the reference electromagnetic signal have a long tail. However, in these long-tail signals, due to the fluctuation of attenuation, the tail signals of the two electromagnetic signals are very different. Therefore, it is meaningless to compare all the data carried by the two electromagnetic signals, and the comparison result is inaccurate.
为此,本公开实施例提供了一种电磁信号对比方法,通过对两个目标电磁信号进行预处理,使两个目标电磁信号的时间对齐,以及去掉两个目标电磁信号中的长拖尾,基于预处理后的两个目标电磁信号使用FSV方法进行对比,以提高对比结果的准确度。To this end, an embodiment of the present disclosure provides a method for comparing electromagnetic signals. By preprocessing the two target electromagnetic signals, the time of the two target electromagnetic signals is aligned, and the long tails in the two target electromagnetic signals are removed. Based on the preprocessed two target electromagnetic signals, the FSV method is used for comparison to improve the accuracy of the comparison result.
图1是本公开实施例提供的一种电磁信号对比方法的流程图。参见图1,该方法由计算机设备执行,该方法包括:Fig. 1 is a flowchart of an electromagnetic signal comparison method provided by an embodiment of the present disclosure. Referring to Fig. 1, the method is performed by a computer device, and the method includes:
步骤101,获取第一测试电磁信号和第一参考电磁信号。
其中,第一测试电磁信号是由待验证电磁模型产生的,第一参考电磁信号是由参考电磁模型产生的。Wherein, the first test electromagnetic signal is generated by the electromagnetic model to be verified, and the first reference electromagnetic signal is generated by the reference electromagnetic model.
步骤102,对第一测试电磁信号在时间轴上进行平移,得到第二测试电磁信号。Step 102: Translating the first test electromagnetic signal on the time axis to obtain a second test electromagnetic signal.
其中,第二测试电磁信号的主峰峰值对应的时间和第一参考电磁信号的主峰峰值对应的时间重合。Wherein, the time corresponding to the main peak value of the second test electromagnetic signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal.
步骤103,选取第一参考电磁信号和第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号。
其中,目标周期为主峰以及主峰相邻的多个波峰对应的周期。Wherein, the target period is a period corresponding to the main peak and multiple peaks adjacent to the main peak.
步骤104,基于FSV方法对第二参考电磁信号和第三测试电磁信号进行对比,得到第一对比结果。
在本公开实施例中,通过获取第一测试电磁信号和第一参考电磁信号,对第一测试电磁信号在时间轴上进行平移,使得得到的第二测试电磁信号的主峰峰值对应的时间和第一参考电磁信号的主峰峰值对应的时间重合,这样使得两个电磁信号产生的时间一致,相同时间的电磁信号对比结果更准确。并且,通过选取目标周期内的电磁信号,作为FSV方法对比的目标信号,去掉了电磁信号中差异较大的长拖尾,而选取有限长度的电磁信号进行对比,对比更有针对性,对比结果更准确。In the embodiment of the present disclosure, by acquiring the first test electromagnetic signal and the first reference electromagnetic signal, the first test electromagnetic signal is shifted on the time axis, so that the time corresponding to the main peak value of the second test electromagnetic signal and the second The times corresponding to the main peaks of a reference electromagnetic signal coincide, so that the generation times of the two electromagnetic signals are consistent, and the comparison result of the electromagnetic signals at the same time is more accurate. Moreover, by selecting the electromagnetic signal within the target period as the target signal for FSV method comparison, the long tail with large differences in the electromagnetic signal is removed, and the electromagnetic signal of limited length is selected for comparison, the comparison is more targeted, and the comparison results more acurrate.
图2是本公开实施例提供的另一种电磁信号对比方法的流程图。参见图2,该方法由计算机设备执行,该方法包括:Fig. 2 is a flowchart of another electromagnetic signal comparison method provided by an embodiment of the present disclosure. Referring to Fig. 2, the method is performed by a computer device, and the method includes:
步骤201,获取第一测试电磁信号和第一参考电磁信号。
步骤202,获取第一测试电磁信号的主峰峰值对应的时间与第一参考电磁信号的主峰峰值对应的时间之间的差值。
示例性地,第一测试电磁信号的主峰峰值对应的时间与第一参考电磁信号的主峰峰值对应的时间之间的差值可以用公式(1)表示:Exemplarily, the difference between the time corresponding to the main peak value of the first test electromagnetic signal and the time corresponding to the main peak value of the first reference electromagnetic signal can be expressed by formula (1):
d=Data_t1_x1-Data_r1_x1 (1)d=Data_t1_x1-Data_r1_x1 (1)
在公式(1)中,d表示两个电磁信号的主峰峰值对应的时间之间的差值,Data_t1_x1表示第一测试电磁信号的主峰峰值对应的时间,Data_r1_x1表示第一参考电磁信号的主峰峰值对应的时间。In formula (1), d represents the difference between the time corresponding to the main peak-peak value of the two electromagnetic signals, Data_t1_x1 represents the time corresponding to the main peak-peak value of the first test electromagnetic signal, and Data_r1_x1 represents the corresponding time of the main peak-peak value of the first reference electromagnetic signal time.
步骤203,对第一测试电磁信号在时间轴上平移该差值的距离,将平移后的电磁信号作为第二测试电磁信号。Step 203: Translate the first test electromagnetic signal on the time axis by the distance of the difference, and use the translated electromagnetic signal as the second test electromagnetic signal.
示例性地,当差值d>0,对第一测试电磁信号在时间轴上向左平移该差值的距离;当差值d<0,对第一测试电磁信号在时间轴上向右平移该差值的距离。Exemplarily, when the difference d>0, the first test electromagnetic signal is shifted to the left on the time axis by the distance of the difference; when the difference d<0, the first test electromagnetic signal is shifted to the right on the time axis The distance of the difference.
通过步骤202~203,可以实现对第一测试电磁信号在时间轴上进行平移,得到第二测试电磁信号。Through steps 202-203, the first test electromagnetic signal can be shifted on the time axis to obtain the second test electromagnetic signal.
图3是本公开实施例提供的第一测试电磁信号和第一参考电磁信号示意图。参见图3,第一测试电磁信号302的主峰峰值对应的时间与第一参考电磁信号301的主峰峰值对应的时间存在偏差。图4是本公开实施例提供的第二测试电磁信号和第一参考电磁信号示意图。对第一测试电磁信号302和第一参考电磁信号301执行步骤202~203后,得到第二测试电磁信号401,第二测试电磁信号401的主峰峰值对应的时间与第一参考电磁信号的主峰峰值对应的时间重合。Fig. 3 is a schematic diagram of a first test electromagnetic signal and a first reference electromagnetic signal provided by an embodiment of the present disclosure. Referring to FIG. 3 , there is a deviation between the time corresponding to the main peak-peak value of the first test
步骤204,基于第一参考电磁信号的目标波峰峰值与第一参考电磁信号的主峰峰值之间的关系,确定目标周期的周期数。
其中,目标波峰为第一参考电磁信号的主峰相邻的第N个波峰。Wherein, the target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal.
可选地,该步骤204包括:当第一参考电磁信号的主峰相邻的第N个波峰峰值大于或者等于第一参考电磁信号的主峰峰值的设定比例,以及第一参考电磁信号的主峰相邻的第N+1个波峰峰值小于第一参考电磁信号的主峰峰值的设定比例时,确定目标周期的周期数为N+1。Optionally, this
在本公开实施例中,设定比例取值范围为[40%,60%],示例性地,设定比例取值为50%。In the embodiment of the present disclosure, the value range of the set ratio is [40%, 60%], for example, the value of the set ratio is 50%.
下面以图4为例,第一参考电磁信号301的主峰3011的峰值为0.99,主峰3011相邻的第1个波峰3012的峰值为0.49,主峰3011相邻的第2个波峰3013的峰值为0.3,设定比例取值为50%,满足第1个波峰3012的峰值大于主峰3011的峰值的50%,以及第2个波峰3013的峰值小于主峰3011的峰值的50%,因此基于第一参考电磁信号确定的目标周期数为2,且N=1。Taking Fig. 4 as an example below, the peak value of the
步骤205,将第一参考电磁信号和第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号。Step 205, using the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within the target period as the second reference electromagnetic signal and the third test electromagnetic signal.
选取目标周期内的电磁信号,作为FSV方法对比的目标信号,去掉了衰减较多的信号数据,只保留幅度较大的信号数据,对比更有价值,对比结果更准确。The electromagnetic signal within the target period is selected as the target signal for comparison by the FSV method. The signal data with more attenuation is removed, and only the signal data with a larger amplitude is retained. The comparison is more valuable and the comparison result is more accurate.
通过步骤204~205,可以实现选取第一参考电磁信号和第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号。Through steps 204-205, electromagnetic signals within the target period of the first reference electromagnetic signal and the second test electromagnetic signal can be selected as the second reference electromagnetic signal and the third test electromagnetic signal.
步骤206,基于周期幅度尺度和周期时间尺度中的至少一种,对第二参考电磁信号和第三测试电磁信号进行对比,得到第二对比结果。Step 206: Based on at least one of the periodic amplitude scale and the periodic time scale, compare the second reference electromagnetic signal with the third test electromagnetic signal to obtain a second comparison result.
其中,周期幅度尺度为主峰峰值与主峰相邻的第N个波峰峰值之间的差值的绝对值与N的比值;周期时间尺度为主峰峰值对应的时间与主峰相邻的第N个波峰峰值对应的时间之间的差值的绝对值与N的比值。Among them, the cycle amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the Nth peak value adjacent to the main peak and N; the cycle time scale is the time corresponding to the peak value of the main peak and the Nth peak value adjacent to the main peak The ratio of the absolute value of the difference between the corresponding times to N.
第二对比结果包括以下至少一个:第二参考电磁信号周期幅度尺度和第三测试电磁信号的周期幅度尺度之间的比值,第二参考电磁信号周期时间尺度和第三测试电磁信号的周期时间尺度之间的比值。The second comparison result includes at least one of the following: the ratio between the period amplitude scale of the second reference electromagnetic signal and the period amplitude scale of the third test electromagnetic signal, the period time scale of the second reference electromagnetic signal and the period time scale of the third test electromagnetic signal ratio between.
当第二参考电磁信号的周期幅度尺度和第三测试电磁信号的周期幅度尺度之间的比值在预设范围内,表示两个电磁信号的周期幅度接近;当第二参考电磁信号的周期幅度尺度和第三测试电磁信号的周期幅度尺度之间的比值在预设范围之外,表示两个电磁信号的周期幅度相差大。When the ratio between the period amplitude scale of the second reference electromagnetic signal and the period amplitude scale of the third test electromagnetic signal is within the preset range, it means that the period amplitudes of the two electromagnetic signals are close; when the period amplitude scale of the second reference electromagnetic signal The ratio between the scale and the period amplitude scale of the third test electromagnetic signal is outside the preset range, indicating that the period amplitudes of the two electromagnetic signals differ greatly.
当第二参考电磁信号的周期时间尺度和第三测试电磁信号的周期时间尺度之间的比值在预设范围内,表示两个电磁信号的周期时间接近;当第二参考电磁信号的周期时间尺度和第三测试电磁信号的周期时间尺度之间的比值在预设范围之外,表示两个电磁信号的周期时间相差大。When the ratio between the period time scale of the second reference electromagnetic signal and the period time scale of the third test electromagnetic signal is within the preset range, it means that the period times of the two electromagnetic signals are close; when the period time scale of the second reference electromagnetic signal The ratio between the period time scale and the period time scale of the third test electromagnetic signal is outside the preset range, indicating that the period time difference between the two electromagnetic signals is large.
示例性地,预设范围取值为[0.95,1.05]。Exemplarily, the preset range is [0.95, 1.05].
第二参考电磁信号与第三测试电磁信号计算周期幅度尺度和周期时间尺度的方式相同。以第二参考电磁信号为例,周期幅度尺度可以用公式(2)表示:The calculation method of the second reference electromagnetic signal and the third test electromagnetic signal is the same as the periodic amplitude scale and the periodic time scale. Taking the second reference electromagnetic signal as an example, the periodic amplitude scale can be expressed by formula (2):
pa1=|Data_r2_y1-Data_r2_yn|/N (2)pa1=|Data_r2_y1-Data_r2_yn|/N (2)
在公式(2)中,pa1表示第二参考电磁信号的周期幅度尺度,Data_r2_y1表示第二参考电磁信号的主峰峰值,Data_r2_yn表示第二参考电磁信号的主峰相邻的第N个波峰峰值,N表示主峰相邻的波峰序号,取值为正整数,||表示取绝对值。In formula (2), pa1 represents the periodic amplitude scale of the second reference electromagnetic signal, Data_r2_y1 represents the main peak value of the second reference electromagnetic signal, Data_r2_yn represents the Nth peak value adjacent to the main peak of the second reference electromagnetic signal, and N represents The serial number of the peak adjacent to the main peak, the value is a positive integer, and || means to take the absolute value.
周期时间尺度可以用公式(3)表示:The periodic time scale can be expressed by formula (3):
pt1=|Data_r2_x1-Data_r2_xn|/N (3)pt1=|Data_r2_x1-Data_r2_xn|/N (3)
在公式(3)中,pt1表示第二参考电磁信号的周期时间尺度,Data_r2_x1表示第二参考电磁信号的的主峰峰值对应的时间,Data_r2_xn表示第二参考电磁信号的的主峰相邻的第N个波峰峰值对应的时间,N表示主峰相邻的波峰序号,取值为正整数,||表示取绝对值。In formula (3), pt1 represents the cycle time scale of the second reference electromagnetic signal, Data_r2_x1 represents the time corresponding to the main peak peak value of the second reference electromagnetic signal, and Data_r2_xn represents the Nth adjacent main peak of the second reference electromagnetic signal The time corresponding to the peak value, N represents the peak number adjacent to the main peak, the value is a positive integer, || represents the absolute value.
下面以图4为例,说明基于周期幅度尺度和周期时间尺度,对第二参考电磁信号和第三测试电磁信号进行对比,得到第二对比结果的过程:Taking Figure 4 as an example, the process of comparing the second reference electromagnetic signal with the third test electromagnetic signal based on the periodic amplitude scale and the periodic time scale to obtain the second comparison result is described below:
根据图4确定的波峰序号N=1。第二参考电磁信号的主峰峰值Data_r2_y1为0.99,第二参考电磁信号的主峰相邻的第1个波峰峰值Data_r2_yn为0.49,第三测试电磁信号的主峰峰值Data_t3_y1为0.98,第三测试电磁信号的主峰相邻的第1个波峰峰值Data_t3_yn为0.28,根据公式(2)计算得到的第二参考电磁信号和第三测试电磁信号的周期幅度尺度分别为:pa1=0.5,pa2=0.7。The peak sequence number N=1 determined according to FIG. 4 . The main peak value Data_r2_y1 of the second reference electromagnetic signal is 0.99, the first peak value Data_r2_yn adjacent to the main peak of the second reference electromagnetic signal is 0.49, the main peak value Data_t3_y1 of the third test electromagnetic signal is 0.98, and the main peak value of the third test electromagnetic signal The peak value of the first adjacent peak Data_t3_yn is 0.28, and the period amplitude scales of the second reference electromagnetic signal and the third test electromagnetic signal calculated according to formula (2) are: pa1=0.5, pa2=0.7.
计算两个电磁信号的周期幅度尺度比值pa1/pa2=0.714。Calculate the period amplitude scale ratio pa1/pa2=0.714 of the two electromagnetic signals.
周期幅度尺度比值0.714在预设范围[0.95,1.05]之外,表示两个电磁信号的周期幅度相差大。The periodic amplitude scale ratio of 0.714 is outside the preset range [0.95, 1.05], indicating that the periodic amplitudes of the two electromagnetic signals differ greatly.
第二参考电磁信号的主峰峰值对应的时间Data_r2_x1为19,第二参考电磁信号的主峰相邻的第1个波峰峰值对应的时间Data_r2_xn为27.37,第三测试电磁信号的主峰峰值对应的时间Data_t3_x1为19,第三测试电磁信号的主峰相邻的第1个波峰峰值对应的时间Data_t3_xn为27.4,根据公式(3)计算得到的第二参考电磁信号和第三测试电磁信号的周期幅度尺度分别为:pt1=8.37,pt2=8.4。The time Data_r2_x1 corresponding to the main peak of the second reference electromagnetic signal is 19, the time Data_r2_xn corresponding to the first peak adjacent to the main peak of the second reference electromagnetic signal is 27.37, and the time Data_t3_x1 corresponding to the main peak of the third test electromagnetic signal is 19. The time Data_t3_xn corresponding to the first peak value adjacent to the main peak of the third test electromagnetic signal is 27.4, and the cycle amplitude scales of the second reference electromagnetic signal and the third test electromagnetic signal calculated according to the formula (3) are respectively: pt1=8.37, pt2=8.4.
计算两个电磁信号的周期时间尺度比值pt1/pt2=0.996。Calculate the period time scale ratio pt1/pt2=0.996 of the two electromagnetic signals.
周期时间尺度比值0.996在预设范围[0.95,1.05]之内,表示两个电磁信号的周期时间接近。The cycle time scale ratio of 0.996 is within the preset range [0.95, 1.05], indicating that the cycle times of the two electromagnetic signals are close.
步骤207,当第二对比结果满足设定条件时,基于FSV方法对第二参考电磁信号和第三测试电磁信号进行对比,得到第一对比结果。
在一些示例中,基于周期幅度尺度和周期时间尺度中进行对比,得到第二对比结果,第二对比结果满足设定条件是指第二参考电磁信号周期幅度尺度和第三测试电磁信号的周期幅度尺度之间的比值在预设范围之内,或者第二参考电磁信号周期时间尺度和第三测试电磁信号的周期时间尺度之间的比值在预设范围之内。In some examples, the second comparison result is obtained based on the comparison between the periodic amplitude scale and the periodic time scale, and the second comparison result meets the set condition, which refers to the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude of the third test electromagnetic signal The ratio between the scales is within a preset range, or the ratio between the cycle time scale of the second reference electromagnetic signal and the cycle time scale of the third test electromagnetic signal is within a preset range.
在另一些示例中,基于周期幅度尺度和周期时间尺度中的任意一个进行对比,得到第二对比结果,第二对比结果满足设定条件是指第二参考电磁信号周期幅度尺度和第三测试电磁信号的周期幅度尺度之间的比值在预设范围之内,或者第二对比结果满足设定条件是指第二参考电磁信号周期时间尺度和第三测试电磁信号的周期时间尺度之间的比值在预设范围之内。In some other examples, the second comparison result is obtained based on any one of the periodic amplitude scale and the periodic time scale. The ratio between the periodic amplitude scales of the signal is within the preset range, or the second comparison result meets the set condition, which means that the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within within the preset range.
该步骤207包括:This
第一步,将第二参考电磁信号和第三测试电磁信号的数据分解为直流、低频和高频分量。In the first step, the data of the second reference electromagnetic signal and the third test electromagnetic signal are decomposed into direct current, low frequency and high frequency components.
第二步,结合直流、低频和高频分量分量提取幅度差异度量(AmplitudeDifference Measure,ADM)、特征差异度量(Feature Difference Measure,FDM)和全局差异度量(Global Difference Measure,GDM)指标。In the second step, Amplitude Difference Measure (ADM), Feature Difference Measure (FDM) and Global Difference Measure (GDM) indicators are extracted by combining DC, low frequency and high frequency components.
其中,根据第二参考电磁信号的直流分量和低频分量与第三测试电磁信号的直流分量和低频分量,提取ADM,ADM表征两个目标电磁信号在总体数值和趋势上的差异。根据第二参考电磁信号的低频分量和高频分量与第三测试电磁信号的低频分量和高频分量,提取FDM,FDM表征两个目标电磁信号间的细节特征差异。由ADM和FDM结合形成GDM。Wherein, ADM is extracted according to the DC component and low frequency component of the second reference electromagnetic signal and the DC component and low frequency component of the third test electromagnetic signal, and the ADM represents the difference in the overall value and trend of the two target electromagnetic signals. According to the low-frequency component and high-frequency component of the second reference electromagnetic signal and the low-frequency component and high-frequency component of the third test electromagnetic signal, FDM is extracted, and the FDM characterizes the detail feature difference between the two target electromagnetic signals. GDM is formed by combining ADM and FDM.
第三步,将ADM、FDM和GDM的定量结果转化为自然语言描述的定性解释。In the third step, the quantitative results of ADM, FDM and GDM are transformed into qualitative explanations described in natural language.
该定性解释包括六类:极好、很好、好、一般、差、很差。The qualitative explanation includes six categories: excellent, very good, good, fair, poor, very poor.
第四步,统计每一类定性解释所占比重,以得到可信度直方图。The fourth step is to count the proportion of each type of qualitative explanation to obtain the reliability histogram.
该可信度直方图即为第一对比结果,根据该第一对比结果可以模拟专家评估结果的分布情况。The credibility histogram is the first comparison result, and the distribution of expert evaluation results can be simulated according to the first comparison result.
两个电磁信号的周期幅度接近或者两个电磁信号的周期时间接近时,表明两个电磁信号在周期特性上存在相似,对这两个电磁信号基于FSV方法对比是有价值的。两个电磁信号的周期幅度相差大且两个电磁信号的周期时间相差大时,表明两个电磁信号在周期特性上相差大,基于FSV方法得到的第一对比结果中“差、很差”的占比高,对这两个电磁信号基于FSV方法对比是没有价值的。When the period amplitude of the two electromagnetic signals is close or the period time of the two electromagnetic signals is close, it indicates that the two electromagnetic signals are similar in period characteristics, and it is valuable to compare the two electromagnetic signals based on the FSV method. When there is a large difference in the period amplitude of the two electromagnetic signals and a large difference in the period time of the two electromagnetic signals, it indicates that the two electromagnetic signals have a large difference in period characteristics. In the first comparison result based on the FSV method, the "poor, very poor" The proportion is high, and it is worthless to compare the two electromagnetic signals based on the FSV method.
在本公开实施例中,通过获取第一测试电磁信号和第一参考电磁信号,对第一测试电磁信号在时间轴上进行平移,使得得到的第二测试电磁信号的主峰峰值对应的时间和第一参考电磁信号的主峰峰值对应的时间重合,这样使得两个电磁信号产生的时间一致,相同时间的电磁信号对比结果更准确。并且,通过选取目标周期内的电磁信号,作为FSV方法对比的目标信号,去掉了电磁信号中差异较大的长拖尾,而选取有限长度的电磁信号进行对比,对比更有针对性,对比结果更准确。In the embodiment of the present disclosure, by acquiring the first test electromagnetic signal and the first reference electromagnetic signal, the first test electromagnetic signal is shifted on the time axis, so that the time corresponding to the main peak value of the second test electromagnetic signal and the second The times corresponding to the main peaks of a reference electromagnetic signal coincide, so that the generation times of the two electromagnetic signals are consistent, and the comparison result of the electromagnetic signals at the same time is more accurate. Moreover, by selecting the electromagnetic signal within the target period as the target signal for FSV method comparison, the long tail with large differences in the electromagnetic signal is removed, and the electromagnetic signal of limited length is selected for comparison, the comparison is more targeted, and the comparison results more acurrate.
此外,在基于FSV方法对第二参考电磁信号和第三测试电磁信号进行对比之前,基于特征量周期幅度尺度和周期时间尺度对第二参考电磁信号和第三测试电磁信号进行对比,当第二对比结果满足设定条件时,确定使用FSV方法对第二参考电磁信号和第三测试电磁信号进行对比,使得对比更有价值,也提升了对比效率。In addition, before comparing the second reference electromagnetic signal and the third test electromagnetic signal based on the FSV method, the second reference electromagnetic signal and the third test electromagnetic signal are compared based on the characteristic quantity period amplitude scale and period time scale, when the second When the comparison result satisfies the set condition, it is determined to use the FSV method to compare the second reference electromagnetic signal and the third test electromagnetic signal, which makes the comparison more valuable and improves the comparison efficiency.
图5是本公开实施例提供的一种电磁信号对比装置结构框图。如图5所示,该装置50可以通过硬件或者软硬结合的方式实现,以执行图1或图2对应实施例所示的方法的全部或部分步骤。该装置50包括:获取单元501、平移单元502、选取单元503和第一对比单元504。Fig. 5 is a structural block diagram of an electromagnetic signal comparison device provided by an embodiment of the present disclosure. As shown in FIG. 5 , the
获取单元501用于获取第一测试电磁信号和第一参考电磁信号,其中第一测试电磁信号是由待验证电磁模型产生的,第一参考电磁信号是由参考电磁模型产生的。平移单元502用于对第一测试电磁信号在时间轴上进行平移,得到第二测试电磁信号,其中第二测试电磁信号的主峰峰值对应的时间和第一参考电磁信号的主峰峰值对应的时间重合。选取单元503用于选取第一参考电磁信号和第二测试电磁信号在目标周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号,其中目标周期为主峰以及主峰相邻的多个波峰对应的周期。第一对比单元504用于基于FSV方法对第二参考电磁信号和第三测试电磁信号进行对比,得到第一对比结果。The acquiring
可选地,平移单元502用于获取第一测试电磁信号的主峰峰值对应的时间与第一参考电磁信号的主峰峰值对应的时间之间的差值;对第一测试电磁信号在时间轴上平移差值的距离,将平移后的电磁信号作为第二测试电磁信号。Optionally, the
可选地,选取单元503包括周期确定子单元5031和信号选取子单元5032。周期确定子单元5031用于基于第一参考电磁信号的目标波峰峰值与第一参考电磁信号的主峰峰值之间的关系,确定目标周期的周期数,其中,目标波峰为第一参考电磁信号的主峰相邻的第N个波峰。信号选取子单元5032用于将第一参考电磁信号和第二测试电磁信号在主峰以及主峰相邻的N个波峰对应的周期内的电磁信号,作为第二参考电磁信号和第三测试电磁信号,其中,周期数等于N+1。Optionally, the
可选地,周期确定子单元5031还用于,当第一参考电磁信号的主峰相邻的第N个波峰峰值大于或者等于第一参考电磁信号的主峰峰值的设定比例,以及第一参考电磁信号的主峰相邻的第N+1个波峰峰值小于第一参考电磁信号的主峰峰值的设定比例时,确定目标周期的周期数为N+1。Optionally, the
在本公开实施例中,设定比例取值范围为[40%,60%],示例性地,设定比例取值为50%。In the embodiment of the present disclosure, the value range of the set ratio is [40%, 60%], for example, the value of the set ratio is 50%.
可选地,该装置50还包括第二对比单元505。该第二对比单元505用于基于周期幅度尺度和周期时间尺度中的至少一种,对第二参考电磁信号和第三测试电磁信号进行对比,得到第二对比结果。Optionally, the
其中,周期幅度尺度为主峰峰值与主峰相邻的第N个波峰峰值之间的差值的绝对值与波峰序号N的比值;周期时间尺度为主峰峰值对应的时间与主峰相邻的第N个波峰峰值对应的时间之间的差值的绝对值与波峰序号N的比值。Among them, the periodic amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the Nth adjacent peak to the peak number N; the periodic time scale is the time corresponding to the peak of the main peak and the Nth adjacent to the main peak The ratio of the absolute value of the difference between the time corresponding to the peak value to the peak number N.
可选地,第一对比单元504用于第二对比结果满足设定条件时,基于FSV方法对第二参考电磁信号和第三测试电磁信号进行对比,得到第一对比结果。Optionally, the
其中,设定条件包括以下至少一种:Among them, the setting conditions include at least one of the following:
第二参考电磁信号周期幅度尺度和第三测试电磁信号的周期幅度尺度之间的比值在预设范围之内;The ratio between the period amplitude scale of the second reference electromagnetic signal and the period amplitude scale of the third test electromagnetic signal is within a preset range;
第二参考电磁信号周期时间尺度和第三测试电磁信号的周期时间尺度之间的比值在预设范围之内。The ratio between the cycle time scale of the second reference electromagnetic signal and the cycle time scale of the third test electromagnetic signal is within a preset range.
需要说明的是:上述实施例提供的电磁信号对比装置进行电磁信号对比时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的电磁信号对比装置与电磁信号对比方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the electromagnetic signal comparison device provided in the above-mentioned embodiment performs electromagnetic signal comparison, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. , that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the electromagnetic signal comparison device and the electromagnetic signal comparison method embodiment provided by the above embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
本公开实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时也可以有另外的划分方式,另外,在本公开各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成为一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of the present disclosure is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, each functional module in each embodiment of the present disclosure can be integrated into one In the processor, it may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是个人计算机,手机,或者通信设备等)或处理器(processor)执行本公开各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-onlymemory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated module is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for enabling a terminal device (which may be a personal computer, a mobile phone, or a communication device, etc.) or a processor (processor) to execute all or part of the steps of the method in various embodiments of the present disclosure. The above-mentioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and various media capable of storing program codes.
本公开实施例提供一种计算机设备。该计算机设备包括存储器和处理器,存储器中存储有至少一条程序代码,该至少一条程序代码由处理器加载并执行以实现执行图1或图2对应实施例所示的电磁信号对比方法。An embodiment of the present disclosure provides a computer device. The computer device includes a memory and a processor, at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the electromagnetic signal comparison method shown in the corresponding embodiment shown in FIG. 1 or FIG. 2 .
图6是本公开实施例提供的一种计算机设备的结构框图。该计算机设备60包括有:处理器601和存储器602。Fig. 6 is a structural block diagram of a computer device provided by an embodiment of the present disclosure. The
处理器601可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器601可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器601也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。The
存储器602可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器602还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器602中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器601所执行以实现本申请中方法实施例提供的电磁信号对比方法。
本公开实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以完成上述图1或图2对应实施例所示的电磁信号对比方法。例如,计算机可读存储介质可以是U盘、移动硬盘、ROM、RAM、磁碟或者光盘等。An embodiment of the present disclosure provides a computer-readable storage medium, at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to complete the above-mentioned embodiments corresponding to FIG. 1 or FIG. 2 . The electromagnetic signal comparison method shown. For example, the computer-readable storage medium may be a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and the like.
本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令在计算机设备上运行时,使得该计算机设备执行上述方面的各种可选实现方式中提供的电磁信号对比方法。An embodiment of the present disclosure also provides a computer program product, the computer program product includes computer instructions, and when the computer instructions are run on a computer device, the computer device executes the electromagnetic signal provided in various optional implementation manners of the above aspects. Comparison method.
以上所述仅为本公开的可选实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above descriptions are only optional embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection of the present disclosure. within range.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210899185.9A CN115456007B (en) | 2022-07-28 | 2022-07-28 | Electromagnetic signal contrast method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210899185.9A CN115456007B (en) | 2022-07-28 | 2022-07-28 | Electromagnetic signal contrast method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115456007A true CN115456007A (en) | 2022-12-09 |
| CN115456007B CN115456007B (en) | 2024-11-01 |
Family
ID=84296245
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210899185.9A Active CN115456007B (en) | 2022-07-28 | 2022-07-28 | Electromagnetic signal contrast method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115456007B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116522101A (en) * | 2023-03-17 | 2023-08-01 | 西安热工研究院有限公司 | Feature selection verification method for radar electromagnetic simulation waveform added with weight |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2680439A1 (en) * | 1991-08-12 | 1993-02-19 | Metten Andre | Method of sending an electromagnetic signal intended to interact precisely on a predetermined date with a moving body |
| US6470001B1 (en) * | 1998-02-14 | 2002-10-22 | Samsung Electronics, Co., Ltd. | Device and method for time alignment on reverse link in mobile communication system |
| US20030072333A1 (en) * | 2001-10-11 | 2003-04-17 | International Business Machines Corporation | NRZ to RZ conversion in mode-locked laser using wavelength locked loops |
| CN101316158A (en) * | 2007-05-29 | 2008-12-03 | 北京良桑通信技术有限责任公司 | Additive waveshape pretreatment method in digital communication modulation |
| FR2942547A1 (en) * | 2009-02-26 | 2010-08-27 | Inst Francais Du Petrole | Seismic data pre-processing method for e.g. determining deposit structure of multi-component well during exploration phase, involves applying rotation to mark until determined direction coincides with azimuth direction for orienting mark |
| WO2014026089A1 (en) * | 2012-08-10 | 2014-02-13 | Waveconnex, Inc. | Dielectric coupling systems for ehf communications |
| CN106814257A (en) * | 2016-12-07 | 2017-06-09 | 北京邮电大学 | Chip type identifying system, method and device |
| CN106845286A (en) * | 2016-12-15 | 2017-06-13 | 北京邮电大学 | Hardware Trojan horse detection method, apparatus and system |
| CN108120888A (en) * | 2017-12-13 | 2018-06-05 | 合肥中科离子医学技术装备有限公司 | New cyclotron range stability measuring system |
| CN108226305A (en) * | 2018-01-22 | 2018-06-29 | 中国科学院声学研究所 | A kind of sound wave detecting method and system based on target property priori |
| CN110082808A (en) * | 2018-11-29 | 2019-08-02 | 绵阳市维博电子有限责任公司 | One kind is based on core pulse signal quick detection and recognition methods under complex background |
| CN116522101A (en) * | 2023-03-17 | 2023-08-01 | 西安热工研究院有限公司 | Feature selection verification method for radar electromagnetic simulation waveform added with weight |
| CN116539150A (en) * | 2023-05-10 | 2023-08-04 | 安徽工业大学 | Rolling mill vibration wireless monitoring method based on segmented windowing frequency domain integration |
| CN117856936A (en) * | 2023-12-03 | 2024-04-09 | 武汉船舶通信研究所(中国船舶集团有限公司第七二二研究所) | Receiving channel correction method, distributed system, electronic device and storage medium |
-
2022
- 2022-07-28 CN CN202210899185.9A patent/CN115456007B/en active Active
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2680439A1 (en) * | 1991-08-12 | 1993-02-19 | Metten Andre | Method of sending an electromagnetic signal intended to interact precisely on a predetermined date with a moving body |
| US6470001B1 (en) * | 1998-02-14 | 2002-10-22 | Samsung Electronics, Co., Ltd. | Device and method for time alignment on reverse link in mobile communication system |
| US20030072333A1 (en) * | 2001-10-11 | 2003-04-17 | International Business Machines Corporation | NRZ to RZ conversion in mode-locked laser using wavelength locked loops |
| CN101316158A (en) * | 2007-05-29 | 2008-12-03 | 北京良桑通信技术有限责任公司 | Additive waveshape pretreatment method in digital communication modulation |
| FR2942547A1 (en) * | 2009-02-26 | 2010-08-27 | Inst Francais Du Petrole | Seismic data pre-processing method for e.g. determining deposit structure of multi-component well during exploration phase, involves applying rotation to mark until determined direction coincides with azimuth direction for orienting mark |
| WO2014026089A1 (en) * | 2012-08-10 | 2014-02-13 | Waveconnex, Inc. | Dielectric coupling systems for ehf communications |
| CN106814257A (en) * | 2016-12-07 | 2017-06-09 | 北京邮电大学 | Chip type identifying system, method and device |
| CN106845286A (en) * | 2016-12-15 | 2017-06-13 | 北京邮电大学 | Hardware Trojan horse detection method, apparatus and system |
| CN108120888A (en) * | 2017-12-13 | 2018-06-05 | 合肥中科离子医学技术装备有限公司 | New cyclotron range stability measuring system |
| CN108226305A (en) * | 2018-01-22 | 2018-06-29 | 中国科学院声学研究所 | A kind of sound wave detecting method and system based on target property priori |
| CN110082808A (en) * | 2018-11-29 | 2019-08-02 | 绵阳市维博电子有限责任公司 | One kind is based on core pulse signal quick detection and recognition methods under complex background |
| CN116522101A (en) * | 2023-03-17 | 2023-08-01 | 西安热工研究院有限公司 | Feature selection verification method for radar electromagnetic simulation waveform added with weight |
| CN116539150A (en) * | 2023-05-10 | 2023-08-04 | 安徽工业大学 | Rolling mill vibration wireless monitoring method based on segmented windowing frequency domain integration |
| CN117856936A (en) * | 2023-12-03 | 2024-04-09 | 武汉船舶通信研究所(中国船舶集团有限公司第七二二研究所) | Receiving channel correction method, distributed system, electronic device and storage medium |
Non-Patent Citations (8)
| Title |
|---|
| LI GANG: "Application of FSV Method in Reliability Evaluation of Simulation Models", 2021 IEEE INTERNATIONAL CONFERENCE ON POWER, INTELLIGENT COMPUTING AND SYSTEM, 2 September 2021 (2021-09-02), pages 770 - 773 * |
| P.GOUÉDARD;T.SEHER;J.J.MCGUIRE;J.A.COLLINS;R.D.VAN DER HILST;雷晨;: "利用背景噪声校正海底地震仪钟差", 世界地震译丛, no. 05, 3 July 2018 (2018-07-03) * |
| 杨俊岭;李大治;万建伟;皇甫堪;: "海杂波尖峰特性研究及仿真分析", 系统仿真学报, no. 08, 20 April 2007 (2007-04-20) * |
| 沈国庆: "磁浮列车电磁辐射仿真与验证评估技术研究", 技术专栏, 31 August 2020 (2020-08-31) * |
| 王晓东;朱小明;吕宝林;鲍海明;刘文光;李哲;: "微通道板式WSZ位敏阳极探测器的图像拖尾处理", 光学精密工程, no. 09, 15 September 2013 (2013-09-15) * |
| 田敏: "扩频微波通信设备射频测试技术的研究", 中国优秀硕士学位论文全文数据库信息科技辑, no. 2, 15 February 2012 (2012-02-15) * |
| 罗德: "R&S在频谱仪FSVR和FSV上提供新的电磁兼容诊断测试选件", 国外电子测量技术, 1 July 2011 (2011-07-01) * |
| 闫述, 陈明生: "瞬变电磁场资料的联合时-频分析解释", 地球物理学报, no. 01, 17 January 2005 (2005-01-17) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116522101A (en) * | 2023-03-17 | 2023-08-01 | 西安热工研究院有限公司 | Feature selection verification method for radar electromagnetic simulation waveform added with weight |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115456007B (en) | 2024-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113568821B (en) | A method, device, equipment, and medium for testing computing performance of AI chips | |
| CN114066699B (en) | Carbon emission amount measuring method and device and terminal equipment | |
| WO2021208079A1 (en) | Method and apparatus for obtaining power battery life data, computer device, and medium | |
| CN108121795A (en) | User's behavior prediction method and device | |
| CN110378346B (en) | Method, device and equipment for establishing character recognition model and computer storage medium | |
| CN111694714A (en) | Many-core chip power consumption estimation method, device, equipment and readable storage medium | |
| CN111537884A (en) | Method, device, computer equipment and medium for obtaining power battery life data | |
| CN108694123A (en) | A kind of regression testing method, computer readable storage medium and terminal device | |
| CN110879776A (en) | Test case generation method and device | |
| CN118333149B (en) | Method and device for judging whether large language model output is illusion | |
| CN107169807A (en) | A kind of method of option valuation, apparatus and system | |
| CN114443476B (en) | Code review method and device | |
| CN118859310A (en) | A method and device for predicting earthquake source parameters based on deep learning | |
| CN105022686A (en) | Method and apparatus for determining CPU occupancy rate of process on android platform | |
| CN115456007B (en) | Electromagnetic signal contrast method, device, equipment and storage medium | |
| CN118707337A (en) | A method, device and medium for determining battery attenuation | |
| CN110764900A (en) | Data distribution test method and device under high concurrency, terminal and storage medium | |
| CN115933514B (en) | Control method, device, terminal and storage medium based on soft PLC | |
| CN117827668A (en) | Test coverage rate improving device, computer equipment and storage medium | |
| CN117971796A (en) | Method, device and electronic device for generating multi-group core database | |
| CN117422182A (en) | Data prediction method, device and storage medium | |
| CN116540027A (en) | Cable partial discharge positioning method and device based on electromagnetic time reversal | |
| WO2024109757A1 (en) | Fast diffusion tensor imaging method and apparatus | |
| CN118151077A (en) | Magnetic resonance imaging equipment testing method, device, storage medium and electronic equipment | |
| CN117472431A (en) | Code annotation generation method, device, computer equipment, storage medium and product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |