Disclosure of Invention
Aiming at the problems in the prior art, the application provides a method and a device for acquiring the signal-to-noise ratio of a time-frequency electromagnetic square wave signal, which can improve the accuracy and convenience degree of acquiring the signal-to-noise ratio and further improve the reliability of judging the data quality.
In order to solve the technical problem, the present application provides the following technical solutions:
in a first aspect, the present application provides a method for acquiring a signal-to-noise ratio of a time-frequency electromagnetic square wave signal, including:
acquiring target time-frequency electromagnetic square wave signals with target frequencies corresponding to a plurality of periods, wherein the target time-frequency electromagnetic square wave signals are square wave signals obtained by applying a time-frequency electromagnetic method;
obtaining a single-period superposed signal based on the target time-frequency electromagnetic square wave signal;
and obtaining a total signal-to-noise ratio corresponding to the target frequency according to the superposed signals, the number of the periods, and the number and the position of preset monocycle signal data.
Further, after obtaining the total signal-to-noise ratio corresponding to the target frequency according to the superposition signal, the number of the periods, and the number and position of the preset monocycle signal data, the method further includes:
marking the current target frequency as a processed frequency;
correspondingly, before the obtaining of the target time-frequency electromagnetic square wave signal with the target frequency corresponding to multiple periods, the target time-frequency electromagnetic square wave signal being a square wave signal obtained by applying a time-frequency electromagnetic method, the method further includes:
and selecting the frequency which is not marked as the processed frequency from the preset frequencies as the current target frequency.
Further, the obtaining a single-period superimposed signal based on the target time-frequency electromagnetic square wave signal includes:
superposing the target time-frequency electromagnetic square wave signal on square wave sub-signals corresponding to each period to obtain a superposed signal of a single period;
and each square wave sub-signal forms the target time-frequency electromagnetic square wave signal.
Further, the obtaining a total signal-to-noise ratio corresponding to the target frequency according to the superposition signal, the number of the periods, and the number and the position of the preset monocycle signal data includes:
obtaining noise and useful signals of a half period according to the superposed signals, the number of the periods and the number of preset monocycle signal data;
and obtaining the total signal-to-noise ratio of the target frequency according to the noise, the useful signal and the number of preset single-period signal data.
Further, the obtaining of the noise and useful signals of a half period according to the superimposed signal, the number of the periods and the number of the preset monocycle signal data includes:
obtaining an average superposed signal of a single period according to the superposed signals and the number of the periods;
obtaining a total average value of the superposed signals based on the average superposed signals and the number of preset monocycle signal data;
applying the average superposed signal, the total average value of the superposed signals, and the number and the position of the preset monocycle signal data to obtain the noise of the half cycle;
and obtaining the useful signal of the half period according to the average superposed signal, the number and the position of the preset monocycle signal data.
Further, the obtaining a total signal-to-noise ratio of the target frequency according to the noise, the useful signal and the preset number of monocycle signal data includes:
obtaining a signal-to-noise ratio corresponding to the half period according to the noise and the useful signal;
and obtaining the total signal-to-noise ratio of the target frequency according to the signal-to-noise ratio and the number of preset single-period signal data.
In a second aspect, the present application provides an apparatus for obtaining a signal-to-noise ratio of a time-frequency electromagnetic square wave signal, including:
the acquisition module is used for acquiring target time-frequency electromagnetic square wave signals with target frequencies corresponding to a plurality of periods, and the target time-frequency electromagnetic square wave signals are square wave signals obtained by applying a time-frequency electromagnetic method;
the superposition module is used for obtaining a superposition signal of a single period based on the target time-frequency electromagnetic square wave signal;
and the signal-to-noise ratio obtaining module is used for obtaining a total signal-to-noise ratio corresponding to the target frequency according to the superposed signals, the number of the periods, and the number and the position of preset monocycle signal data.
Further, the device for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal further comprises:
the marking module is used for marking the current target frequency as a processed frequency;
and the selection module is used for selecting the frequency which is not marked as the processed frequency from the preset frequencies as the current target frequency.
Further, the superposition module includes:
the superposition unit is used for superposing the square wave sub-signals of the target time-frequency electromagnetic square wave signal in each period correspondingly to obtain a superposed signal of a single period;
and each square wave sub-signal forms the target time-frequency electromagnetic square wave signal.
Further, the acquiring a signal-to-noise ratio module includes:
the first signal-to-noise ratio acquisition unit is used for acquiring noise and useful signals of a half period according to the superposed signals, the number of the periods and the number of preset monocycle signal data;
and the second signal-to-noise ratio acquisition unit is used for acquiring the total signal-to-noise ratio of the target frequency according to the noise, the useful signal and the number of preset single-period signal data.
Further, the first acquiring snr unit includes:
a noise and useful signal acquisition subunit for performing the following:
obtaining an average superposed signal of a single period according to the superposed signals and the number of the periods;
obtaining a total average value of the superposed signals based on the average superposed signals and the number of preset monocycle signal data;
applying the average superposed signal, the total average value of the superposed signals, and the number and the position of the preset monocycle signal data to obtain the noise of the half cycle;
and obtaining the useful signal of the half period according to the average superposed signal, the number and the position of the preset monocycle signal data.
Further, the second acquiring snr unit includes:
an obtain total snr subunit configured to perform the following:
obtaining a signal-to-noise ratio corresponding to the half period according to the noise and the useful signal;
and obtaining the total signal-to-noise ratio of the target frequency according to the signal-to-noise ratio and the number of preset single-period signal data.
In a third aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for obtaining the signal-to-noise ratio of the time-frequency electromagnetic square wave signal when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed, the method for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal is implemented.
According to the technical scheme, the method and the device for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal are provided. Wherein, the method comprises the following steps: acquiring target time-frequency electromagnetic square wave signals with target frequencies corresponding to a plurality of periods, wherein the target time-frequency electromagnetic square wave signals are square wave signals obtained by applying a time-frequency electromagnetic method; obtaining a single-period superposed signal based on the target time-frequency electromagnetic square wave signal; according to the superposed signals, the number of the periods, and the number and the positions of the preset monocycle signal data, the total signal-to-noise ratio corresponding to the target frequency is obtained, so that the accuracy and the convenience degree of obtaining the signal-to-noise ratio can be improved, and the reliability of judging the data quality can be further improved; specifically, the accuracy of the result can be improved, the noise level of an actual data acquisition site can be reflected, the data quality can be judged according to the signal-to-noise ratio, and meanwhile, the method has the advantages of high calculation speed, easiness in implementation, high efficiency and the like, is suitable for popularization and use in time-frequency electromagnetic data processing, and has obvious economic and technical values.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on this, in order to improve accuracy of acquiring a signal-to-noise ratio and further improve reliability of judging data quality, an embodiment of the present application provides a signal-to-noise ratio acquiring apparatus for a time-frequency electromagnetic square wave signal, where the apparatus may be a server or a client device, and the client device may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, an intelligent wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch and intelligent bracelet etc..
In practical applications, the portion for performing the signal-to-noise ratio acquisition of the time-frequency electromagnetic square wave signal may be performed at the server side as described above, or all operations may be completed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
The server and the client device may communicate using any suitable network protocol, including network protocols not yet developed at the filing date of this application. The network protocol may include, for example, a TCP/IP protocol, a UDP/IP protocol, an HTTP protocol, an HTTPS protocol, or the like. Of course, the network Protocol may also include, for example, an RPC Protocol (Remote Procedure Call Protocol), a REST Protocol (Representational State Transfer Protocol), and the like used above the above Protocol.
The following examples are intended to illustrate the details.
In order to improve the accuracy of acquiring the signal-to-noise ratio and further improve the reliability of determining the data quality, the embodiment provides a method for acquiring the signal-to-noise ratio of a time-frequency electromagnetic square wave signal, in which the signal-to-noise ratio acquiring apparatus for executing the time-frequency electromagnetic square wave signal is a device for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal, the device for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal includes but is not:
step 101: and acquiring target time-frequency electromagnetic square wave signals with target frequencies corresponding to a plurality of periods, wherein the target time-frequency electromagnetic square wave signals are square wave signals obtained by applying a time-frequency electromagnetic method.
Specifically, the corresponding period may be determined according to the target frequency; the number of cycles corresponding to the target frequency can be set according to actual conditions, and the number is not limited in the application; the time-frequency electromagnetic method is a method in the field of petroleum exploration and can obtain time domain and frequency domain signals; the target time-frequency electromagnetic square wave signal does not zero; the time-frequency electromagnetic square wave signal consists of a useful signal and noise.
Step 102: and obtaining a single-period superposed signal based on the target time-frequency electromagnetic square wave signal.
Specifically, the square wave sub-signals of the target time-frequency electromagnetic square wave signal in each period may be superimposed to obtain a superimposed signal of a single period, and each square wave sub-signal constitutes the target time-frequency electromagnetic square wave signal; each square wave sub-signal corresponds to one period respectively; that is, the signal data at the same position in each period may be accumulated to obtain the superimposed signal data corresponding to each position.
Step 103: and obtaining a total signal-to-noise ratio corresponding to the target frequency according to the superposed signals, the number of the periods, and the number and the position of preset monocycle signal data.
Specifically, the number and the position of the preset single-period signal data refer to the number of the preset signal data in a single period and the position of each signal data in the single period; the number and the position of the signal data in each period are the same, the number of the signal data in each period is an even number, the position of each signal data can be determined at the same time interval, and the amplitude corresponding to each position can be used as the signal data at the current moment; furthermore, continuous data point serial numbers can be set in a single period according to the same time interval, the same position in each period can indicate that the data point serial numbers are the same, the number and the position of the preset single-period signal data can be specifically set according to actual needs, and the application is not limited to this; the total signal-to-noise ratio may be a signal-to-noise ratio of any time-frequency electromagnetic square wave signal corresponding to the target frequency.
In order to improve the accuracy of acquiring the snr of a plurality of frequencies, referring to fig. 2, in an embodiment of the present application, afterstep 103, the method further includes:
step 201: marking the current target frequency as a processed frequency; correspondingly, beforestep 101, the method further includes:
step 202: and selecting the frequency which is not marked as the processed frequency from the preset frequencies as the current target frequency.
Specifically, the preset frequency may be set according to actual conditions, which is not limited in this application.
To further improve the accuracy and efficiency of the snr acquisition, referring to fig. 3, in an embodiment of the present application,step 103 includes:
step 301: and obtaining the noise and useful signals of a half period according to the superposed signals, the number of the periods and the number of preset monocycle signal data.
Step 302: and obtaining the total signal-to-noise ratio of the target frequency according to the noise, the useful signal and the number of preset single-period signal data.
To further improve the accuracy and efficiency of the snr acquisition, referring to fig. 4, in an embodiment of the present application,step 301 includes:
step 401: and obtaining an average superposed signal of a single period according to the superposed signals and the number of the periods.
Specifically, each of the superimposed signal data may be divided by the number of periods, so as to obtain a superimposed signal average value corresponding to each position.
Step 402: and obtaining the total average value of the superposed signals based on the average superposed signals and the preset number of the monocycle signal data.
Specifically, the total average value of the superimposed signals may be obtained by dividing the sum of the average values of the superimposed signals by the number of the preset monocycle signal data.
Step 403: and obtaining the noise of the half period by applying the average superposed signal, the total average value of the superposed signals, and the number and the position of the preset monocycle signal data.
Step 404: and obtaining the useful signal of the half period according to the average superposed signal, the number and the position of the preset monocycle signal data.
To further improve the accuracy and efficiency of the snr acquisition, referring to fig. 5, in an embodiment of the present application,step 302 includes:
step 501: and obtaining the signal-to-noise ratio corresponding to the half period according to the noise and the useful signal.
Step 502: and obtaining the total signal-to-noise ratio of the target frequency according to the signal-to-noise ratio and the number of preset single-period signal data.
In order to further explain the scheme, the application example of the method for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal is provided, and in the application example, the signal-to-noise ratio of the time-frequency electromagnetic data of a certain region in the east of China can be acquired, wherein the data of the region has 13 frequencies.
The time-frequency electromagnetic square wave signal in the application example is time-frequency electromagnetic data, and may be a square wave signal with mv as a unit, and specifically, the time-frequency electromagnetic square wave signal is composed of a series of square wave signals with multiple frequencies, multiple cycles for each frequency, an even number of signal data in each cycle, and no zero crossing, that is, the complete time-frequency electromagnetic data has num _ f frequencies, num _ c cycles for each frequency, num _ p data in each cycle, num _ c and num _ p of each frequency are different from each other, and num _ p is an even number.
Signal data at each time is DijkThe signal data may be the amplitude of the signal at the present moment, the signal being composed of the useful signal and the noise, from which D is knownijk=Sijk+NijkWherein S isijkThe useful signal data may be the amplitude of the useful signal at the current time, NijkThe data is noise data, which can be the amplitude of noise at the current moment, i is a frequency serial number, i is more than or equal to 1 and less than or equal to num _ f, j is a cycle serial number, j is more than or equal to 1 and less than or equal to num _ c, k is a data point serial number in a single cycle, and k is more than or equal to 1 and less than or equal to num _ p; for example, a single frequency single period time-frequency electromagnetic square wave signal, as shown in fig. 6; a single frequency single period time-frequency electromagnetic square wave signal with a frequency of 0.6667Hz may be as shown in fig. 7.
The signal-to-noise ratio obtaining method provided by the application example specifically comprises the following steps:
step 100: superposing the signals of all periods of the ith frequency to obtain a superposed signal of one period; the signal data with the same data point serial number in each period can be accumulated to obtain the superposed signal data sum (D) corresponding to each data point serial number
ik),
Wherein k is more than or equal to 1 and less than or equal to num _ p.
Step 200: averaging the superposed signals of one period obtained in thestep 100 to obtain an average superposed signal of one period; the data of each superposed signal can be respectively averaged to obtain the average value avg (D) of the superposed signal corresponding to each data point serial numberik),avg(Dik)=sum(Dik) And/num _ c, wherein k is more than or equal to 1 and less than or equal to num _ p.
Step 300: calculating the total average value of the average superposed signals of one period obtained in the
step 200; the overall average avg (D) may be averaged over all of the superimposed signals
i),
Step 400: according to the average superposed signal of one period obtained in the
step 200, the average values of the superposed signals corresponding to the serial numbers of the data points in the first half period and the second half period are added and then averaged, then the total average value is subtracted and the absolute value is calculated, so that the noise N of the half period is obtained
ikI.e. by
Wherein k is more than or equal to 1 and less than or equal to num _ p/2, and m is k + num _ p/2.
Step 500: according to the average superposed signal of one period obtained in the
step 200, subtracting the average value of the superposed signals corresponding to the data point serial numbers in the first half period and the second half period, then averaging, and then calculating the absolute value of the average superposed signal to obtain the useful signal S of the half period
ikI.e. by
Wherein k is more than or equal to 1 and less than or equal to num _ p/2, and m is k + num _ p/2.
Step 600: according to thesteps 400 and 500, calculating the SNR corresponding to each data point sequence number in the half-cycle signalik,SNRik=20×log10(Sik/Nik) Wherein k is more than or equal to 1 and less than or equal to num _ p/2.
Step 700: calculate the total signal-to-noise ratio NSR for this frequency
i,
Step 800: calculating the signal-to-noise ratio of all other frequencies in the time-frequency electromagnetic data according to the steps from 100 to 700; in one example, the resulting signal-to-noise ratios for all frequencies can be as shown in fig. 8.
In terms of software, in order to improve the accuracy of acquiring the signal-to-noise ratio and further improve the reliability of determining the data quality, the present application provides an embodiment of an apparatus for acquiring the signal-to-noise ratio of a time-frequency electromagnetic square wave signal, which is used for implementing all or part of the contents in the method for acquiring the signal-to-noise ratio of a time-frequency electromagnetic square wave signal, and the apparatus for acquiring the signal-to-noise ratio of a time-frequency electromagnetic square wave signal specifically includes the following contents, referring to fig. 9:
theacquisition module 10 is configured to acquire a target time-frequency electromagnetic square wave signal of which the target frequency corresponds to multiple periods, where the target time-frequency electromagnetic square wave signal is a square wave signal obtained by applying a time-frequency electromagnetic method.
And thesuperposition module 20 is configured to obtain a superposition signal of a single period based on the target time-frequency electromagnetic square wave signal.
And the signal-to-noiseratio obtaining module 30 is configured to obtain a total signal-to-noise ratio corresponding to the target frequency according to the superimposed signal, the number of periods, and the number and position of preset monocycle signal data.
In an embodiment of the present application, the apparatus for obtaining a signal-to-noise ratio of a time-frequency electromagnetic square wave signal further includes:
and the marking module is used for marking the current target frequency as the processed frequency.
And the selection module is used for selecting the frequency which is not marked as the processed frequency from the preset frequencies as the current target frequency.
In an embodiment of the present application, the overlay module includes:
and the superposition unit is used for superposing the square wave sub-signals of the target time-frequency electromagnetic square wave signal in each period correspondingly to obtain a superposed signal of a single period.
And each square wave sub-signal forms the target time-frequency electromagnetic square wave signal.
In an embodiment of the present application, the signal-to-noise ratio obtaining module includes.
And the first signal-to-noise ratio acquisition unit is used for acquiring noise and useful signals of a half period according to the superposed signals, the number of the periods and the number of preset monocycle signal data.
And the second signal-to-noise ratio acquisition unit is used for acquiring the total signal-to-noise ratio of the target frequency according to the noise, the useful signal and the number of preset single-period signal data.
In an embodiment of the present application, the first acquiring snr unit includes:
a noise and useful signal acquisition subunit for performing the following:
obtaining an average superposed signal of a single period according to the superposed signals and the number of the periods;
obtaining a total average value of the superposed signals based on the average superposed signals and the number of preset monocycle signal data;
applying the average superposed signal, the total average value of the superposed signals, and the number and the position of the preset monocycle signal data to obtain the noise of the half cycle;
and obtaining the useful signal of the half period according to the average superposed signal, the number and the position of the preset monocycle signal data.
In an embodiment of the present application, the second acquiring snr unit includes:
an obtain total snr subunit configured to perform the following:
obtaining a signal-to-noise ratio corresponding to the half period according to the noise and the useful signal;
and obtaining the total signal-to-noise ratio of the target frequency according to the signal-to-noise ratio and the number of preset single-period signal data.
The embodiments of the apparatus for acquiring a signal-to-noise ratio of a time-frequency electromagnetic square wave signal provided in this specification may be specifically used for executing the processing procedure of the embodiment of the method for acquiring a signal-to-noise ratio of a time-frequency electromagnetic square wave signal, and the functions of the apparatus are not described herein again, and reference may be made to the detailed description of the embodiment of the method for acquiring a signal-to-noise ratio of a time-frequency electromagnetic square wave signal.
According to the description, the signal-to-noise ratio obtaining method and the signal-to-noise ratio obtaining device for the time-frequency electromagnetic square wave signal can improve the accuracy and convenience degree of obtaining the signal-to-noise ratio, and further can improve the reliability of judging the data quality; specifically, the accuracy of the result can be improved, the noise level of an actual data acquisition site can be reflected, the data quality can be judged according to the signal-to-noise ratio, and meanwhile, the method has the advantages of high calculation speed, easiness in implementation, high efficiency and the like, is suitable for popularization and use in time-frequency electromagnetic data processing, and has obvious economic and technical values.
In terms of hardware, in order to improve accuracy and convenience of acquiring the signal-to-noise ratio and further improve reliability of determining data quality, the present application provides an embodiment of an electronic device for implementing all or part of contents in the method for acquiring the signal-to-noise ratio of the time-frequency electromagnetic square wave signal, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the signal-to-noise ratio acquisition device of the time-frequency electromagnetic square wave signal and related equipment such as a user terminal; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment of the method for implementing the signal-to-noise ratio acquisition of the time-frequency electromagnetic square wave signal and the embodiment of the device for implementing the signal-to-noise ratio acquisition of the time-frequency electromagnetic square wave signal in the embodiment, and the contents thereof are incorporated herein, and repeated details are not repeated here.
Fig. 10 is a schematic block diagram of a system configuration of anelectronic device 9600 according to an embodiment of the present application. As shown in fig. 10, theelectronic device 9600 can include acentral processor 9100 and amemory 9140; thememory 9140 is coupled to thecentral processor 9100. Notably, this fig. 10 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one or more embodiments of the present application, the signal-to-noise ratio obtaining function of the time-frequency electromagnetic square wave signal may be integrated into thecentral processor 9100. Thecentral processor 9100 may be configured to control as follows:
step 101: and acquiring target time-frequency electromagnetic square wave signals with target frequencies corresponding to a plurality of periods, wherein the target time-frequency electromagnetic square wave signals are square wave signals obtained by applying a time-frequency electromagnetic method.
Step 102: and obtaining a single-period superposed signal based on the target time-frequency electromagnetic square wave signal.
Step 103: and obtaining a total signal-to-noise ratio corresponding to the target frequency according to the superposed signals, the number of the periods, and the number and the position of preset monocycle signal data.
From the above description, the electronic device provided in the embodiment of the application can improve accuracy and convenience of signal-to-noise ratio acquisition, and further improve reliability of data quality judgment.
In another embodiment, the signal-to-noise ratio obtaining device of the time-frequency electromagnetic square wave signal may be configured separately from thecentral processor 9100, for example, the signal-to-noise ratio obtaining device of the time-frequency electromagnetic square wave signal may be configured as a chip connected to thecentral processor 9100, and the signal-to-noise ratio obtaining function of the time-frequency electromagnetic square wave signal is realized by the control of the central processor.
As shown in fig. 10, theelectronic device 9600 may further include: acommunication module 9110, aninput unit 9120, anaudio processor 9130, adisplay 9160, and apower supply 9170. It is noted that theelectronic device 9600 also does not necessarily include all of the components shown in fig. 10; in addition, theelectronic device 9600 may further include components not shown in fig. 10, which can be referred to in the prior art.
As shown in fig. 10, acentral processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, whichcentral processor 9100 receives input and controls the operation of the various components of theelectronic device 9600.
Thememory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And thecentral processing unit 9100 can execute the program stored in thememory 9140 to realize information storage or processing, or the like.
Theinput unit 9120 provides input to thecentral processor 9100. Theinput unit 9120 is, for example, a key or a touch input device.Power supply 9170 is used to provide power toelectronic device 9600. Thedisplay 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
Thememory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. Thememory 9140 could also be some other type of device.Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). Thememory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of theelectronic device 9600 by thecentral processor 9100.
Thememory 9140 can also include adata store 9143, thedata store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. Thedriver storage portion 9144 of thememory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
Thecommunication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via anantenna 9111. The communication module (transmitter/receiver) 9110 is coupled to thecentral processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality ofcommunication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to aspeaker 9131 and amicrophone 9132 via anaudio processor 9130 to provide audio output via thespeaker 9131 and receive audio input from themicrophone 9132, thereby implementing ordinary telecommunications functions. Theaudio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, theaudio processor 9130 is also coupled to thecentral processor 9100, thereby enabling recording locally through themicrophone 9132 and enabling locally stored sounds to be played through thespeaker 9131.
According to the description, the electronic equipment provided by the embodiment of the application can improve the accuracy and convenience degree of signal-to-noise ratio acquisition, and further improve the reliability of judging the data quality.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all steps in the method for acquiring a signal-to-noise ratio of a time-frequency electromagnetic square wave signal in the foregoing embodiment, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements all steps of the method for acquiring a signal-to-noise ratio of a time-frequency electromagnetic square wave signal in the foregoing embodiment, for example, when the processor executes the computer program, the processor implements the following steps:
step 101: and acquiring target time-frequency electromagnetic square wave signals with target frequencies corresponding to a plurality of periods, wherein the target time-frequency electromagnetic square wave signals are square wave signals obtained by applying a time-frequency electromagnetic method.
Step 102: and obtaining a single-period superposed signal based on the target time-frequency electromagnetic square wave signal.
Step 103: and obtaining a total signal-to-noise ratio corresponding to the target frequency according to the superposed signals, the number of the periods, and the number and the position of preset monocycle signal data.
As can be seen from the above description, the computer-readable storage medium provided in the embodiments of the present application can improve accuracy and convenience of acquiring the signal-to-noise ratio, and further improve reliability of determining data quality.
In the present application, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. Reference is made to the description of the method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the present application are explained by applying specific embodiments in the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.