Background
In the product implementation of the mobile communication system, the channel estimation module is a key module for baseband processing of the physical layer, and the computation thereof is also one of the modules with larger computation in baseband processing. Because of the existence of multipath in the spatial channel, many current channel estimation algorithms need to perform time domain noise suppression, and the most common method for the time domain noise suppression is to use a sliding window mode.
In the following, referring to fig. 1A to 1D, taking channel estimation in a Long Term Evolution (LTE) system as an example, a current implementation manner of Time domain noise suppression in channel estimation includes the following steps:
the method comprises the steps of firstly, determining the position of a signal window according to an applied scene and a partial measurement result, and solving the amplitude value or the power value Sig _ p of each sampling point signal in the signal window, wherein the window length of the signal is N, namely the number of the sampling points in the signal window is N.
Determining the position of a noise window, determining the average amplitude value or the average power value noise _ p of the noise according to the channel estimation value of each sampling point in the noise window, and determining the threshold of a signal retention path as V according to the noise powerT=Kth×noise_p,KthTo adjust the coefficients.
And step three, determining the window length of the sliding window to be 2L, and determining the half window length to be L.
Step four, when the sliding window moves in the signal window, dividing the whole signal window into three parts according to the part of the sliding window in the signal window, as shown in fig. 1A, respectively: assuming that the number of sampling points in the signal window is N, the left 0-L-1 sampling point is the left window, the L-N-L-1 sampling point is the middle window, and the N-L-N-1 sampling point is the right window, and the process of determining the reserved diameter is described in three parts as follows:
as shown in fig. 1B, when the midpoint of the sliding window moves to the left window, and the remaining path is determined by using the sliding window, it needs to judge whether the signal values Sig _ p of the sampling points corresponding to all the points in the sliding window are greater than the threshold value VT one by one, and when at least one sampling point whose signal value Sig _ p is greater than the threshold value VT exists in the sampling points corresponding to all the points in the sliding window, the channel path of the sampling point corresponding to the midpoint in the sliding window is used as the remaining path; and when the signal values Sig _ p of the sampling points corresponding to all the points in the sliding window are less than or equal to the threshold value VT, the channel path of the sampling point corresponding to the midpoint in the sliding window is not taken as a reserved path.
Similarly, as shown in fig. 1C, when the midpoint of the sliding window moves to the middle window, and as shown in fig. 1D, when the midpoint of the sliding window moves to the right window, and the reserved path is determined by using the sliding window, it is necessary to determine whether the signal values Sig _ p of the sampling points corresponding to all the points in the sliding window are greater than the threshold value VT one by one, and when at least one sampling point whose signal value Sig _ p is greater than the threshold value VT exists in the sampling points corresponding to all the points in the sliding window, the channel path of the sampling point corresponding to the midpoint of the sliding window is taken as the reserved path; and when the signal values Sig _ p of the sampling points corresponding to all the points in the sliding window are less than or equal to the threshold value VT, the channel path of the sampling point corresponding to the midpoint in the sliding window is not taken as a reserved path.
As can be seen from the above process of determining the reservation path, the prior art channel estimation suppresses the noise to obtain the reservationIn the path, whether each sampling point needs to carry out 2L comparison operations at most for reserving the path is determined for the middle window, and L + K needs to be carried out at most for the left window and the right window1Second comparison operation (K)1Distance between a sampling point in the left window and the leftmost window, and distance between a sampling point in the right window and the rightmost window), the maximum comparison time is 2NL-L2. In a real-time processor, the comparison operation cannot be pipelined, the next operation depends on the operation result of the previous step, even if the processor is a powerful one, because of no pipelining operation, a lot of waiting exists, the time for completing the function is greatly prolonged, and the running time of channel estimation is affected, and many systems are strict systems with feedback, and some things need to be completed in a specified time, which brings difficulty to the timing design of the system.
In summary, in the operation for determining the reserved path in the prior art, the operation amount is large, more system resources are occupied, the cost is high, and a large time delay exists in the service plane, which is not favorable for the time sequence design of the system.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining a target parameter by using a sliding window, which are used for reducing the operation amount in the process of determining the target parameter and reducing the processing time delay of a system and occupied system processing resources, thereby reducing the product cost and reducing the complexity of system time sequence design and the time delay of a service plane.
The embodiment of the invention provides a method for determining target parameters by using a sliding window, wherein the sliding window moves in a signal window, and the method comprises the following steps: when the middle point of the sliding window moves to the left window of the signal window, comparing the signal value of the sampling point in the left window with a preset threshold value; and determining the value of the influence factor according to the comparison result.
In the above method provided by the embodiment of the present invention, the value of the impact factor is determined according to the relationship between the signal value of the sampling point in the left window and the preset threshold, so that in the process of determining the target parameter, only the relationship between the signal value of the sampling point corresponding to the midpoint of the sliding window and the preset threshold needs to be compared, when the signal value of the sampling point in the signal window corresponding to the midpoint of the sliding window is greater than the preset threshold, the value of the impact factor is updated, and whether the parameter corresponding to the sampling point corresponding to the starting point of the current sliding window is the target parameter or not can be determined according to the value of the impact factor, compared with the prior art that whether the channel path corresponding to each sampling point in the signal window is the reserved path or not, the signal values of the sampling points at the overlapping portions of the sliding window and the signal window need to be compared with the preset threshold one by one until the first sampling point greater than the preset threshold or all, the comparison times and the calculation amount in the process of determining the target parameters (such as the reserved path) are reduced, and the processing time delay of the system and the occupied system processing resources are reduced, so that the product cost is reduced, and the complexity of the system time sequence design and the time delay of a service plane are reduced.
In a possible implementation manner, in the foregoing method provided by an embodiment of the present invention, the method further includes: when the middle point of the sliding window moves to the middle window of the signal window, the following steps are adopted for determining the target parameter of the current sliding window: acquiring a signal value of a specific sampling point, wherein the specific sampling point is a sampling point in a signal window corresponding to the middle point of the sliding window; and when the signal value of the specific sampling point is determined to be larger than the preset threshold value, updating the value of the influence factor to be the number of the sampling points corresponding to the sliding window, taking the parameter corresponding to the first sampling point as a target parameter, and subtracting one from the value of the influence factor, wherein the first sampling point is the sampling point in the signal window corresponding to the starting point of the current sliding window.
In a possible implementation manner, in the foregoing method provided by an embodiment of the present invention, the method further includes: when the signal value of the specific sampling point is determined to be less than or equal to the preset threshold, determining whether the parameter corresponding to the first sampling point is used as a target parameter according to the value of the influence factor, specifically including: when the influence factor value is determined to be larger than zero, taking the parameter corresponding to the first sampling point as a target parameter, and subtracting one from the influence factor value; or when the value of the influence factor is determined to be less than or equal to zero, the parameter corresponding to the first sampling point is not taken as the target parameter.
In a possible implementation manner, the method provided by the embodiment of the present invention, comparing the signal values of the sampling points in the left window with a preset threshold, and determining the value of the impact factor according to the comparison result, includes: acquiring a signal value of the specific sampling point from right to left in the left window; and comparing the signal values of the specific sampling points with a preset threshold, and taking the number of the sampling points corresponding to the overlapping part of the sliding window and the signal window as the value of the influence factor when the specific sampling point with the first signal value larger than the preset threshold is determined.
In the method provided by the embodiment of the invention, the closer the sampling point in the left window is to the middle window, the larger the value of the influence factor determined by the sampling point is, so that when the value of the influence factor is determined by using the sampling point in the left window, the signal value of a specific sampling point is obtained from right to left in the left window, the value of the influence factor can be determined only by finding the sampling point of which the first signal value is greater than the preset threshold, the signal values of all the sampling points in the left window do not need to be compared with the preset threshold, and the comparison times and the calculation amount in the process of determining the target parameter are further reduced.
In a possible implementation manner, in the foregoing method provided by an embodiment of the present invention, the method further includes: and when the middle point of the sliding window moves to the right window of the signal window, adding a right expansion window containing a preset number of sampling points behind the right window, and setting the signal values of all the sampling points in the right expansion window to be zero, wherein the preset number is half of the number of the sampling points corresponding to the sliding window.
In a possible implementation manner, in the foregoing method provided by an embodiment of the present invention, the parameter corresponding to the sampling point is a channel estimation value, and the target parameter is a channel estimation value after noise suppression. .
The embodiment of the invention provides a device for determining target parameters by using a sliding window, wherein the sliding window moves in a signal window, and the device comprises: the first processing unit is used for comparing the signal value of the sampling point in the left window with a preset threshold value when the middle point of the sliding window moves to the left window of the signal window; and the second processing unit is connected to the first processing unit and used for determining the value of the influence factor according to the comparison result.
In the above apparatus provided in the embodiment of the present invention, the value of the impact factor is determined according to the relationship between the signal value of the sampling point in the left window and the preset threshold, so that in the process of determining the target parameter, only the relationship between the signal value of the sampling point corresponding to the midpoint of the sliding window and the preset threshold needs to be compared, when the signal value of the sampling point in the signal window corresponding to the midpoint of the sliding window is greater than the preset threshold, the value of the impact factor is updated, and whether the parameter corresponding to the sampling point corresponding to the starting point of the current sliding window is the target parameter or not can be determined according to the value of the impact factor, compared with the prior art that whether the channel path corresponding to each sampling point in the signal window is the reserved path or not, the signal values of the sampling points at the overlapping portions of the sliding window and the signal window need to be compared with the preset threshold one by one until the first sampling point greater than the preset threshold or all, the comparison times and the calculation amount in the process of determining the target parameters (such as the reserved path) are reduced, and the processing time delay of the system and the occupied system processing resources are reduced, so that the product cost is reduced, and the complexity of the system time sequence design and the time delay of a service plane are reduced.
In a possible implementation manner, an embodiment of the present invention provides the above apparatus, where the apparatus further includes: the acquisition unit is connected to the second processing unit and used for acquiring a signal value of a specific sampling point when the middle point of the sliding window moves to the middle window of the signal window, wherein the specific sampling point is the sampling point in the signal window corresponding to the middle point of the sliding window; and the second processing unit is further configured to, when it is determined that the signal value of the specific sampling point is greater than a preset threshold, update the value of the impact factor to be the number of sampling points corresponding to the sliding window, take a parameter corresponding to a first sampling point as a target parameter, and subtract the value of the impact factor by one, where the first sampling point is a sampling point in the signal window corresponding to the starting point of the current sliding window.
In a possible implementation manner, in the above apparatus provided by an embodiment of the present invention, when it is determined that the signal value of the specific sampling point is less than or equal to a preset threshold, the determining, according to the value of the impact factor, whether the parameter corresponding to the first sampling point is a target parameter further includes: when the influence factor value is determined to be larger than zero, taking the parameter corresponding to the first sampling point as a target parameter, and subtracting one from the influence factor value; or when the value of the influence factor is determined to be less than or equal to zero, the parameter corresponding to the first sampling point is not taken as the target parameter.
In a possible implementation manner, an embodiment of the present invention provides the above apparatus, wherein the first processing unit compares the signal values of the sampling points in the left window with a preset threshold, and the second processing unit determines the value of the impact factor according to the comparison result, and includes: the first processing unit acquires the signal value of the specific sampling point from right to left in the left window; and the first processing unit compares the signal value of the specific sampling point with a preset threshold value, and when the specific sampling point of which the first signal value is greater than the preset threshold value is determined, the second processing unit takes the number of the sampling points corresponding to the overlapping part of the sliding window and the signal window as the value of the influence factor.
In the device provided by the embodiment of the invention, the closer the sampling point in the left window is to the middle window, the larger the value of the influence factor determined by the sampling point is, so that when the value of the influence factor is determined by using the sampling point in the left window, the signal value of a specific sampling point is obtained from right to left in the left window, the value of the influence factor can be determined only by finding the sampling point of which the first signal value is greater than the preset threshold, the signal values of all the sampling points in the left window do not need to be compared with the preset threshold, and the comparison times and the calculation amount in the process of determining the target parameter are further reduced.
In a possible implementation manner, in the above apparatus provided by the embodiment of the present invention, when the middle point of the sliding window moves to the right window of the signal window, the second processing unit is further configured to add a right expansion window including a preset number of sampling points after the right window, and set the signal values of all the sampling points in the right expansion window to zero, where the preset number is half of the number of the sampling points corresponding to the sliding window.
In a possible implementation manner, in the apparatus provided by an embodiment of the present invention, the parameter corresponding to the sampling point is a channel estimation value, and the target parameter is a channel estimation value after noise suppression.
In specific implementation, the signal value of the sampling point may be an amplitude value or a power value of a signal of the sampling point, and may be obtained by calculating through an original channel estimation sequence, and the preset threshold may be set according to an average amplitude value or an average power value of noise, for example: preset threshold VT ═ KthX noise _ p, where noise _ p is the average amplitude or average power of the noise, KthTo adjust the coefficients, it can be specifically set according to a specific scene model, or default values can be adopted, such as: kth4. Of course, the preset threshold should correspond to the signal value, specifically, if the signal value of the sampling point is an amplitude value, the preset threshold should also be an amplitude value; if the signal value of the sampling point is a power value, the preset threshold should also be the power value.
First, a principle of determining a reserved path by using a sliding window according to an embodiment of the present invention is described with reference to fig. 3, where as shown in fig. 3, when the sliding window slides in a signal window, the sliding window moves by one sampling point each time, for example: for sliding window A0、A1…A2LWherein L is the half-window length of the sliding window, and the sliding window A0And a sliding window A1With 2L-1 sampling points in between, repeated, sliding window A0And a sliding window A2With 2L-2 samples in between, is repeated, thus, determining the sliding window a0Information of sampling point corresponding to inner midpointIn the course of judging that the track path is retained or not, signal window A is cut0Comparing the signal values of the sampling points corresponding to all the internal points with a preset threshold value, and determining the sliding window A1When the channel path of the sampling point corresponding to the midpoint is reserved, the sliding window A is not needed1Comparing the signal values of the sampling points corresponding to all the internal points with a preset threshold value, and using a sliding window A0History of internal comparison leaves information, and only the sliding window A needs to be used at the moment1Sliding window A0And comparing the signal values of the repeated sampling points with a preset threshold value.
Based on the moving process of the sliding window, only one sampling point is added in the sliding window for each moving of the sliding window, in the process of determining the reserved diameter by using the sliding window, the value of the influence factor is introduced, the value of the influence factor is used for recording the influence range of the point meeting the condition (the signal value is larger than the preset threshold value) in the left window, namely, the value of the initialized influence factor is calculated by using the left window, in the moving process of the sliding window, the value of the influence factor is updated according to the relation between the signal value of the newly added sampling point in the sliding window and the preset threshold value, whether the channel path of a certain sampling point (for example, the sampling point corresponding to the starting point of the sliding window) in the sliding window is reserved or not is determined according to the value of the influence factor before updating, and for the right window, the added expansion window can be used for.
The method for determining the reserved path by using the sliding window provided by the embodiment of the invention comprises the following specific steps:
the method comprises the steps of firstly, determining the position of a signal window according to an applied scene and a partial measurement result, and solving the amplitude value or power value Sig _ p of each sampling point signal in the signal window, wherein the window length of the signal is N, namely the number of the sampling points in the signal window is N, the original time domain channel estimation sequence is h (N), and N belongs to (0, 1, … N-1).
Determining the position of a noise window, determining the average amplitude value or power value noise _ p of noise according to the channel estimation value of each sampling point in the noise window, and determining a signal protection according to the noise powerThe preset threshold value of the diameter is VT ═ Kth×noise_p,KthTo adjust the coefficients.
And step three, determining the window length of the sliding window to be 2L, and determining the half window length to be L.
Fourthly, the channel estimation sequence after noise suppression is hremove_noise(n) setting the time domain channel estimation sequence after noise suppression to 0, hremove_noise(n)=0,n∈(0,1,…N-1)。
Firstly, when the middle point of the sliding window moves to the left window, the signal values Sig _ p of all sampling points in the left window of the signal window are compared with a preset threshold VT, the sampling point of which the first signal value Sig _ p from right to left in the left window is larger than the preset threshold VT is found, and then the value of the influence factor is determined according to the sampling point. That is, the value of the influence factor is the number of the reserved paths determined according to the sampling point of which the first signal value from right to left in the left window is greater than the preset threshold value.
As a more preferred embodiment, comparing the signal value of the sampling point in the left window with a preset threshold, and determining the value of the impact factor according to the comparison result includes: acquiring a signal value of a specific sampling point from right to left in a left window; and comparing the signal value of the specific sampling point with a preset threshold value, and taking the number of the sampling points corresponding to the overlapping part of the sliding window and the signal window as the value of the influence factor when the specific sampling point of which the first signal value is greater than the preset threshold value is determined.
As a more specific embodiment, assuming that the value of the impact factor is represented by C, and the sampling point whose first signal value from right to left in the left window is greater than the preset threshold is the sampling point at L-X, when the signal value of one of the sampling points corresponding to all the points in the sliding window is greater than the preset threshold, the channel path of the sampling point corresponding to the midpoint of the current sliding window can be used as the reserved path, so for the sampling point, the maximum impact range of the sampling point on the right side is 2L-X, which is the sampling point corresponding to the boundary point on the right side of the sliding window when the midpoint of the sliding window moves to the sampling point, in other words, when the midpoint of the sliding window moves to 2L-X, the sampling point corresponding to the first point in the sliding window is the sampling point at L-X, because the signal value of the sampling point at L-X is greater than the preset threshold, the channel path of the sample point at 2L-X can be taken as the reserved path. Therefore, when the position of the sampling point is denoted by ii, that is, when ii is L-X, C is 2L- (L-ii) L + ii is 2L-X.
At this moment, the value of the influence factor indicates that the sampling point of the rightmost first signal value in the left window, which is greater than the preset threshold value, can influence the position of the rightmost sampling point for determining the retention path, for the left window, the rightmost sampling point is greater, the influence factor is greater, that is, the value of the influence factor determined by the sampling point is greater, when the sampling point meets the condition, the channel path of the left sampling point is all used as the retention path, when the value of the influence factor is determined by using the sampling point in the left window, the signal value of the specific sampling point is obtained from right to left in the left window, only the sampling point of which the first signal value is greater than the preset threshold value needs to be found, the value of the influence factor can be determined, the signal values of all the sampling points in the left window do not need to be compared with the preset threshold value, and the.
When the middle point of the sliding window moves to the middle window, the signal value of a specific sampling point (the sampling point in the signal window corresponding to the middle point of the sliding window) is obtained, and as long as the signal value of the specific sampling point is greater than a preset threshold value, when the sliding window moves in the middle window, the overlapping part of the sliding window and the signal window is the window length of the whole sliding window, so that the value of the influence factor is updated to be the sliding window length of 2L. And when the value of the influence factor is larger than zero, taking the channel path of the first sampling point as a reserved path, taking the first sampling point as the sampling point in the signal window corresponding to the starting point of the sliding window, subtracting one from the value of the influence factor, then moving the sliding window to the right by one sampling point, and continuously determining whether the channel path of the next sampling point is taken as the reserved path.
When the signal value of the specific sampling point is determined to be less than or equal to the preset threshold, determining whether the channel path corresponding to the first sampling point is used as a reserved path according to the value of the impact factor, specifically including: when the influence factor value is larger than zero, taking the channel path corresponding to the first sampling point as a reserved path, and reducing the influence factor value by one; or when the value of the influence factor is determined to be less than or equal to zero, the channel path corresponding to the first sampling point is not taken as a reserved path.
Specifically, when the value of the impact factor is greater than zero, it indicates that at least one sampling point meeting the condition that the signal value is greater than a preset threshold exists in the sampling points corresponding to the current sliding window, and therefore, the channel path of the first sampling point can be used as a reserved path; when the value of the influence factor is less than zero, it indicates that there is no sampling point satisfying that the signal value is greater than the preset threshold value in the sampling points corresponding to the current sliding window, and therefore, the channel path of the first sampling point cannot be used as the reserved path.
When the middle point of the sliding window moves to the right window, a right expansion window containing a preset number of sampling points is added behind the right window, and the signal values of all the sampling points in the right expansion window are set to be zero, wherein the preset number is half of the number of the sampling points corresponding to the sliding window.
During specific implementation, when the reserved path of the sampling point in the right window is determined, the sampling point corresponding to the midpoint of the sliding window is not in the signal window, and the right expansion window is added behind the right window, as shown in fig. 4, the signal value in the right expansion window is set to be 0, and since the signal values of the sampling point in the right expansion window are all 0, the value of the influence factor cannot be updated by the sampling point in the right expansion window, so that the value is completely the same as that of the right expansion window of the sliding window, and whether the channel path corresponding to the sampling point in the right window is taken as the reserved path or not is conveniently determined.
Taking the channel path corresponding to the first sampling point as a reserved path, comprising: taking the channel estimation value of the first sampling point as the channel estimation value of the sampling point after noise suppression, and also assigning the value of h (n) of the sampling point of which the channel path is taken as a reserved path to hremove_noise(n)。
Utilizing sliding window determinations provided from embodiments of the present inventionIt can be seen from the specific process of the method for determining the reserved path in the embodiment of the present invention that, in the process of determining the reserved path by using the sliding window, the first part determines that the value of the impact factor needs L comparison operations at most by using the comparison result of the signal value of the sampling point in the left window and the preset threshold, and the second part determines that the reserved path and the update of the value of the impact factor need 2N comparison operations according to the value of the impact factor, so that the number of comparison operations required in the whole process is 2N + L comparison operations, while the prior art needs 2NL-L comparison operations at most2A secondary comparison operation, where N is the length of the signal window, L is the half-window length of the sliding window, N>L and L are more than or equal to 1, compared with the prior art, the method for determining the reserved diameter by using the sliding window provided by the embodiment of the invention optimizes the process of determining the reserved diameter in the sliding window, the optimized implementation method is completely equivalent to the prior art, no performance loss exists, but the running time of the process is greatly reduced, so that the calculation amount of the module in a product is greatly reduced, the running time of the module is accelerated, and the cost of the product and the complexity of system design can be reduced.
In any application scenario, the method for determining the reserved path by using the sliding window provided by the embodiment of the invention has a reduced amount of calculation compared with the prior art. In different application scenarios, the proportional relationship between N and L is different, and the value of L is also different, and the degree of reduction of the operation amount of the method for determining a reserved path by using a sliding window, which is provided by the embodiment of the present invention, is also different compared with the prior art, taking the channel estimation of the full bandwidth in LTE as an example, N is 1200, and L is 10, at this time, the operation amount theoretical operation amount of the method for determining a reserved path by using a sliding window, which is provided by the embodiment of the present invention, is only 1/10 in the prior art. For a pipeline Processor, such as a Digital Signal Processor (DSP), a multiprocessor computer (PowerPC, PPC), etc., the method for determining a reserved path by using a sliding window according to the embodiment of the present invention has a great improvement in operation speed, and taking channel estimation time domain noise suppression as an example, the method for determining a reserved path by using a sliding window according to the embodiment of the present invention is only 1/3 in the prior art on average in operation time.
An apparatus for determining a reserved path by using a sliding window provided in an embodiment of the present invention, where the sliding window moves in a signal window, as shown in fig. 5, includes: a first processing unit 502, configured to compare a signal value of a sampling point in the left window with a preset threshold when a midpoint of the sliding window moves to the left window of the signal window; a second processing unit 504, connected to the first processing unit 502, is used for determining the value of the impact factor according to the comparison result.
In the device provided by the embodiment of the invention, the value of the influence factor is determined according to the relationship between the signal value of the sampling point in the left window and the preset threshold, so that in the process of determining the reserved diameter, only the relationship between the signal value of the sampling point corresponding to the midpoint of the sliding window and the preset threshold needs to be compared, when the signal value of the sampling point in the signal window corresponding to the midpoint of the sliding window is greater than the preset threshold, the value of the influence factor is updated, whether the channel path corresponding to the sampling point corresponding to the starting point of the current sliding window is taken as the reserved diameter or not can be judged according to the value of the influence factor, compared with the prior art that whether the channel path corresponding to each sampling point in the signal window is taken as the reserved diameter or not, the signal values of the sampling points at the overlapping parts of the sliding window and the signal window need to be compared with the preset threshold one by one until the first signal value greater than the preset threshold, the comparison times and the calculation amount in the process of determining the reserved path are reduced, the processing time delay of the system and the occupied system processing resources are reduced, so that the product cost is reduced, and the complexity of the system time sequence design and the time delay of a service plane are reduced.
In a possible implementation manner, in an apparatus provided in an embodiment of the present invention, the apparatus further includes: an obtaining unit 506, connected to the second processing unit 504, configured to obtain a signal value of a specific sampling point when the midpoint of the sliding window moves to a middle window of the signal window, where the specific sampling point is a sampling point in the signal window corresponding to the midpoint of the sliding window; the second processing unit 504 is further configured to, when it is determined that the signal value of the specific sampling point is greater than the preset threshold, update the value of the impact factor to be the number of sampling points corresponding to the sliding window, take a channel path corresponding to a first sampling point as a reserved path, and subtract the value of the impact factor by one, where the first sampling point is a sampling point in a signal window corresponding to the starting point of the current sliding window.
In a possible implementation manner, in the apparatus provided by the embodiment of the present invention, the second processing unit 504 is further configured to, when it is determined that the signal value of the specific sampling point is less than or equal to a preset threshold, determine whether the parameter corresponding to the first sampling point is a target parameter according to the value of the impact factor, specifically, the determining includes: when the influence factor value is determined to be larger than zero, taking the parameter corresponding to the first sampling point as a target parameter, and subtracting one from the influence factor value; or when the value of the influence factor is determined to be less than or equal to zero, the parameter corresponding to the first sampling point is not taken as the target parameter.
In a possible implementation manner, in the apparatus provided by the embodiment of the present invention, the first processing unit 502 compares the signal values of the sampling points in the left window with a preset threshold, and the second processing unit 504 determines the value of the impact factor according to the comparison result, including: the first processing unit 502 obtains the signal value of the specific sampling point from right to left in the left window; the first processing unit 502 compares the signal value of the specific sampling point with a preset threshold, and when it is determined that the signal value of the specific sampling point is greater than the preset threshold, the second processing unit 504 takes the number of sampling points corresponding to the overlapping portion of the sliding window and the signal window as the value of the impact factor.
In the device provided by the embodiment of the invention, the closer the sampling point in the left side window is to the middle window, the larger the value of the influence factor determined by the sampling point is, so that when the value of the influence factor is determined by using the sampling point in the left side window, the signal value of a specific sampling point is obtained from right to left in the left side window, the value of the influence factor can be determined only by finding out the sampling point of which the first signal value is greater than the preset threshold, the signal values of all the sampling points in the left side window do not need to be compared with the preset threshold, and the comparison times and the calculation amount in the process of determining the reserved diameter are further reduced.
In a possible implementation manner, in the apparatus provided in the embodiment of the present invention, when determining that the signal value of the specific sampling point is less than or equal to a preset threshold, the determining, according to the value of the impact factor, whether a channel path corresponding to the first sampling point is a reserved path further includes: when the influence factor value is determined to be larger than zero, taking a channel path corresponding to the first sampling point as a reserved path, and reducing the influence factor value by one; or when the value of the influence factor is determined to be less than or equal to zero, the channel path corresponding to the first sampling point is not taken as a reserved path.
In a possible implementation manner, in the apparatus provided in this embodiment of the present invention, the second processing unit 504 is further configured to, when the middle point of the sliding window moves to a right window of the signal window, add a right expansion window including a preset number of sampling points after the right window, and set signal values of all sampling points in the right expansion window to zero, where the preset number is half of the number of sampling points corresponding to the sliding window.
In a possible implementation manner, in the apparatus provided in the embodiment of the present invention, the taking, by the second processing unit 504, a channel path corresponding to the first sampling point as a reserved path includes: the second processing unit 504 uses the channel estimation value of the first sampling point as the channel estimation value of the sampling point after noise suppression.
In the apparatus for determining a reserved path by using a sliding window according to the embodiment of the present invention, the first processing unit 502 may employ a processor such as a CPU, the second processing unit 504 may employ a processor such as a CPU, of course, the first processing unit 502 and the second processing unit 504 may employ the same processor such as a CPU, and the obtaining unit 506 may employ a signal detector or the like.
Another embodiment of the present invention provides an apparatus for determining a retention path using a sliding window, as shown in fig. 6, including: processor 600, transceiver 610 and memory 620, specifically:
the processor 600, which is used to read the program in the memory 620, executes the following processes:
when the sliding window moves to the left window of the signal window, comparing the signal values of the sampling points in the left window with a preset threshold value, and determining the value of an influence factor according to the comparison result, wherein the value of the influence factor is the number of reserved paths determined by the sampling point of which the first signal value from right to left in the left window is greater than the preset threshold value;
acquiring a signal value of a specific sampling point through the transceiver 610, wherein the specific sampling point is a sampling point in a signal window corresponding to the middle point of the sliding window;
when the signal value of the specific sampling point is determined to be larger than a preset threshold value, updating the value of the influence factor to be the number of the sampling points corresponding to the sliding window, taking a channel path corresponding to a first sampling point as a reserved path, and reducing the value of the influence factor by one, wherein the first sampling point is the sampling point in the signal window corresponding to the starting point of the sliding window;
when the signal value of the specific sampling point is determined to be less than or equal to the preset threshold, determining whether the channel path corresponding to the first sampling point is used as a reserved path according to the value of the impact factor, specifically including: when the influence factor value is determined to be larger than zero, taking a channel path corresponding to the first sampling point as a reserved path, and reducing the influence factor value by one; or when the value of the influence factor is determined to be less than or equal to zero, the channel path corresponding to the first sampling point is not taken as a reserved path;
and when the sliding window moves to the right window of the signal window, adding a right expansion window containing a preset number of sampling points behind the right window, and setting the signal values of all the sampling points in the right expansion window to be zero, wherein the preset number is half of the number of the sampling points corresponding to the sliding window.
A transceiver 610 for receiving and transmitting data under the control of the processor 600.
Where in fig. 6, the bus architecture may include any number of interconnected buses and bridges, with various circuits being linked together, particularly one or more processors represented by processor 600 and memory represented by memory 620. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 610 may be a number of elements including a transmitter and a transceiver providing a means for communicating with various other apparatus over a transmission medium. The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 may store data used by the processor 600 in performing operations.
In summary, the method and apparatus for determining a target parameter by using a sliding window according to the embodiments of the present invention determine a value of an impact factor according to a relationship between a sampling point having a first signal value from right to left in a left window and a preset threshold, so that in a process of determining the target parameter, only a relationship between a signal value of a sampling point corresponding to a midpoint of the sliding window and the preset threshold needs to be compared, and when a signal value of a sampling point in the signal window corresponding to the midpoint of the sliding window is greater than the preset threshold, the value of the impact factor is updated, and it is determined whether a parameter corresponding to a sampling point corresponding to a starting point of the current sliding window is a target parameter according to the value of the impact factor, thereby reducing comparison times and computation amount in a process of determining the target parameter (for example, a reserved path), reducing a processing delay of a system and occupied system processing resources, and thus reducing product cost, the complexity of system time sequence design and the time delay of a service plane are reduced.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.