Wireless communication method, nonlinear function fitting method, terminal and device

Through the non-uniform piecewise linear fitting method, the problems of high computational complexity and large storage resource occupation of nonlinear function fitting in wireless communication are solved, and the signal processing efficiency and communication rate are improved.

CN114567396BActive Publication Date: 2024-09-06伟光有限公司(CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210187928.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-06
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

The nonlinear function fitting method in existing wireless communication technology has high computational complexity and takes up a lot of storage resources, resulting in low signal processing efficiency and high hardware requirements, and is prone to slow signal transmission and reception.

Method used

The target nonlinear function is determined based on wireless signal processing instructions, and the linear fitting function is obtained through non-uniform piecewise linear fitting, which is used for baseband chip signal processing to reduce data processing volume and storage resource requirements.

Benefits of technology

It reduces the computational complexity and storage requirements of the baseband chip, improves the efficiency of wireless communication and signal processing accuracy, reduces fitting errors, and increases the communication rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114567396B
    Figure CN114567396B
Patent Text Reader

Abstract

The embodiments of the present application disclose a wireless communication method, a nonlinear function fitting method, a terminal and a device, which belong to the field of wireless communication. The method includes: determining a target nonlinear function based on a wireless signal processing instruction; obtaining a target linear fitting function corresponding to the target nonlinear function; and performing wireless signal processing based on the target linear fitting function. A first linear fitting function is generated based on the function value of the nonlinear function at the endpoint of the target interval; a maximum fitting error is determined based on the nonlinear function and the first linear fitting function; in response to the maximum fitting error not satisfying the function fitting condition, the target interval is segmented based on the target fitting error to obtain sub-intervals; based on the function value of the sub-interval endpoint, a second linear fitting function corresponding to each sub-interval is generated. Under the premise of ensuring the fitting accuracy, the amount of function parameters that the terminal needs to store is reduced, and the efficiency of wireless communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wireless communication technology, and in particular to a wireless communication method, a nonlinear function fitting method, a terminal, and a device. Background Art

[0002] Nonlinear functions are widely used in various fields, especially in the field of wireless communication. Taking the physical downlink channel of a wireless communication system as an example, its multiple functional modules involve the calculation of nonlinear functions. For example, the transmitter RF module needs to use exponential functions and logarithmic functions when calculating power, and the receiver channel estimation and equalization module may need to use square root functions and reciprocal functions when calculating channel filter coefficients.

[0003] In the related technology, the fitting methods of nonlinear functions mainly include series expansion method, table lookup method and uniform piecewise fitting method. Among them, the series expansion method needs to use the first few terms of Taylor expansion for approximate calculation, so it requires more multipliers and has high computational complexity; the table lookup method is to store the function values ​​corresponding to the independent variables and get the results by looking up the table during calculation; the uniform piecewise fitting method is to store the coefficients of the fitting function corresponding to each sub-interval. These two methods require a lot of storage resources when the accuracy requirements are high, and the computational efficiency is low.

[0004] Therefore, the above method results in low signal processing efficiency during wireless communication, high requirements on terminal hardware, and prone to slow signal transmission and reception. Summary of the invention

[0005] The embodiment of the present application provides a wireless communication method, a nonlinear function fitting method, a terminal and a device. The technical solution is as follows:

[0006] On the one hand, an embodiment of the present application provides a wireless communication method, which is applied to a baseband chip of a terminal, and the method includes:

[0007] Determining a target nonlinear function based on the wireless signal processing instruction, wherein the target nonlinear function is a function used to perform signal processing on a transmitted or received wireless signal;

[0008] Acquire a target linear fitting function corresponding to the target nonlinear function, wherein the linear fitting function is obtained by performing non-uniform piecewise linear fitting on a concave function part or a convex function part of the nonlinear function based on a target fitting error;

[0009] Wireless signal processing is performed based on the target linear fitting function.

[0010] On the other hand, an embodiment of the present application provides a nonlinear function fitting method, which is applied to a computer device and includes:

[0011] generating a first linear fitting function based on the function value of the nonlinear function at the endpoints of the target interval, wherein the target interval is a convex interval or a concave interval, and the slope of the first linear fitting function is consistent with the slope of the line connecting the endpoints of the target interval;

[0012] Based on the nonlinear function and the first linear fitting function, determining a maximum fitting error, wherein the maximum fitting error refers to a maximum value of a difference between the nonlinear function and the first linear fitting function;

[0013] In response to the maximum fitting error not satisfying a function fitting condition, segmenting the target interval based on a target fitting error to obtain subintervals, the function fitting condition being that the fitting error is less than or equal to the target fitting error;

[0014] Based on the function values ​​of the sub-interval endpoints, a second linear fitting function corresponding to each of the sub-intervals is generated, and the target linear fitting function of the nonlinear function within the target interval is composed of the second linear fitting functions corresponding to each of the sub-intervals, and the target linear fitting function is used for the baseband chip of the terminal to perform wireless signal processing.

[0015] On the other hand, an embodiment of the present application provides a wireless communication device, the device comprising:

[0016] A first determination module, configured to determine a target nonlinear function based on the wireless signal processing instruction, wherein the target nonlinear function is a function used to perform signal processing on a transmitted or received wireless signal;

[0017] A first acquisition module is used to acquire a target linear fitting function corresponding to the target nonlinear function, wherein the linear fitting function is obtained by performing non-uniform piecewise linear fitting on a concave function part or a convex function part of the nonlinear function based on a target fitting error;

[0018] A signal processing module is used to perform wireless signal processing based on the target linear fitting function.

[0019] On the other hand, an embodiment of the present application provides a nonlinear function fitting device, the device comprising:

[0020] The target interval is a convex interval or a concave interval, and the slope of the first linear fitting function is consistent with the slope of the line connecting the endpoints of the target interval;

[0021] A second determination module, configured to determine a maximum fitting error based on the nonlinear function and the first linear fitting function, wherein the maximum fitting error refers to a maximum value of a difference between the nonlinear function and the first linear fitting function;

[0022] an interval segmentation module, configured to segment the target interval based on a target fitting error to obtain sub-intervals in response to the maximum fitting error not satisfying a function fitting condition, wherein the function fitting condition is that the fitting error is less than or equal to the target fitting error;

[0023] The second generation module is used to generate a second linear fitting function corresponding to each of the sub-intervals based on the function value of the sub-interval endpoints, the target linear fitting function of the nonlinear function within the target interval is composed of the second linear fitting functions corresponding to each of the sub-intervals, and the target linear fitting function is used for the baseband chip of the terminal to perform wireless signal processing.

[0024] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the wireless communication method as described in the above aspects.

[0025] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory; the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the nonlinear function fitting method as described in the above aspects.

[0026] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program is stored. The computer program is loaded and executed by a processor to implement the wireless communication method or the nonlinear function fitting method as described in the above aspects.

[0027] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the wireless communication method provided in various optional implementations of the above aspects; the processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the nonlinear function fitting method provided in various optional implementations of the above aspects.

[0028] The technical solution provided by the embodiment of the present application includes at least the following beneficial effects:

[0029] In an embodiment of the present application, a linear fitting function corresponding to a nonlinear function for processing a wireless signal is stored in the terminal. When performing signal processing, the baseband chip can analyze and process the wireless signal based on the linear fitting function to reduce the data processing amount and calculation complexity of the chip. On the other hand, the linear fitting function is obtained by a computer device based on the properties of concave functions and convex functions, by performing non-uniform piecewise linear fitting on the concave function part or the convex function part in the nonlinear function. On the premise of ensuring that the fitting error between the linear fitting function and the nonlinear function is not higher than the target fitting error, the function can be divided into the minimum number of intervals, thereby reducing the amount of function parameters that the terminal needs to store. Under the same fitting accuracy, the storage resources required are less than that of the uniform piecewise fitting method, thereby improving the efficiency of wireless communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A flowchart of a wireless communication method provided by an exemplary embodiment of the present application is shown;

[0031] Figure 2 is a structural block diagram of a baseband chip shown in an exemplary embodiment of the present application;

[0032] Figure 3 A flowchart of a wireless communication method provided by another exemplary embodiment of the present application is shown;

[0033] Figure 4 A flowchart of a nonlinear function fitting method provided by an exemplary embodiment of the present application is shown;

[0034] Figure 5 A flow chart showing a nonlinear function fitting method provided by another exemplary embodiment of the present application is shown;

[0035] Figure 6 is a schematic diagram of a nonlinear function and its first linear fitting function shown in an exemplary embodiment of the present application;

[0036] Figure 7 A flow chart showing a nonlinear function fitting method provided by another exemplary embodiment of the present application is shown;

[0037] Figure 8 A flow chart showing a nonlinear function fitting method provided by another exemplary embodiment of the present application is shown;

[0038] Fig. 9 A structural block diagram of a wireless communication device provided by an exemplary embodiment of the present application is shown;

[0039] Fig.10 A structural block diagram of a nonlinear function fitting device provided by an exemplary embodiment of the present application is shown;

[0040] Fig.11 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown;

[0041] Fig.12 A structural block diagram of a computer device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0043] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0044] A linear function is a first-order polynomial function, whose graph is a straight line. A nonlinear function is a function whose graph is not a straight line, including basic elementary functions such as power functions, exponential functions, logarithmic functions, trigonometric functions, inverse trigonometric functions, and higher-order polynomial functions, as well as their composite functions.

[0045] Nonlinear functions are widely used in various fields, especially in the field of wireless communications. Multiple functional modules of baseband chips involve the calculation of nonlinear functions.

[0046] For nonlinear functions, especially transcendental functions, it is often impossible or unnecessary to find the exact value, and only an approximate value with sufficient accuracy needs to be calculated. Traditional methods usually use series expansion method, table lookup method and piecewise fitting method to calculate.

