Embodiment
Inventor is realizing noticing in process of the present invention: the technical performance of tolerance communication discusses from the quality and quantity of communication, quantitative index measure of effectiveness, quality index degree of reiability.While guarantee communication quality, by finding the mode improving system effectiveness, ensure can transmit more signal under limited channel capacity.Wherein, if signal is without process, then can there is a large amount of existence of redundants, therefore remove unnecessary composition by modes such as quantification and compressions, realize the lifting of validity.
In practical application, because quantification can produce quantization error, and introduce distortion, therefore need limiting the minimum quantification compression coding mode of the required bit of searching under distortion condition.
For in prior art, LTE/LTE-A system adopts the technology such as large bandwidth, multiple antennas, thus the data volume causing Ir interface to transmit is larger, the problems such as existing compression ratio is low, the embodiment of the present invention provides a kind of data compression method based on Lloyd-Max quantizer and equipment, by carrying out adaptive quantizing to signal, realizes the compression of signal transmission, optimize Signal transmissions, to improve the efficiency of system transfers.
Below in conjunction with the accompanying drawing in the present invention, be clearly and completely described the technical scheme in the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention one provides a kind of data based on Lloyd-Max quantizer (i.e. signal, include but not limited to the signal of 3G/4G system) compression method, be applied in the data transmission system comprising transmitting terminal and receiving terminal, for each data transmission set, it can be transmitting terminal, also can be receiving terminal, therefore the theory diagram of Lloyd-Max quantizer can structure as shown in Figure 2.
Wherein, power/amplitude adjuster, adaptive codebook quantizer are the functional module of data transmission set as transmitting terminal; Power/amplitude compensator, solution code book quantizer are the functional module of data transmission set as receiving terminal.In fig. 2, A bit is the bit number before quantizing, and B bit is the bit number after quantizing, and A bit is greater than B bit.
Such as, the method can be applicable to comprise in the base station equipment of BBU and RRU, and compresses for the data transmitted the Ir interface between BBU and RRU.When BBU sends data to RRU, then BBU is transmitting terminal, and RRU is receiving terminal; When RRU sends data to BBU, then BBU is receiving terminal, and RRU is transmitting terminal.
In order to reasonably distribute quantization level, the quantizer matched with the probability density function of signal can be found, at the quantized interval that the regional choice that signal probability density is relatively large is less, and at the larger quantized interval of the regional choice that probability density is relatively little, thus reduce and quantize noise average power.
Based on above-mentioned thinking, self-adapting data compression can be carried out based on Lloyd-Max quantizer; The central principle of Lloyd-Max quantizer is in given input signal probability density
and under the condition of quantization level M, obtain one group of best layering level
with quantization level
, make its quantizing noise average power
minimum.Wherein, best layering level should be the mid point of two adjacent quantization level, and optimal quantization level is positioned on the probability barycenter of corresponding quantized interval, algorithm is first set an initial quantization level, and iterating based on above-mentioned two conditions calculates optimum data solution.
Say from theory, this quantizer performance is optimum, but its quantizing structure is comparatively complicated, and real-time implementation is very difficult; And because the design of Lloyd-Max quantizer is signal, output procedure is based on stationary process, for this feature, the embodiment of the present invention proposes a kind of compression scheme of the self-adapting data based on Lloyd-Max quantizer-adaptive codebook and quantizes, and it realizes block diagram as shown in Figure 2.
Based on the block diagram shown in Fig. 2, as shown in Figure 3, based on the data compression method of Lloyd-Max quantizer, should comprise the following steps:
Step 301, transmitting terminal carries out the adjustment of power and/or amplitude to input signal (this input signal is input data), makes signal be more conducive to quantize.
Such as, transmitting terminal can carry out AGC(Automatic Gain Control to input signal, automatic growth control) adjustment.Wherein, in order to make the embodiment of the present invention can support larger input signal dynamic range, and making the signal after adjusting more be suitable for quantizing, first can carry out AGC adjustment to input signal.
Step 302, transmitting terminal utilizes Lloyd-Max quantizer to quantize input signal, obtains the code book that input signal is corresponding.
In this step, transmitting terminal first can determine that the distribution character of input signal is (as the input signal in predetermined period T is carried out buffer memory by transmitting terminal, and add up the distribution character of the input signal of buffer memory in predetermined period T), and the training sequence that structure is corresponding with the distribution character of this input signal; Afterwards, transmitting terminal utilizes Lloyd-Max quantizer to quantize this training sequence, thus can obtain code book corresponding to input signal.
In the embodiment of the present invention, transmitting terminal can carry out real-time statistics (if the distribution character of known signal is just without the need to statistics) to signal distributions characteristic as required, agreement measurement period is T, then the signal in T time section is carried out buffer memory, and adds up its distribution character (as average, variance etc.).
Wherein, the method for statistics has multiple, and the probability density distribution of such as statistical signal and typical probability distribution curve comparison, look for its most similar probability distribution etc., repeat no more in the embodiment of the present invention.
Further, transmitting terminal structure meets the training sequence of the probability distribution of statistics, to ensure training sequence long enough.
In the embodiment of the present invention, Lloyd-Max quantizer (namely utilizing Lloyd-Max quantization algorithm) can be utilized to quantize input signal or training sequence based on above-mentioned input signal or training sequence transmitting terminal, thus obtain code book corresponding to input signal.
In the embodiment of the present invention, in the process obtaining code book corresponding to input signal, the result quantized is carried out based on Lloyd-Max quantizer, transmitting terminal can inquire about the code book collection safeguarded in advance, and concentrate from code book and select code book corresponding to this input signal (i.e. optimum code book, the code book of optimal quantization level for obtaining based on the result of quantification).After concentrate the code book that selection input signal is corresponding from code book, transmitting terminal also needs in this code book, obtain code book subscript corresponding to this input signal.
Step 303, transmitting terminal is quantized input signal by code book obtained above.
Step 304, the input signal after quantification is sent to receiving terminal by transmitting terminal.
It should be noted that, said process is the process for transmitting terminal, at receiving terminal, when after the input signal after receiving quantification, also need the decoding that corresponding code book is numbered, separate codebook quantification, the processes such as power/Amplitude Compensation, and in order to realize this process, transmitting terminal also needs to perform following operation.
After transmitting terminal obtains code book subscript corresponding to input signal in the codebook, transmitting terminal also needs the numbering (namely code book is positioned at the number information that code book is concentrated) of code book subscript and above-mentioned optimum code book to send to receiving terminal; At receiving terminal, receiving terminal utilizes the numbering of this code book subscript and code book to inquire about the code book collection safeguarded in advance, and (this code book collection is identical with the code book collection that transmitting terminal is safeguarded, by the numbering of code book, namely the code book that transmitting terminal carries out quantizing can be inquired, thus can codebook quantification be separated), and utilize Query Result to process the input signal after quantification.
Further, timestamp under transmission code book, transmitting terminal can be determined to send target bit wide B under code book based on the size M of code book, wherein,
.
When sending the numbering of code book; because the optimum code book numbering selected is extremely important, once pass mistake will cause the whole mistake of de-quantization, therefore transmitting terminal needs to carry out coding protection to the numbering of the optimum code book selected; the scheme of carrying out coding protection can be selected arbitrarily, can be repeated encoding etc.
When sending the numbering of code book subscript and code book, the numbering of code book subscript and code book is placed on Cyclic Prefix by transmitting terminal, or, be placed on the position after data are punched.Wherein, the code book subscript of quantification and the optimum code book numbering after coding are passed to receiving terminal, the transmission position of numbering about optimum code book can be placed on Cyclic Prefix or carry out the optimum code book numbering after punching placement coding to data.
Based on above-mentioned situation, at receiving terminal, receiving terminal completes the decoding of corresponding code book numbering, separates codebook quantification, power/Amplitude Compensation.Do not limit in the transfer mode embodiment of the present invention of wherein power/amplitude Dynamic gene, can by transmitting at Cyclic Prefix or at free timeslots.
It should be noted that, the technical scheme that the embodiment of the present invention provides is applicable to stationary signal, and therefore the statistical property of signal is little over time, the change that available quantification code book can not be larger, but statistical property may fluctuate to some extent at short notice.According to this feature, a kind of adaptive optimization scheme can be adopted, by observing the excursion of its distribution character, train the typical code book of many groups according to its distribution character, and the selection of optimum code book can be carried out by following two kinds of modes.
Mode one: select optimum code book by the statistical property of real-time statistics signal.
Mode two: by calculate quantize before and after the quantification loss of signal select optimum code book, calculating the mode quantizing loss can seletion calculation EVM(error vector magnitude), or calculate mean square error etc., do not limit in the embodiment of the present invention.
Based on technique scheme, the implementation complexity of the embodiment of the present invention is lower, only needs to store corresponding code book collection at transmitting terminal and receiving terminal when realizing, and is quantized by transmitting terminal, inquires about code book collection carry out de-quantization by receiving terminal.In addition, after compression, the characteristic distributions of signal is changed less (as significantly changed the distribution character of signal after the compression of A rule), therefore the code book subscript distribution after adaptive codebook quantizes is corresponding consistent with data, after compression, the size distribution ratio of corresponding data does not become, there is the space of compression further, can share with other compression scheme and improve the performance compressed further; Such as, can after connect the modes such as piecemeal differential coding and sectional compression, represent to realize small-signal by less bit wide, and can be used as an embody rule of the embodiment of the present invention.
In addition, also propose in the embodiment of the present invention according to the probability distribution of signal, the mode of the limit bit number (i.e. comentropy) of Lossless Compression to be judged.Concrete, the minimum boundary of average number of bits under lossless case can be drawn by statistical information entropy.For LTE downstream signal, its obedience average is
, variance is
normal distribution, the expression formula of probability distribution is:
Then can think Lossless Compression prerequisite under, minimum average transmission bit wide is:
If final compression bit bit wide is less than
, then think and introduce lossy compression method, the loss of the statistical signal come by the mean square error before and after statistical signal compression.
In sum, in the embodiment of the present invention, utilize Lloyd-Max quantizer to carry out Signal Compression, can realize carrying out adaptive quantizing to signal, thus realize the compression of signal transmission, optimize the transmitting procedure of signal, and improve the efficiency of system transfers.And the minimum boundary of Lossless Compression bit number can be calculated, when introducing lossy compression method, under certain performance loss, attainable compression is lower, more reasonable to the selection of quantization level and quantification manner, makes Signal transmissions validity higher.
Embodiment two
The embodiment of the present invention two provides a kind of data compression method based on Lloyd-Max quantizer, to be applied as example to the program in LTE system in Ir data compression, as shown in Figure 4 realize block diagram, can effectively by the data compression to 8 of 16bit bit.
Based on the block diagram shown in Fig. 4, then the method comprises the following steps:
Signal is carried out AGC process by step 1, transmitting terminal, the amplitude of adjustment signal.
Step 2, Sender side Storage size are M the code book of 4*256, data bit width in code book is that the data bit width after 16bit(and AGC is consistent), code book mainly generates according to signal variance, the fluctuation range of statistical signal variance, geometric ratio is divided into 4 grades, generates corresponding 4 code books.
The variance of step 3, transmitting terminal statistical signal, selects optimum code book, and carries out repeated encoding to optimum code book numbering.
Signal adopts the optimum code book selected to quantize by step 4, transmitting terminal, and the process of quantification is for passing through if ... else statement carries out logic comparison operation, judges that the code book belonging to signal is interval, exports the code book subscript that this interval is corresponding.
Code book numbering optimum after code book subscript and coding is passed to receiving terminal by step 5, transmitting terminal, and wherein after coding, optimum code book numbering is placed on Cyclic Prefix foremost.
Step 6, receiving terminal are first decoded to optimum code book numbering, find corresponding code book, utilize this code book to search corresponding data by the mode of table look-up (i.e. code book collection), complete de-quantization and AGC factor recovery process.
Embodiment three
Based on the inventive concept same with said method, additionally provide a kind of data compression device based on Lloyd-Max quantizer in the embodiment of the present invention, as shown in Figure 5, this equipment comprises:
Obtaining module 11, for utilizing Lloyd-Max quantizer to quantize input signal, obtaining the code book that described input signal is corresponding;
Quantization modules 12, for quantizing described input signal by described code book;
Sending module 13, for sending to receiving terminal by the input signal after quantification.
Described acquisition module 11, specifically for determining the distribution character of described input signal, and the training sequence that structure is corresponding with the distribution character of described input signal;
Utilize described Lloyd-Max quantizer to quantize described training sequence, obtain the code book that described input signal is corresponding.
Described acquisition module 11, is further used for the input signal in predetermined period T to carry out buffer memory, and adds up the distribution character of the input signal of buffer memory in described predetermined period T.
Described acquisition module 11, specifically for the result of carrying out quantizing based on described Lloyd-Max quantizer, inquires about the code book collection safeguarded in advance, and concentrates the code book selecting described input signal corresponding from described code book.
Described acquisition module 11, also for obtaining code book subscript corresponding to described input signal in described code book.
Described sending module 13, also for the numbering of described code book subscript and described code book is sent to described receiving terminal; Utilize the numbering of described code book subscript and described code book to inquire about the code book collection safeguarded in advance by described receiving terminal, and utilize Query Result to process the input signal after quantification.
Timestamp under described sending module 13 sends described code book, determines to send target bit wide B under described code book based on the size M of described code book, wherein,
.
When described sending module 13 sends the numbering of described code book, coding protection is carried out to the numbering of described code book.
When described sending module 13 sends the numbering of described code book subscript and described code book, the numbering of described code book subscript and described code book is placed on Cyclic Prefix, or, be placed on the position after data are punched.
This equipment also comprises:
Adjusting module 14, for carrying out power and/or amplitude adjustment to described input signal.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.