[0047] The series expansion method is to perform Taylor series expansion on the function and use the first few terms of the expansion to make approximate calculations. The calculation accuracy is related to the number of terms in the expansion. The series expansion method requires more multipliers, has high computational complexity, and consumes a lot of resources.

[0048] The table lookup method is to save the function value corresponding to each value of the independent variable into a lookup table, and directly look up the table according to the value of the independent variable during calculation to get the result. The table lookup method requires a lot of storage resources, and its calculation accuracy is related to the accuracy of the input data and the accuracy of the stored function value. Improving the calculation accuracy will lead to a significant increase in storage resources.

[0049] Compared with the series expansion method and the table lookup method, the piecewise fitting method is a simpler and more effective method when the accuracy requirement is not too high. The piecewise fitting method divides the value range of the independent variable into multiple sub-intervals, each sub-interval is a segment, and a simple function is used to fit each segment to approximate the original function so that the calculation error meets certain conditions. The fitting function is generally a polynomial function, among which the simplest and most commonly used is a linear function. The piecewise fitting method does not need to store the function value, but only needs to store the coefficients of the fitting function, and the required storage resources are much less than the table lookup method. The division of the value range of the independent variable usually adopts the uniform segmentation method, but under the condition of meeting a certain calculation accuracy, the uniform segmentation method may need to divide the number of segments much more than the non-uniform segmentation method, so more storage resources are required to save the fitting function coefficients of each segment. In view of the shortcomings of uniform segmentation, many non-uniform segmentation fitting algorithms have been proposed. However, the current non-uniform segmentation fitting algorithms have strong limitations and can only fit a certain type or a certain class of non-linear functions, and cannot be widely used in various non-linear functions.

[0050] The embodiments of the present application provide a wireless communication method and a nonlinear function fitting method. The wireless communication method provided by each embodiment of the present application is applied to a terminal provided with a baseband chip, which can be a smart phone, a tablet computer, an e-book reader, a personal portable computer, a desktop computer, etc. The nonlinear function fitting method provided by each embodiment of the present application is applied to a computer device, which can be a smart phone, a tablet computer, a personal portable computer, a desktop computer, a server or a server cluster, etc.

[0051] Please refer to Figure 1 , which shows a flow chart of a wireless communication method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in a baseband chip of a terminal as an example. The method comprises the following steps:

[0052] Step 101: determine a target nonlinear function based on a wireless signal processing instruction, where the target nonlinear function is a function used to perform signal processing on a transmitted or received wireless signal.

[0053] During the signal transmission or signal reception process, when a wireless signal processing instruction is received, the baseband chip in the terminal first determines the signal processing method, and some signal processing stages require the use of nonlinear functions. For example, the baseband chip needs to use counting functions and logarithmic functions when calculating the signal transmission power.

[0054] In a possible implementation, a baseband chip of the terminal is provided with multiple functional modules, and different functional modules are responsible for signal processing tasks at different stages. Figure 2As shown, the transmitter baseband chip includes a coding module, a modulation module, a resource mapping module, a reference signal generation module, etc., and the receiver baseband chip includes a decoding module, a demodulation module, a channel estimation and equalization module, a reference signal generation module, etc. When a functional module in the baseband chip receives a signal processing instruction, it determines the target nonlinear function required for the signal processing task at the current stage.

[0055] Step 102: Obtain a target linear fitting function corresponding to the target nonlinear function.

[0056] The linear fitting function is obtained by performing non-uniform piecewise linear fitting on the concave function part or the convex function part of the nonlinear function based on the target fitting error.

[0057] Since nonlinear functions, especially transcendental functions, have relatively complex function solving and analysis processes and require large amounts of calculation, if signal processing is performed directly based on nonlinear functions, the computing power of the baseband chip is relatively high, and nonlinear functions often cannot and do not need to calculate precise function values, but only need to calculate estimated values ​​with sufficient accuracy. Therefore, in a possible implementation, the terminal pre-stores linear fitting functions corresponding to each nonlinear function required for signal processing, for example, the terminal's memory stores linear fitting functions corresponding to each nonlinear function, and the baseband chip determines its corresponding target linear fitting function based on the target nonlinear function.

[0058] Optionally, the linear fitting function stored in the terminal is obtained by the terminal performing linear fitting on the nonlinear function in advance, or is obtained by other external devices such as computer devices performing linear fitting on the nonlinear function. The terminal stores the complete expression of each linear fitting function, or the terminal only stores the necessary parameters, for example, if the linear fitting function is a linear function, the terminal only stores the slope and intercept of each linear fitting function.

[0059] It is worth mentioning that, taking a computer device as an example, the linear fitting function used in the embodiment of the present application is obtained by performing non-uniform piecewise linear fitting on the concave function part or the convex function part of the non-linear function based on the target fitting error. By utilizing the characteristics of the concave function and the convex function, and taking the preset target fitting error as a reference, the convex interval or the concave interval of the non-linear function is non-uniformly divided, and the non-linear function can be fitted with the least number of segments and meet the fitting accuracy, thereby reducing the storage resources required by the terminal.

[0060] Step 103: Perform wireless signal processing based on the target linear fitting function.

[0061] After the baseband chip obtains the target linear fitting function, it uses the target linear fitting function instead of the target nonlinear function for signal processing. For example, the target nonlinear function is a power function, and the baseband chip uses the obtained linear function for signal processing. It can be seen that the amount of calculation of the baseband chip in the wireless communication process is greatly reduced. And because the target linear fitting function is obtained based on the target fitting error, the calculation accuracy can be ensured, which greatly reduces the amount of calculation of the baseband chip and the storage capacity of the terminal while ensuring the signal quality, and improves the signal processing efficiency and communication rate.

[0062] To summarize, in an embodiment of the present application, a linear fitting function corresponding to a nonlinear function for processing wireless signals is stored in the terminal. When performing signal processing, the baseband chip can analyze and process the wireless signal based on the linear fitting function to reduce the data processing amount and calculation complexity of the chip; on the other hand, the linear fitting function is obtained by a computer device based on the properties of concave functions and convex functions, by performing non-uniform piecewise linear fitting on the concave function part or the convex function part in the nonlinear function. On the premise of ensuring that the fitting error between the linear fitting function and the nonlinear function is not higher than the target fitting error, the function can be divided into the minimum number of intervals, thereby reducing the amount of function parameters that the terminal needs to store. Under the same fitting accuracy, the storage resources required are less than that of the uniform piecewise fitting method, thereby improving the efficiency of wireless communication.

[0063] Since it is necessary to ensure that the actual maximum fitting error does not exceed the target fitting error, each convex interval or concave interval of the nonlinear function may not be the smallest function segmentation unit (the larger the interval span, the larger the actual fitting error). In a possible implementation, the concave interval or convex interval of the nonlinear function includes at least one subinterval, and the terminal stores the parameters of the linear fitting function corresponding to the nonlinear function in each subinterval.

[0064] Please refer to Figure 3 , which shows a flow chart of a wireless communication method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in a baseband chip of a terminal as an example. The method comprises the following steps:

[0065] Step 301: determine a target nonlinear function and a target independent variable value based on a wireless signal processing instruction.

[0066] Nonlinear functions are usually fitted into multi-segment linear fitting functions. During the signal processing process, the baseband chip actually performs calculations on one or several independent variable values, or performs function calculations on one or several specific intervals. Therefore, the baseband chip does not need to obtain all target linear fitting functions corresponding to the target nonlinear function, but only needs to obtain the required one or several segments. In one possible implementation, the baseband chip determines the target nonlinear function and the target independent variable value based on the wireless signal processing instruction, thereby determining the target linear fitting function based on the target independent variable value.

[0067] Step 302, determining a target sub-interval based on the value of the target independent variable.

[0068] The baseband chip determines a sub-interval including the target independent variable value, ie, a target sub-interval, based on the target independent variable value.

[0069] Schematically, for the target nonlinear function on the interval [0,10], it is fitted to the target linear fitting function a on the interval [0,3] and the target linear fitting function b on the interval [3,10]. The baseband chip determines that the target independent variable value is 5, and then determines the target subinterval to be [3,10].

[0070] Step 303: Obtain a target linear fitting function corresponding to the target nonlinear function in the target sub-interval.

[0071] In a possible implementation, the terminal stores parameters of a target prior fitting function corresponding to the target nonlinear function in each subinterval, and the baseband chip determines the parameters of the target linear fitting function based on the target subinterval, thereby obtaining the target linear fitting function.

[0072] Step 304: Perform wireless signal processing based on the target linear fitting function.

[0073] The specific implementation of step 304 can refer to the above step 103, and the embodiment of the present application will not be repeated here.

[0074] In an embodiment of the present application, the terminal stores the parameters of the linear fitting function corresponding to the nonlinear function in each sub-interval. The baseband chip only needs to obtain the target linear fitting function corresponding to the target nonlinear function in the target sub-interval based on the target independent variable value, without having to obtain all the target linear fitting functions, thereby improving signal processing efficiency.

[0075] In a possible implementation, the baseband chip is provided with at least one functional module of a radio frequency module, a channel estimation and equalization module, and a decoding module, and different functional modules are used to perform signal processing based on different types of nonlinear functions. Among them, the radio frequency module is used to calculate the signal transmission power based on the exponential function and the logarithmic function; the channel estimation and equalization module is used to calculate the channel filter coefficient based on the square root function and the reciprocal function, and to calculate the channel filter coefficient based on the square root function and the reciprocal function, and to estimate the frequency deviation and phase deviation based on the trigonometric function and the inverse trigonometric function; the decoding module is used to run the confidence propagation algorithm based on the hyperbolic tangent function and the inverse function of the hyperbolic tangent function, and to run the neural network algorithm based on the activation function, etc. Of course, the specific process of wireless signal processing is more complicated, and may also involve the use of other nonlinear functions, which can all be used to process wireless signals in the above manner, and the embodiments of this application will not be repeated here.

[0076] The above embodiments illustrate the process of using the target linear fitting function instead of the target nonlinear function for signal processing, that is, the application process of linear fitting of nonlinear functions in the field of communications. The following embodiments are used to explain the process of a computer device using the characteristics of concave functions and convex functions to perform non-uniform piecewise linear fitting on a nonlinear function to obtain the above linear fitting function.

[0077] Please refer to Figure 4 , which shows a flow chart of a nonlinear function fitting method. This embodiment is described by taking the method used in a computer device as an example. The method comprises the following steps:

[0078] Step 401: Generate a first linear fitting function based on the function value of the nonlinear function at the endpoints of the target interval.

[0079] The target interval is a convex interval or a concave interval, and the slope of the first linear fitting function is consistent with the slope of the line connecting the endpoints of the target interval.

[0080] Suppose function f(x) is continuous on the interval [a,b] and has a second-order derivative f″(x) in (a,b). If for any x∈(a,b), f″(x)<0, then function f(x) is a strictly convex function on the interval [a,b]; if for any x∈(a,b), f″(x)>0, then function f(x) is a strictly concave function on the interval [a,b]. For the sake of brevity, unless there is any ambiguity, the convex functions (or concave functions) mentioned below refer to strictly convex functions (or strictly concave functions).

[0081] Function f(x) is a convex function (or concave function) on the interval [a,b]. It is also said that function f(x) is convex (or concave) in the interval [a,b]. The interval [a,b] is called the convex interval (or concave interval) of function f(x). Commonly used nonlinear functions all have convex intervals (or concave intervals). For example, the interval [0,0.5] is a convex interval of the sine function sin(πx), and the interval [0,1] is a convex interval of the exponential function 2. x A concave interval of .

[0082] Assuming that the nonlinear function f(x) is convex (or concave) in the interval [a, b], under the criterion of minimizing the maximum absolute error, the linear fitting function of f(x) in the interval [a, b] is set to g(x) = kx + c. It is easy to know that its slope should be equal to the slope of the line connecting the two end points of the interval. That is, if the fitting error between the linear fitting function g(x) and the nonlinear function is to be minimized, then the slope of g(x) is equal to the slope of the line connecting the two end points of the interval.

[0083] In a possible implementation, the computer device performs linear fitting on the function portion of the nonlinear function within the target interval, and first generates a first linear fitting function based on the function value of the nonlinear function at the endpoint of the target interval.

[0084] It is worth mentioning that the above target range can be obtained by developers by dividing the nonlinear function in advance based on actual application requirements.

[0085] Step 402: determine a maximum fitting error based on the nonlinear function and the first linear fitting function.

[0086] The maximum fitting error refers to the maximum value of the difference between the nonlinear function and the first linear fitting function. That is, within the target interval, the function difference between the nonlinear function and the first linear fitting function corresponding to any independent variable value does not exceed the maximum fitting error. Therefore, the computer device determines whether the first linear fitting function meets the fitting accuracy required by the function fitting condition by calculating the maximum fitting error.

[0087] Step 403 , in response to the maximum fitting error not satisfying the function fitting condition, segmenting the target interval based on the target fitting error to obtain sub-intervals.

[0088] The function fitting condition is that the fitting error is less than or equal to the target fitting error.

[0089] In a possible implementation, the computer device determines whether the target interval needs to be further divided to improve the fitting accuracy by comparing the maximum fitting error and the target fitting error corresponding to the first linear fitting function.

[0090] When the target fitting error is set to ε setWhen the actual maximum fitting error ε of the nonlinear function f(x) calculated according to the above steps on the interval [a,b] is act ≤ε set , then there is no need to segment the interval [a,b], or the number of segments N at this time seg =1; if the actual maximum fitting error ε act >ε set , then the interval [a,b] needs to be further segmented so that the actual maximum fitting error of each segment does not exceed ε when the number of segments (number of sub-intervals) is the minimum. set .

[0091] If the maximum fitting error does not meet the function fitting condition, that is, ε act >ε set , the computer device segments the target interval based on the target fitting error to obtain at least two sub-intervals. Specifically, the computer device first segments the target interval once to obtain two sub-intervals, and then calculates the linear fitting function corresponding to each sub-interval respectively, and again determines whether the function fitting condition is met by calculating the maximum fitting error of each sub-interval. If there is a sub-interval in which the linear fitting function does not meet the condition, the sub-interval is further divided, and so on, until the actual maximum fitting error in the entire target interval is less than or equal to the target fitting error.

[0092] Step 404: Generate a second linear fitting function corresponding to each sub-interval based on the function value of the sub-interval endpoints.

[0093] The target linear fitting function of the nonlinear function in the target interval is composed of the second linear fitting functions corresponding to each sub-interval, and the target linear fitting function is used for the baseband chip of the terminal to perform wireless signal processing.

[0094] After the computer equipment analyzes and obtains the interval division method that meets the target fitting error, the second linear fitting function corresponding to the nonlinear function in each sub-interval is calculated based on the interval endpoints and the function expression of the nonlinear function in each sub-interval. The target linear fitting function of the nonlinear function is composed of the second linear fitting functions in the target interval.

[0095] In the embodiment of the present application, the linear fitting function is obtained by performing non-uniform piecewise linear fitting on the concave function part or the convex function part in the nonlinear function based on the properties of the concave function and the convex function by the computer device. Under the premise of ensuring that the fitting error between the linear fitting function and the nonlinear function is not higher than the target fitting error, the function can be divided with the least number of intervals, reducing the amount of function parameters that the terminal needs to store. Compared with the uniform piecewise fitting method, the storage resources required under the same fitting accuracy are less, thereby improving the efficiency of wireless communication. In addition, the nonlinear function is usually composed of convex functions and concave functions, so the method provided in the embodiment of the present application has strong universality and is not limited by the function type.

[0096] In one possible implementation, if the first linear fitting function does not meet the function fitting conditions, the computer device needs to further divide the sub-intervals based on the target interval to improve the fitting accuracy; if the first linear fitting function meets the function fitting conditions, no further division is required, and the first linear fitting function is the target linear fitting function of the nonlinear function.

[0097] Please refer to Figure 5 , which shows a flow chart of a nonlinear function fitting method. This embodiment is described by taking the method used in a computer device as an example. The method comprises the following steps:

[0098] Step 501: Generate a first linear function corresponding to the endpoint connection line based on the function values ​​of the nonlinear function at two endpoints of the target interval.

[0099] In a possible implementation, the computer device calculates the slope k and intercept c1 of the straight line passing through the two endpoints f(a) and f(b) of the nonlinear function f(x) in the target interval [a, b] in a plane coordinate system, and the calculation formulas are:

[0100]

[0101]

[0102] Therefore, the first linear function g1(x)=kx+c1 corresponding to the endpoint connection line can be obtained.

[0103] Step 502: Generate a second linear function corresponding to the tangent line based on the tangent point of the tangent line on the nonlinear function curve, wherein the tangent line is parallel to the line connecting the end points.

[0104] The computer device further generates a second linear function corresponding to a straight line (i.e., tangent line) with a slope of k and tangent to the curve of the nonlinear function. Since the slope k of the second linear function is known and the abscissa of the tangent point (the abscissa of the tangent point x * Satisfies the equation f′(x *)=k), then the intercept of the tangent line can be solved by the following formula:

[0105] c2=f(x * )-kx *

[0106] Therefore, the second linear function g2(x)=kx+c2 corresponding to the tangent line can be obtained.

[0107] Step 503: Generate a first linear fitting function based on the first linear function and the second linear function.

[0108] The slope of the first linear fitting function is consistent with the slope of the first linear function, the intercept of the first linear fitting function is the average of the first intercept and the second intercept, the first intercept is the intercept of the first linear function, and the second intercept is the intercept of the second linear function.

[0109] Based on the curve characteristics of concave functions and convex functions, it can be seen that in the target interval [a, b], when the independent variable is taken as the horizontal coordinate of the tangent point and the two end points, the linear fitting error of the function is the largest.

[0110] Since the maximum fitting errors corresponding to the first linear function and the second linear function are equal, both are the absolute value of the difference between the two intercepts, that is, |c2-c1|, in order to reduce the fitting error as much as possible, the function corresponding to the straight line between the two is determined as the first linear fitting function, and the intercept of the first linear fitting function is the average of the intercepts of the first linear function and the second linear function, that is,

[0111] Step 504, obtaining the horizontal coordinate of the tangent point corresponding to the tangent point.

[0112] Step 505 : determining a maximum fitting error based on a first function value corresponding to the horizontal coordinate of the tangent point in the nonlinear function and a second function value corresponding to the horizontal coordinate of the tangent point in the first linear fitting function.

[0113] The maximum fitting error is the absolute value of the difference between the first function value and the second function value. Based on the curve characteristics of concave and convex functions, it can be seen that in the target interval [a, b], when the independent variable is the horizontal coordinate of the tangent point and the two end points, the linear fitting error of the function is the largest. Therefore, the computer device can calculate the maximum fitting error ε corresponding to the first linear fitting function based on the horizontal coordinate of the tangent point:

[0114]

[0115] Suitably, take the linear fitting of the sine function sin(πx) in its convex interval [0,0.5] as an example, the schematic diagram is as follows Figure 6 shown.

[0116] Step 506: In response to the maximum fitting error satisfying the function fitting condition, the first linear fitting function is determined as the target linear fitting function.

[0117] In a possible implementation manner, if the maximum fitting error corresponding to the first linear fitting function satisfies the function fitting condition, that is, ε≤ε set , the first linear fitting function can be directly determined as the target linear fitting function without further segmentation.

[0118] Step 507 , in response to the maximum fitting error not satisfying the function fitting condition, segmenting the target interval based on the target fitting error to obtain sub-intervals.

[0119] Step 508: Generate a second linear fitting function corresponding to each sub-interval based on the function value of the sub-interval endpoints.

[0120] The specific implementation of steps 507 to 508 can refer to the above steps 403 to 404, and the embodiments of the present application will not be repeated here.

[0121] In an embodiment of the present application, the computer device determines the interval endpoint connection line and the tangent line with the same slope for linear fitting based on the characteristics of the concave function or the convex function, and selects the average of the two intercepts as the intercept of the first linear fitting function to minimize the fitting error of the first linear fitting function. When the first linear fitting function does not meet the function fitting conditions, the target interval is divided based on the target fitting error, and the minimum number of segments is determined, so that the linear fitting parameters that need to be stored are also minimized, which can save storage resources.

[0122] Please refer to Figure 7 , which shows a flow chart of a nonlinear function fitting method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a computer device as an example. The method comprises the following steps:

[0123] Step 701: Generate a first linear fitting function based on the function value of the nonlinear function at the endpoints of the target interval.

[0124] Step 702: determine a maximum fitting error based on the nonlinear function and the first linear fitting function.

[0125] The specific implementation of step 701 to step 702 can refer to the above-mentioned step 401 to step 402, and the embodiment of the present application will not be repeated here.

[0126] Step 703 , in response to the maximum fitting error not satisfying the function fitting condition, taking the second endpoint of the target interval as the second endpoint of the reference interval, and determining the first endpoint of the reference interval based on the target fitting error.

[0127] In an embodiment of the present application, the first endpoint is a left endpoint and the second endpoint is a right endpoint, or the first endpoint is a right endpoint and the second endpoint is a left endpoint.

[0128] In a possible implementation, the computer device first defines a reference interval that meets the function fitting condition at the left or right end of the target interval, and in the subsequent interval division process, after the interval endpoints of each sub-interval are obtained one by one from the other end of the target interval, it is determined whether to end the interval division according to the relationship between the sub-interval obtained by the current last analysis and the reference interval. That is, the reference interval is used to determine whether the interval division has converged.

[0129] Specifically, suppose [x s ,x e ] is a subinterval of the convex (or concave) interval [a,b] of the nonlinear function f(x), that is, a≤x s <x e ≤b, and the nonlinear function f(x) is in the subinterval [x s ,x e The actual maximum fitting error ε within ] act =ε set , then the left endpoint x of the subinterval s and the right endpoint x e The following equations should be satisfied:

[0130]

[0131]

[0132] Among them, the meaning of the first equation is that the slope at the tangent point in the subinterval is calculated according to the coordinates of the two end points of the subinterval, and the meaning of the second equation is that when the independent variable is the horizontal coordinate of the tangent point, the absolute value of the function difference between the nonlinear function and the endpoint connection line is twice the target fitting error.

[0133] For convex functions, the value in the absolute value symbol in the second equation is positive, so the absolute value symbol can be removed directly; for concave functions, the value in the absolute value symbol in the second equation is negative, and the value needs to be negated after removing the absolute value symbol. The system of equations contains 3 unknowns, which are the left endpoint x s , right endpoint x e and tangent point x * In the interval [a, b], when the left endpoint of the subinterval is fixed, the actual maximum absolute error of the linear fit increases monotonically with the increase of the right endpoint. s When , we can find the only right endpoint x e Similarly, when the right endpoint of the subinterval is fixed, the actual maximum absolute error of the linear fit increases monotonically as the left endpoint decreases.e When , we can find the only left endpoint x s .

[0134] Taking the second endpoint as the right endpoint as an example, when the actual maximum fitting error ε of the function f(x) in its target interval [a, b] is act >ε set When the computer device first fixes the right endpoint of the last subinterval (i.e., the reference interval) as b, and finds its left endpoint x in the interval (a, b). ref , so that the nonlinear function f(x) is in the subinterval [x ref ,b] corresponds to the actual maximum fitting error ε act =ε set . That is, if the right endpoint x is known e is b, and the left endpoint x is obtained based on the above equations. ref .

[0135] Step 704: Taking the first endpoint of the target interval as the first endpoint of the first sub-interval, the second endpoints of each sub-interval are determined in sequence based on the target fitting error.

[0136] After the computer device calculates the reference interval based on one section of the target interval, it starts to analyze the interval endpoint values ​​of the sub-intervals one by one from the other end. Since the first endpoint of the first sub-interval is known, and the first endpoint of the next sub-interval can be obtained by analyzing the second endpoint of each sub-interval, there are only two unknowns, which can be analyzed by solving the above equations.

[0137] Taking the first endpoint as the left endpoint as an example, the computer device knows the left endpoint x0=a of the first subinterval, and finds its right endpoint x1 in the interval (x0,b) so that the actual maximum fitting error ε of the function f(x) in the subinterval [x0,x1] is act =ε set .

[0138] Specifically, step 704 includes the following steps:

[0139] Step 704a, generating a set of equations based on the first linear function, the second linear function and the target fitting error, wherein the first linear function is a function corresponding to the line connecting the subinterval endpoints, and the second linear function is a function corresponding to the line segment parallel to the line connecting the subinterval endpoints and tangent to the nonlinear function.

[0140] The computer device generates a set of equations as shown in step 703 based on the first linear function, the second linear function and the target fitting error.

[0141] Step 704b, taking the second endpoint of the i-th sub-interval as the first endpoint of the i+1-th sub-interval, and analyzing the equation group by a numerical solution algorithm to obtain the second endpoint of the i+1-th sub-interval, where i is a positive integer less than n.

[0142] The above equations contain nonlinear functions and first-order derivatives, and usually do not have analytical solutions. They can be solved by numerical methods. For example, the vpasolve function of MATLAB software can be used for calculation. Numerical solutions usually require setting the search range of the solution to ensure the correctness and convergence speed of the solution, because the convexity (or concavity) of the nonlinear function f(x) outside its convex (or concave) interval [a, b] cannot be guaranteed. Therefore, in order to ensure a correct solution, the search range of the computer equipment should be limited to the target interval [a, b].

[0143] Step 705, in response to the second endpoint of the n-1th subinterval being within the reference interval, determine that the number of subintervals is n, and the first endpoint of the nth subinterval is the second endpoint of the n-1th subinterval, and the second endpoint of the nth subinterval is the second endpoint of the target interval.

[0144] Wherein, n is a positive integer.

[0145] In a possible implementation, the computer device performs a convergence judgment each time it obtains an endpoint value of a subinterval. After obtaining the second endpoint of the n-1th subinterval, the computer device determines whether the second endpoint of the n-1th subinterval is within the reference interval. If so, that is, x n ≥x ref , then it means that the currently divided n-1 sub-intervals and the reference interval can completely cover the target interval. If not, that is, x n <x ref There is still a distance between the n-1th sub-interval and the reference interval. The current n-1 sub-intervals and the reference interval cannot cover the target interval, and further division is needed to calculate the endpoint value of the next sub-interval.

[0146] Specifically, the computer device stores a precision control parameter, that is, the n-1th sub-interval is outside the reference interval (within the target interval), but the difference between its second endpoint and the first endpoint of the reference interval is less than the precision control parameter, which can also be considered as piecewise convergence.

[0147] For example, taking the first endpoint as the left endpoint, after parsing to obtain the right endpoint x1 of the first subinterval, if x1 ≥ x ref -δ, then it means the number of segments N seg = 2, the error requirement can be met; otherwise, the right endpoint x1 is used as the left endpoint of the next subinterval, and the right endpoint of the next subinterval is calculated until the right endpoint of a subinterval is greater than or equal to x1. ref-δ. δ is the precision control parameter, which is usually a small positive number.

[0148] If the second endpoint of the n-1th subinterval is within the reference interval, the number of subintervals is determined to be n, and the first endpoint of the nth subinterval is the second endpoint of the n-1th subinterval, and the second endpoint of the nth subinterval is the second endpoint of the target interval.

[0149] Step 706: Generate a second linear fitting function corresponding to each sub-interval based on the function value of the sub-interval endpoints.

[0150] The specific implementation of step 706 can refer to the above step 404, and the embodiment of the present application will not be repeated here.

[0151] In an embodiment of the present application, when the first linear fitting function does not meet the function fitting conditions, the computer device generates a set of equations based on the target fitting error, and solves the minimum number of segments based on the reference interval. When the maximum error is not greater than the set error, the number of segments is the least, and the linear fitting parameters that need to be stored are also the least, which can save storage resources. At the same time, the number of comparisons for determining the sub-interval in which the independent variable is located is also reduced, which can improve the calculation efficiency, thereby improving the signal processing efficiency of the terminal.

[0152] The above embodiment explains the process of calculating the minimum number of segments n that meets the function fitting condition. The target interval is divided into n sub-intervals obtained by the above process, and the function fitting condition can be met. At this time, the interval division can be ended, that is, the computer device can directly segment the nonlinear function based on the interval endpoints of the above n sub-intervals, and calculate the second linear fitting function in each sub-interval, where the actual maximum fitting error corresponding to the first n-1 second linear fitting functions is equal to the target fitting error, and the actual maximum fitting error corresponding to the second linear fitting function in the nth sub-interval may be less than the target fitting error. However, in reality, if This means that the right endpoints of each subinterval of the iterative calculation are x1, x2, ..., It is exactly the optimal segmentation point of the interval [a,b], and the subintervals corresponding to each segment are [a,x1], [x1,x2],…, The actual maximum fitting error ε of each segment act =ε set , then the target fitting error is the minimization result of the maximum fitting error that can be achieved when the number of segments is n. This means that the right endpoints of each subinterval calculated iteratively are not the optimal segmentation points. When the optimal segmentation is performed, the actual maximum fitting error of each segment should be less than the target fitting error ε set .

[0153] Please refer to Figure 8, which shows a flow chart of a nonlinear function fitting method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a computer device as an example. The method comprises the following steps:

[0154] Step 801: Generate a first linear fitting function based on the function value of the nonlinear function at the endpoint of the target interval.

[0155] Step 802: determine a maximum fitting error based on the nonlinear function and the first linear fitting function.

[0156] Step 803 , in response to the maximum fitting error not satisfying the function fitting condition, taking the second endpoint of the target interval as the second endpoint of the reference interval, and determining the first endpoint of the reference interval based on the target fitting error.

[0157] Step 804 , taking the first endpoint of the target interval as the first endpoint of the first sub-interval, and determining the second endpoint of each sub-interval in sequence based on the target fitting error.

[0158] Step 805, in response to the second endpoint of the n-1th subinterval being within the reference interval, determine that the number of subintervals is n, and the first endpoint of the nth subinterval is the second endpoint of the n-1th subinterval, and the second endpoint of the nth subinterval is the second endpoint of the target interval.

[0159] The specific implementation of steps 801 to 805 can refer to the above steps 701 to 705, and the embodiments of the present application will not be repeated here.

[0160] Step 806: Update the interval endpoints of the n sub-intervals based on the relationship between the second endpoint of the (n-1)th sub-interval and the first endpoint of the reference interval.

[0161] like This means that the right endpoints of each subinterval calculated iteratively are not the optimal segmentation points. When the optimal segmentation is performed, the actual maximum fitting error of each segment should be less than the target fitting error ε set The computer device may determine whether the endpoints of the currently calculated n sub-intervals are optimal segmentation points when the number of segments is the smallest, based on the relationship between the second endpoint of the n-1th sub-interval and the first endpoint of the reference interval.

[0162] Specifically, step 806 includes the following steps:

[0163] Step 806a, in response to the endpoint deviation value being less than or equal to the target accuracy parameter, determining the interval endpoints of the n sub-intervals as the target interval endpoints, and the endpoint deviation value is the distance difference between the second endpoint of the n-1th sub-interval and the first endpoint of the reference interval.

[0164] That is, after the iteration, if This means that the right endpoints of each subinterval of the iterative calculation are x1, x2, ..., It is exactly the optimal segmentation point of the interval [a,b], and the subintervals corresponding to each segment are [a,x1], [x1,x2],…, The actual maximum fitting error ε of each segment act =ε set .

[0165] Step 806b, in response to the endpoint deviation value being greater than the target accuracy parameter, updating the interval endpoints of the n subintervals based on the target fitting error, the endpoint deviation value, and the reference fitting error corresponding to the nth subinterval.

[0166] If the endpoint deviation value is greater than the target accuracy parameter δ, that is This means that the right endpoints of each subinterval calculated iteratively are not the optimal segmentation points. At this time, the computer device updates the interval endpoints of the n subintervals based on the target fitting error, the endpoint deviation value, and the reference fitting error corresponding to the nth subinterval, and adjusts the interval endpoints of the n subintervals to the optimal segmentation points, so that the final actual fitting error is less than the target fitting error, and the accuracy of function fitting is improved without changing the amount of fitting parameters that need to be stored.

[0167] Specifically, step 806b includes the following steps:

[0168] Step 1: Determine a reference fitting error based on the interval endpoints of the nth subinterval and the nonlinear function.

[0169] Since the interval endpoints of the first n-1 subintervals are calculated based on the target fitting error, the maximum fitting error corresponding to the first n-1 subintervals is the target fitting error, and the nth subinterval is obtained based on the second endpoint of the n-1th subinterval and the second endpoint of the target interval, and its corresponding actual maximum fitting error is less than the target fitting error. Therefore, the actual maximum fitting error corresponding to the nth subinterval can be determined as the reference fitting error, and the maximum fitting errors corresponding to other subintervals are minimized between the reference fitting error and the target fitting error.

[0170] The computer device calculates the reference fitting error based on the function values ​​of the two interval endpoints of the nth sub-interval. The specific calculation process can refer to the calculation process of the maximum fitting error corresponding to the first linear fitting function, and the embodiments of the present application will not be repeated here.

[0171] Step 2: Determine the actual fitting error and the interval endpoints of n subintervals based on the error selection range, wherein the lower limit of the error selection range is the reference fitting error and the upper limit of the initial error selection range is the target fitting error.

[0172] In a possible implementation, the computer device may set the initial value of the actual maximum error upper limit during optimal segmentation to be the target fitting error, that is, ε high =ε set , at this time the endpoint deviation value is the largest, recorded as For the last subinterval It is easy to know that the actual maximum fitting error corresponding to this subinterval is a lower limit of the actual maximum error when the optimal segmentation is performed, denoted as ε low In summary, the actual maximum error during optimal segmentation should satisfy ε low <ε act <ε high .

[0173] The computer device continuously tries to minimize the maximum fitting error within the error selection range. Specifically, step 2 includes the following steps:

[0174] Step 1: Determine candidate fitting errors from the error selection range based on endpoint deviation values.

[0175] Specifically, the reference fitting error can be selected for the first selection, and the value can be selected within the error selection range according to the following centralized method:

[0176] Method 1: The candidate fitting error is taken as the midpoint of the search interval, that is,

[0177] Method 2: The candidate fitting error is the weighted average of the two end points of the search interval, that is, ε t = wε low +(1-w)ε high , where w is the weight, for example,

[0178] Method 3: When ε high and d high When updating, the candidate fitting error When ε low and d low When updating, the candidate fitting error where ε high,pre and d high,pre are the upper limit of the error selection range and the corresponding endpoint deviation value before updating, ε low,pre and d low,pre are the lower limit of the error selection range before updating and the corresponding endpoint deviation value. high,pre , ε low,pre d high,pre and d low,pre ), or the new candidate fitting error obtained by this method does not satisfy ε low <ε t <ε highWhen , we can first use the first two value-taking methods, where d low Select the endpoint deviation value corresponding to the lower limit of the error range.

[0179] The method for selecting the candidate fitting errors is not limited to the above three methods, and other methods can also be used to obtain values, which will not be described in detail in the embodiments of the present application.

[0180] Step 2: Taking the second endpoint of the target interval as the second endpoint of the reference interval, and updating the first endpoint of the reference interval based on the candidate fitting error.

[0181] Since the calculated fitting error standard is updated from the target fitting error to the candidate fitting error, the computer device needs to recalculate the reference interval as a criterion for judging whether the endpoints of this round of intervals converge.

[0182] Indicatively, taking the first endpoint as the left endpoint, fix the right endpoint of the last subinterval as b, and find its left endpoint x in the interval (a, b) ref , so that the nonlinear function f(x) is in the subinterval [x ref ,b] the actual maximum fitting error ε act =ε t . With this left endpoint x ref It serves as a reference point for subsequent calculation convergence judgment.

[0183] Step 3: Taking the first endpoint of the target interval as the first endpoint of the first candidate subinterval, and determining the second endpoints of the first candidate subinterval to the n-1th candidate subinterval in sequence based on the candidate fitting error.

[0184] In one possible implementation, similar to the process of initially dividing the interval based on the target fitting error, the computer device uses the first endpoint of the target interval as the first endpoint of the first candidate sub-interval, and determines the second endpoints of the first candidate sub-interval to the n-1th candidate sub-interval in sequence based on the candidate fitting error.

[0185] Schematically, the left endpoint of the first subinterval is initialized as x0=a, and the right endpoints of n-1 subintervals are calculated in sequence starting from the first subinterval. Specifically, the left endpoint of the nth subinterval is x n-1 , in the interval (x n-1 ,b) Find the right endpoint x n , so that the nonlinear function f(x) is in the subinterval [x n-1 ,x n The actual maximum fitting error ε act =ε t .

[0186] Step 4: Based on the relationship between the second endpoint of the n-1th candidate subinterval and the reference interval, determine the actual fitting error and the interval endpoints of the n subintervals.

[0187] The process of minimizing the maximum fitting error is the process of continuously selecting new fitting errors as the benchmark to adjust the endpoints of n subintervals. After each round of calculation, based on the relationship between the second endpoint of the n-1th candidate subinterval and the reference interval, it is judged whether the candidate fitting error of this round is too small or too large, and the upper or lower limit of the error selection range is updated, and the next round of calculation is performed until the optimal segmentation point is determined.

[0188] Specifically, step 4 includes the following three situations:

[0189] In response to the second endpoint of the n-1th candidate sub-interval being within the reference interval and the endpoint deviation value being greater than the target accuracy parameter, the error selection range is updated, and the upper limit of the updated error selection range is the candidate fitting error; based on the updated endpoint deviation value and the error selection range, the interval endpoints of the reference interval and the candidate sub-interval are updated.

[0190] In response to the second endpoint of the n-1th candidate sub-interval being outside the reference interval and the endpoint deviation value being greater than the target accuracy parameter, the error selection range is updated, and the lower limit of the updated error selection range is the candidate fitting error; based on the updated endpoint deviation value and the error selection range, the interval endpoints of the reference interval and the candidate sub-interval are updated.

[0191] In response to the endpoint deviation value being less than or equal to the target accuracy parameter, the candidate fitting error is determined as the actual fitting error, and the interval endpoints of the n subintervals are determined based on the updated endpoints of the n-1 candidate subintervals.

[0192] Specifically, taking the first endpoint as the left endpoint, if the Nth seg -1 The right endpoint of the subinterval satisfies This means that the current target error ε t Still too large, update the upper limit of the error search interval ε high =ε t , update endpoint deviation Go back to step 1. If This means that the current target error ε t Still too small, update the lower limit of the error search interval ε low =ε t , update endpoint deviation Go back to step 1. If This means that the right endpoints of each subinterval calculated iteratively are exactly the optimal segmentation points of the interval [a,b], and the subintervals corresponding to each segment are [a,x1], [x1,x2],…, The actual maximum fitting error ε of each segment act =ε t , the calculation ends.

[0193] Step 807: Generate a second linear fitting function corresponding to each sub-interval based on the updated interval endpoints of the n sub-intervals.

[0194] The computer device generates a second linear fitting function corresponding to each sub-interval based on the optimal segmentation point. After obtaining the optimal segmentation point and each sub-interval of the non-uniform segmentation, it is easy to find the linear fitting function of each sub-interval. The slope and intercept of the fitting line of the nth sub-interval are k and n and c n , then the linear fitting function is g n (x) = k n x+c n The slope and intercept of each segmentation point and each sub-interval fitting line are stored in the lookup table. When calculating the nonlinear function value, the sub-interval number of the independent variable x is found according to the segmentation point. Assuming that the independent variable x is in the nth sub-interval, that is, x n-1 ≤x≤x n , query the slope and intercept of the fitted straight line of the nth subinterval, so that the approximate value of the nonlinear function f(x)≈g can be obtained n (x) = k n x+c n .

[0195] In an embodiment of the present application, when the minimum number of segments n is determined, the computer device further determines whether the actual fitting error can be smaller. Without changing the number of segments, the computer device continuously iteratively updates the candidate fitting errors, interval endpoints, and error selection ranges until the optimal segmentation point is determined, so that the overall linear fitting error of the nonlinear function in the target interval is minimized, that is, the calculation accuracy is improved without increasing the implementation cost and complexity, thereby improving the signal quality of wireless communication.

[0196] Fig. 9 It is a structural block diagram of a wireless communication device provided by an exemplary embodiment of the present application, and the device includes the following structure.

[0197] A first determination module 901 is used to determine a target nonlinear function based on a wireless signal processing instruction, where the target nonlinear function is a function used to perform signal processing on a transmitted or received wireless signal;

[0198] A first acquisition module 902 is used to acquire a target linear fitting function corresponding to the target nonlinear function, wherein the linear fitting function is obtained by performing non-uniform piecewise linear fitting on a concave function part or a convex function part of the nonlinear function based on a target fitting error;

[0199] The signal processing module 903 is used to perform wireless signal processing based on the target linear fitting function.

[0200] Optionally, the concave interval or the convex interval includes at least one subinterval, and the terminal stores parameters of the linear fitting function corresponding to the nonlinear function in each of the subintervals;

[0201] The first determining module 901 includes:

[0202] A first determining unit, configured to determine the target nonlinear function and the target independent variable value based on the wireless signal processing instruction;

[0203] The first acquisition module 902 includes:

[0204] A second determining unit, configured to determine a target subinterval based on the value of the target independent variable;

[0205] The first acquisition unit is used to acquire the target linear fitting function corresponding to the target nonlinear function in the target sub-interval.

[0206] Optionally, the baseband chip is provided with at least one functional module including a RF module, a channel estimation and equalization module, and a decoding module, and different functional modules are used to perform signal processing based on different types of nonlinear functions, wherein the RF module is used to calculate the signal transmission power based on exponential functions and logarithmic functions, the channel estimation and equalization module is used to calculate the channel filter coefficients based on square root functions and reciprocal functions, and estimate the frequency deviation and phase deviation based on trigonometric functions and inverse trigonometric functions, and the decoding module is used to run a confidence propagation algorithm based on a hyperbolic tangent function and an inverse function of the hyperbolic tangent function, and to run a neural network algorithm based on an activation function.

[0207] Fig.10 It is a structural block diagram of a nonlinear function fitting device provided by an exemplary embodiment of the present application, and the device includes the following structure.

[0208] A first generating module 1001 is used to generate a first linear fitting function based on the function value of the nonlinear function at the endpoints of the target interval, wherein the target interval is a convex interval or a concave interval, and the slope of the first linear fitting function is consistent with the slope of the line connecting the endpoints of the target interval;

[0209] A second determining module 1002 is used to determine a maximum fitting error based on the nonlinear function and the first linear fitting function, where the maximum fitting error refers to a maximum value of a difference between the nonlinear function and the first linear fitting function;

[0210] An interval segmentation module 1003 is used for segmenting the target interval based on a target fitting error to obtain sub-intervals in response to the maximum fitting error not satisfying a function fitting condition, wherein the function fitting condition is that the fitting error is less than or equal to the target fitting error;

[0211] The second generation module 1004 is used to generate a second linear fitting function corresponding to each of the sub-intervals based on the function value of the endpoints of the sub-intervals, the target linear fitting function of the nonlinear function within the target interval is composed of the second linear fitting functions corresponding to each of the sub-intervals, and the target linear fitting function is used for the baseband chip of the terminal to perform wireless signal processing.

[0212] Optionally, the interval segmentation module 1003 includes:

[0213] a third determining unit, configured to, in response to the maximum fitting error not satisfying the function fitting condition, take the second endpoint of the target interval as the second endpoint of the reference interval, and determine the first endpoint of the reference interval based on the target fitting error;

[0214] A fourth determining unit, configured to use the first endpoint of the target interval as the first endpoint of the first subinterval, and determine the second endpoint of each subinterval in sequence based on the target fitting error;

[0215] a fifth determining unit, configured to determine, in response to the second endpoint of the n-1th subinterval being within the reference interval, that the number of subintervals is n, the first endpoint of the n-1th subinterval is the second endpoint of the n-1th subinterval, the second endpoint of the n-1th subinterval is the second endpoint of the target interval, and n is a positive integer;

[0216] The first endpoint is a left endpoint and the second endpoint is a right endpoint, or the first endpoint is a right endpoint and the second endpoint is a left endpoint.

[0217] Optionally, the fourth determining unit is further configured to:

[0218] Generate an equation group based on a first linear function, a second linear function and the target fitting error, wherein the first linear function is a function corresponding to the line connecting the subinterval endpoints, and the second linear function is a function corresponding to a line segment parallel to the line connecting the subinterval endpoints and tangent to the nonlinear function;

[0219] The second endpoint of the i-th sub-interval is used as the first endpoint of the i+1-th sub-interval, and the equation group is analyzed by a numerical solution algorithm to obtain the second endpoint of the i+1-th sub-interval, where i is a positive integer less than n.

[0220] Optionally, the second generating module 1004 includes:

[0221] an endpoint updating unit, configured to update the interval endpoints of the n subintervals based on the relationship between the second endpoint of the n-1th subinterval and the first endpoint of the reference interval;

[0222] The first generating unit is used to generate the second linear fitting function corresponding to each of the sub-intervals based on the updated interval endpoints of the n sub-intervals.

[0223] Optionally, the endpoint updating unit is further used to:

[0224] In response to the endpoint deviation value being less than or equal to the target accuracy parameter, determining the interval endpoints of the n subintervals as the target interval endpoints, the endpoint deviation value being the distance difference between the second endpoint of the n-1th subinterval and the first endpoint of the reference interval;

[0225] In response to the endpoint deviation value being greater than the target accuracy parameter, the interval endpoints of the n subintervals are updated based on the target fitting error, the endpoint deviation value and the reference fitting error corresponding to the nth subinterval.

[0226] Optionally, the endpoint updating unit is further used to:

[0227] Determine the reference fitting error based on the interval endpoints of the nth subinterval and the nonlinear function;

[0228] The actual fitting error and the interval endpoints of the n subintervals are determined based on the error selection range, wherein the lower limit of the error selection range is the reference fitting error and the upper limit of the initial error selection range is the target fitting error.

[0229] Optionally, the endpoint updating unit is further used to:

[0230] Determining a candidate fitting error from the error selection range based on the endpoint deviation value;

[0231] Taking the second endpoint of the target interval as the second endpoint of the reference interval, and updating the first endpoint of the reference interval based on the candidate fitting error;

[0232] Taking the first endpoint of the target interval as the first endpoint of the first candidate subinterval, and determining the second endpoints of the first candidate subinterval to the n-1th candidate subinterval in sequence based on the candidate fitting error;

[0233] Based on the relationship between the second endpoint of the n-1th candidate subinterval and the reference interval, the actual fitting error and the interval endpoints of the n subintervals are determined.

[0234] Optionally, the endpoint updating unit is further used to:

[0235] In response to the second endpoint of the n-1th candidate subinterval being within the reference interval and the endpoint deviation value being greater than the target accuracy parameter, updating the error selection range, wherein the upper limit of the updated error selection range is the candidate fitting error; based on the updated endpoint deviation value and the error selection range, updating the interval endpoints of the reference interval and the candidate subinterval;

[0236] In response to the second endpoint of the n-1th candidate subinterval being outside the reference interval and the endpoint deviation value being greater than the target accuracy parameter, updating the error selection range, wherein the lower limit of the updated error selection range is the candidate fitting error; based on the updated endpoint deviation value and the error selection range, updating the interval endpoints of the reference interval and the candidate subinterval;

[0237] In response to the endpoint deviation value being less than or equal to the target accuracy parameter, the candidate fitting error is determined as the actual fitting error, and the interval endpoints of the n subintervals are determined based on the updated endpoints of the n-1 candidate subintervals.

[0238] Optionally, the first generating module 1001 includes:

[0239] A second generating unit, configured to generate a first linear function corresponding to a line connecting the endpoints based on function values ​​of the nonlinear function at two endpoints of the target interval;

[0240] The third generating unit is used to generate a second linear function corresponding to the tangent line based on the tangent point of the tangent line on the nonlinear function curve, and the tangent line is parallel to the endpoint connection line.

[0241] The fourth generating unit is used to generate the first linear fitting function based on the first linear function and the second linear function, wherein the slope of the first linear fitting function is consistent with the slope of the first linear function, the intercept of the first linear fitting function is the average of the first intercept and the second intercept, the first intercept is the intercept of the first linear function, and the second intercept is the intercept of the second linear function.

[0242] Optionally, the second determining module 1002 includes:

[0243] A second acquisition unit, used to acquire the tangent point horizontal coordinate corresponding to the tangent point;

[0244] The sixth determination unit is used to determine the maximum fitting error based on the first function value corresponding to the horizontal coordinate of the tangent point in the nonlinear function and the second function value corresponding to the horizontal coordinate of the tangent point in the first linear fitting function, wherein the maximum fitting error is the absolute value of the difference between the first function value and the second function value.

[0245] Optionally, the method further includes:

[0246] The third determination module is configured to determine the first linear fitting function as the target linear fitting function in response to the maximum fitting error satisfying the function fitting condition.

[0247] To summarize, in an embodiment of the present application, a linear fitting function corresponding to a nonlinear function for processing wireless signals is stored in the terminal. When performing signal processing, the baseband chip can analyze and process the wireless signal based on the linear fitting function to reduce the data processing amount and calculation complexity of the chip; on the other hand, the linear fitting function is obtained by a computer device based on the properties of concave functions and convex functions, by performing non-uniform piecewise linear fitting on the concave function part or the convex function part in the nonlinear function. On the premise of ensuring that the fitting error between the linear fitting function and the nonlinear function is not higher than the target fitting error, the function can be divided into the minimum number of intervals, thereby reducing the amount of function parameters that the terminal needs to store. Under the same fitting accuracy, the storage resources required are less than that of the uniform piecewise fitting method, thereby improving the efficiency of wireless communication.

[0248] Please refer to Fig.11 , which shows a block diagram of a terminal 1100 provided by an exemplary embodiment of the present application. The terminal 1100 may be an electronic device such as a smart phone, a tablet computer, an e-book, a portable personal computer, etc., which has an application installed and running. The terminal 1100 in the present application may include one or more of the following components: a processor 1110 and a memory 1120.

[0249] The processor 1110 may include one or more processing cores. The processor 1110 uses various interfaces and lines to connect various parts of the entire terminal 1100, and executes various functions and processes data of the terminal 1100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1110, but may be implemented separately through a baseband chip, that is, an independent baseband chip may be provided in the terminal 1100 to implement the above-mentioned wireless communication method.

[0250] The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1120 includes a non-transitory computer-readable storage medium. The memory 1120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1120 may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system (including a system deeply developed based on an Android system), an IOS system developed by Apple (including a system deeply developed based on an IOS system) or other systems. The storage data area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 1100 during use.

[0251] In addition, those skilled in the art can understand that the structure of the terminal 1100 shown in the above drawings does not constitute a limitation on the terminal 1100, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal 1100 also includes a radio frequency circuit, a shooting component, a sensor, an audio circuit, a Wi-Fi component, a power supply, a Bluetooth component, and other components, which will not be described in detail here.

[0252] Please refer to Fig.12 , which shows a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application. Specifically, the computer device 1200 includes a CPU 1201, a system memory 1204 including a random access memory (RAM) 1202 and a read-only memory (ROM) 1203, and a system bus 1205 connecting the system memory 1204 and the central processing unit 1201. The computer device 1200 also includes a basic input / output system (I / O system) 1206 that helps transmit information between various devices in the computer, and a large-capacity storage device 1207 for storing an operating system 1213, application programs 1214 and other program modules 1215.

[0253] The basic input / output system 1206 includes a display 1208 for displaying information and an input device 1209 such as a mouse and a keyboard for user inputting information. The display 1208 and the input device 1209 are connected to the central processing unit 1201 through an input / output controller 1210 connected to the system bus 1205. The basic input / output system 1206 may also include an input / output controller 1210 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1210 also provides output to a display screen, a printer, or other types of output devices.

[0254] The mass storage device 1207 is connected to the central processing unit 1201 through a mass storage controller (not shown) connected to the system bus 1205. The mass storage device 1207 and its associated computer readable medium provide non-volatile storage for the computer device 1200. That is, the mass storage device 1207 may include a computer readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.

[0255] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, computer memory (Erasable Programmable Read Only Memory, EPROM), read-write memory (Electrically Erasable Programmable Read Only Memory, EEPROM), flash memory or other solid-state storage technology, CD-ROM, Digital Versatile Disc (Digital Versatile Disc, DVD) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 1204 and mass storage device 1207 can be collectively referred to as memory.

[0256] The memory stores one or more programs, and the one or more programs are configured to be executed by one or more central processing units 1201. The one or more programs include instructions for implementing the compilation method of the above-mentioned neural network model. The central processing unit 1201 executes the one or more programs to implement the methods provided by the above-mentioned various method embodiments.

[0257] According to various embodiments of the present application, the computer device 1200 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1200 can be connected to the network 1212 through the network interface unit 1211 connected to the system bus 1205, or the network interface unit 1211 can be used to connect to other types of networks or remote computer systems (not shown).

[0258] The memory also includes one or more programs, which are stored in the memory and include steps executed by a computer device in the method provided in the embodiment of the present application.

[0259] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the wireless communication method or the nonlinear function fitting method described in the above embodiments.

[0260] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the wireless communication method provided in various optional implementations of the above aspects; the processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the nonlinear function fitting method provided in various optional implementations of the above aspects.

[0261] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0262] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0263] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A wireless communication method, characterized in that: The method is applied to a baseband chip of a terminal, and the method comprises: Determining a target nonlinear function based on the wireless signal processing instruction, wherein the target nonlinear function is a function used to perform signal processing on a transmitted or received wireless signal; A target linear fitting function corresponding to the target nonlinear function is obtained, wherein, when the maximum fitting error satisfies the function fitting condition, the target linear fitting function is a first linear fitting function corresponding to the target nonlinear function, the first linear fitting function is generated based on the function value of the target nonlinear function at the endpoints of the target interval, the target interval is a convex interval or a concave interval, the slope of the first linear fitting function is consistent with the slope of the line connecting the endpoints of the target interval, the maximum fitting error refers to the maximum value of the difference between the target nonlinear function and the first linear fitting function, and the function fitting condition is that the fitting error is less than or equal to the target fitting error; when the maximum fitting error does not meet the function fitting condition, the target linear fitting function is composed of second linear fitting functions corresponding to each subinterval of the target nonlinear function, and the second linear fitting function The number is generated based on the function value of each sub-interval endpoint, wherein the second endpoint of the reference interval is the second endpoint of the target interval, the first endpoint of the reference interval is determined based on the target fitting error, the reference interval satisfies the function fitting condition, and the reference interval is used to measure the convergence of interval division, the first endpoint of the first sub-interval is the first endpoint of the target interval, and the second endpoints of each sub-interval are sequentially determined based on the target fitting error. When the second endpoint of the n-1th sub-interval is within the reference interval, the number of sub-intervals is n, and the first endpoint of the n-1th sub-interval is the second endpoint of the n-1th sub-interval, and the second endpoint of the n-1th sub-interval is the second endpoint of the target interval, and n is a positive integer, wherein the first endpoint is the left endpoint and the second endpoint is the right endpoint, or the first endpoint is the right endpoint and the second endpoint is the left endpoint; Wireless signal processing is performed based on the target linear fitting function.

2. The method according to claim 1, characterized in that The concave interval or the convex interval includes at least one subinterval, and the terminal stores the parameters of the linear fitting function corresponding to the nonlinear function in each of the subintervals; The determining of the target nonlinear function based on the wireless signal processing instruction comprises: Determine the target nonlinear function and the target independent variable value based on the wireless signal processing instruction; The obtaining of the target linear fitting function corresponding to the target nonlinear function includes: Determining a target subinterval based on the target independent variable value; The target linear fitting function corresponding to the target nonlinear function in the target subinterval is obtained.

3. The method according to claim 1 or 2, characterized in that: The baseband chip is provided with at least one functional module of a radio frequency module, a channel estimation and equalization module, and a decoding module, and different functional modules are used to perform signal processing based on different types of nonlinear functions, wherein the radio frequency module is used to calculate the signal transmission power based on the exponential function and the logarithmic function, the channel estimation and equalization module is used to calculate the channel filter coefficient based on the square root function and the reciprocal function, and to estimate the frequency deviation and the phase deviation based on the trigonometric function and the inverse trigonometric function, and the decoding module is used to run the confidence propagation algorithm based on the hyperbolic tangent function and the inverse function of the hyperbolic tangent function, and to run the neural network algorithm based on the activation function.

4. A method for fitting a nonlinear function, characterized in that: The method is applied to a computer device, and the method comprises: generating a first linear fitting function based on the function value of the nonlinear function at the endpoints of the target interval, wherein the target interval is a convex interval or a concave interval, and the slope of the first linear fitting function is consistent with the slope of the line connecting the endpoints of the target interval; Based on the nonlinear function and the first linear fitting function, determining a maximum fitting error, wherein the maximum fitting error refers to a maximum value of a difference between the nonlinear function and the first linear fitting function; In response to the maximum fitting error not satisfying the function fitting condition, the second endpoint of the target interval is used as the second endpoint of the reference interval, and the first endpoint of the reference interval is determined based on the target fitting error, the function fitting condition is that the fitting error is less than or equal to the target fitting error, the reference interval satisfies the function fitting condition, and the reference interval is used to measure the convergence of interval division; the first endpoint of the target interval is used as the first endpoint of the first sub-interval, and the second endpoints of each sub-interval are determined in sequence based on the target fitting error; in response to the second endpoint of the n-1th sub-interval being within the reference interval, the number of sub-intervals is determined to be n, and the first endpoint of the nth sub-interval is the second endpoint of the n-1th sub-interval, and the second endpoint of the nth sub-interval is the second endpoint of the target interval, and n is a positive integer; wherein the first endpoint is the left endpoint and the second endpoint is the right endpoint, or the first endpoint is the right endpoint and the second endpoint is the left endpoint; Based on the function values ​​of the sub-interval endpoints, a second linear fitting function corresponding to each of the sub-intervals is generated, and the target linear fitting function of the nonlinear function within the target interval is composed of the second linear fitting functions corresponding to each of the sub-intervals, and the target linear fitting function is used for the baseband chip of the terminal to perform wireless signal processing.

5. The method according to claim 4, characterized in that The method of taking the first endpoint of the target interval as the first endpoint of the first subinterval and determining the second endpoints of each subinterval in sequence based on the target fitting error includes: Generate an equation group based on a first linear function, a second linear function and the target fitting error, wherein the first linear function is a function corresponding to the line connecting the subinterval endpoints, and the second linear function is a function corresponding to a line segment parallel to the line connecting the subinterval endpoints and tangent to the nonlinear function; The second endpoint of the i-th sub-interval is used as the first endpoint of the i+1-th sub-interval, and the equation group is analyzed by a numerical solution algorithm to obtain the second endpoint of the i+1-th sub-interval, where i is a positive integer less than n.

6. The method according to claim 4, characterized in that The generating of the second linear fitting function corresponding to each of the sub-intervals based on the function value of the sub-interval endpoints includes: Based on the relationship between the second endpoint of the n-1th sub-interval and the first endpoint of the reference interval, updating the interval endpoints of the n sub-intervals; Based on the updated interval endpoints of the n sub-intervals, the second linear fitting function corresponding to each of the sub-intervals is generated.

7. The method according to claim 6, characterized in that The updating of the interval endpoints of the n sub-intervals based on the relationship between the second endpoint of the n-1th sub-interval and the first endpoint of the reference interval includes: In response to the endpoint deviation value being less than or equal to the target accuracy parameter, determining the interval endpoints of the n subintervals as the target interval endpoints, the endpoint deviation value being the distance difference between the second endpoint of the n-1th subinterval and the first endpoint of the reference interval; In response to the endpoint deviation value being greater than the target accuracy parameter, the interval endpoints of the n subintervals are updated based on the target fitting error, the endpoint deviation value and the reference fitting error corresponding to the nth subinterval.

8. The method according to claim 7, characterized in that The updating of the interval endpoints of the n subintervals based on the target fitting error, the endpoint deviation value and the reference fitting error corresponding to the nth subinterval includes: Determine the reference fitting error based on the interval endpoints of the nth subinterval and the nonlinear function; The actual fitting error and the interval endpoints of the n subintervals are determined based on the error selection range, wherein the lower limit of the error selection range is the reference fitting error and the upper limit of the error selection range is the target fitting error.

9. The method according to claim 8, characterized in that The determining of the actual fitting error and the interval endpoints of the n sub-intervals based on the error selection range includes: Determining a candidate fitting error from the error selection range based on the endpoint deviation value; Taking the second endpoint of the target interval as the second endpoint of the reference interval, and updating the first endpoint of the reference interval based on the candidate fitting error; Taking the first endpoint of the target interval as the first endpoint of the first candidate subinterval, and determining the second endpoints of the first candidate subinterval to the n-1th candidate subinterval in sequence based on the candidate fitting error; Based on the relationship between the second endpoint of the n-1th candidate subinterval and the reference interval, the actual fitting error and the interval endpoints of the n subintervals are determined.

10. The method according to claim 9, characterized in that The determining the actual fitting error and the interval endpoints of the n subintervals based on the relationship between the second endpoint of the n-1th candidate subinterval and the reference interval includes: In response to the second endpoint of the n-1th candidate subinterval being within the reference interval and the endpoint deviation value being greater than the target accuracy parameter, updating the error selection range, wherein the upper limit of the updated error selection range is the candidate fitting error; based on the updated endpoint deviation value and the error selection range, updating the interval endpoints of the reference interval and the candidate subinterval; In response to the second endpoint of the n-1th candidate subinterval being outside the reference interval and the endpoint deviation value being greater than the target accuracy parameter, updating the error selection range, wherein the lower limit of the updated error selection range is the candidate fitting error; based on the updated endpoint deviation value and the error selection range, updating the interval endpoints of the reference interval and the candidate subinterval; In response to the endpoint deviation value being less than or equal to the target accuracy parameter, the candidate fitting error is determined as the actual fitting error, and the interval endpoints of the n subintervals are determined based on the updated endpoints of the n-1 candidate subintervals.

11. The method according to any one of claims 4 to 10, characterized in that: The step of generating a first linear fitting function based on the function value of the nonlinear function at the endpoint of the target interval includes: Based on the function values ​​of the nonlinear function at the two endpoints of the target interval, generating a first linear function corresponding to the endpoint connection line; Based on the tangent point of the tangent on the nonlinear function curve, generating a second linear function corresponding to the tangent, wherein the tangent is parallel to the line connecting the endpoints; Based on the first linear function and the second linear function, the first linear fitting function is generated, wherein the slope of the first linear fitting function is consistent with the slope of the first linear function, the intercept of the first linear fitting function is the average of the first intercept and the second intercept, the first intercept is the intercept of the first linear function, and the second intercept is the intercept of the second linear function.

12. The method according to claim 11, characterized in that The determining of the maximum fitting error based on the nonlinear function and the first linear fitting function comprises: Get the horizontal coordinate of the tangent point corresponding to the tangent point; Based on the first function value corresponding to the horizontal coordinate of the tangent point in the nonlinear function and the second function value corresponding to the horizontal coordinate of the tangent point in the first linear fitting function, the maximum fitting error is determined, and the maximum fitting error is the absolute value of the difference between the first function value and the second function value.

13. The method according to any one of claims 4 to 10, characterized in that: After determining the maximum fitting error based on the nonlinear function and the first linear fitting function, the method further includes: In response to the maximum fitting error satisfying the function fitting condition, the first linear fitting function is determined as the target linear fitting function.

14. A wireless communication device, characterized in that: The device comprises: A first determination module, configured to determine a target nonlinear function based on the wireless signal processing instruction, wherein the target nonlinear function is a function used to perform signal processing on a transmitted or received wireless signal; A first acquisition module is used to acquire a target linear fitting function corresponding to the target nonlinear function, wherein, when a maximum fitting error satisfies a function fitting condition, the target linear fitting function is a first linear fitting function corresponding to the target nonlinear function, the first linear fitting function is generated based on a function value of the target nonlinear function at an endpoint of a target interval, the target interval is a convex interval or a concave interval, the slope of the first linear fitting function is consistent with the slope of a line connecting the endpoints of the target interval, the maximum fitting error refers to the maximum value of a difference between the target nonlinear function and the first linear fitting function, and the function fitting condition is that the fitting error is less than or equal to the target fitting error; when the maximum fitting error does not satisfy the function fitting condition, the target linear fitting function is composed of second linear fitting functions corresponding to each subinterval of the target nonlinear function, and the second A linear fitting function is generated based on the function values ​​of the endpoints of each sub-interval, wherein the second endpoint of the reference interval is the second endpoint of the target interval, the first endpoint of the reference interval is determined based on the target fitting error, the reference interval satisfies the function fitting condition, and the reference interval is used to measure the convergence of interval division, the first endpoint of the first sub-interval is the first endpoint of the target interval, and the second endpoints of each sub-interval are sequentially determined based on the target fitting error. When the second endpoint of the n-1th sub-interval is within the reference interval, the number of sub-intervals is n, and the first endpoint of the n-1th sub-interval is the second endpoint of the n-1th sub-interval, and the second endpoint of the n-1th sub-interval is the second endpoint of the target interval, and n is a positive integer, wherein the first endpoint is the left endpoint and the second endpoint is the right endpoint, or the first endpoint is the right endpoint and the second endpoint is the left endpoint; A signal processing module is used to perform wireless signal processing based on the target linear fitting function.

15. A nonlinear function fitting device, characterized in that: The device comprises: A first generating module, configured to generate a first linear fitting function based on a function value of a nonlinear function at an endpoint of a target interval, wherein the target interval is a convex interval or a concave interval, and a slope of the first linear fitting function is consistent with a slope of a line connecting the endpoints of the target interval; A second determination module, configured to determine a maximum fitting error based on the nonlinear function and the first linear fitting function, wherein the maximum fitting error refers to a maximum value of a difference between the nonlinear function and the first linear fitting function; An interval segmentation module is used for, in response to the maximum fitting error not satisfying the function fitting condition, taking the second endpoint of the target interval as the second endpoint of the reference interval, determining the first endpoint of the reference interval based on the target fitting error, the function fitting condition being that the fitting error is less than or equal to the target fitting error, the reference interval satisfying the function fitting condition, and the reference interval being used to measure the convergence of interval division; taking the first endpoint of the target interval as the first endpoint of the first sub-interval, and sequentially determining the second endpoints of each sub-interval based on the target fitting error; in response to the second endpoint of the n-1th sub-interval being within the reference interval, determining the number of sub-intervals to be n, and the first endpoint of the nth sub-interval to be the second endpoint of the n-1th sub-interval, and the second endpoint of the nth sub-interval to be the second endpoint of the target interval, and n is a positive integer; wherein the first endpoint is the left endpoint and the second endpoint is the right endpoint, or the first endpoint is the right endpoint and the second endpoint is the left endpoint; The second generation module is used to generate a second linear fitting function corresponding to each of the sub-intervals based on the function value of the sub-interval endpoints, the target linear fitting function of the nonlinear function within the target interval is composed of the second linear fitting functions corresponding to each of the sub-intervals, and the target linear fitting function is used for the baseband chip of the terminal to perform wireless signal processing.

16. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the wireless communication method as described in any one of claims 1 to 3.

17. A computer device, characterized in that: The computer device includes a processor and a memory; the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the nonlinear function fitting method as described in any one of claims 4 to 13.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the computer program is loaded and executed by a processor to implement the wireless communication method as described in any one of claims 1 to 3, or the nonlinear function fitting method as described in any one of claims 4 to 13.

19. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the wireless communication method as described in any one of claims 1 to 3; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the nonlinear function fitting method as described in any one of claims 4 to 13.