Data conversion method based on new short floating point type data
Data conversion method based on new short floating point type data
 CN 105,634,499 A
 Filed: 12/30/2015
 Published: 06/01/2016
 Est. Priority Date: 12/30/2015
 Status: Active Application
First Claim
1. the data transfer device based on new short realcoded GA, it is characterised in that:
 including;
A, determining the variation that data are changed and the mapping algorithm adopted, the variation of described data conversion includes but not limited to compression, decompresses, storage and transmission;
B, adopting corresponding mapping algorithm new short realcoded GA is converted to other realcoded GA or other realcoded GA is converted to new short realcoded GA according to the variation determined, described new short realcoded GA is 8 short realcoded GA or 16 short realcoded GA.
Chinese PRB Reexamination
Abstract
The invention discloses a data conversion method based on new short floating point type data. The method comprises steps of determining a conversion form of data conversion and an adopted conversion algorithm, wherein the conversion form includes but is not limited to compression, decompression, storage and transmission; and according to the conversion form, adopting a corresponding conversion algorithm to convert new short floating point type data into other floating point type data or converting other floating point type data into new short floating point type data, wherein the new short floating point type data is 8bit short floating point type data or 16bit short floating point type data. According to the invention, the 8bit short floating point type data or the 16bit short floating point type data is used for data conversion, so compared with IEEE754 standard floating point type data, total bits are quite few; speed and efficiency of the data conversion are further improved; data storage amount and transmission cost are further reduced; and the method is advantaged by high compression rate and low storage amount, and especially suitable for lossy compression storage and transmission of data. The method can be widely applied in data processing field.

8 Citations
Data conversion method, multiplier, adder, terminal device and storage medium  
Patent #
CN 110,888,623 A
Filed 11/25/2019

Current Assignee

A kind of design method that the storage of quantum real signal is realized with quantum wire  
Patent #
CN 108,416,445 A
Filed 03/13/2018

Current Assignee

Data storage and transmission method in 64 multiplecore servers of one kind  
Patent #
CN 108,459,969 A
Filed 02/28/2018

Current Assignee

Efficient and lossless conversion of data transmission and storage  
Patent #
CN 1,437,738 A
Filed 12/29/2000

Current Assignee

Modeling for enumerative encoding  
Patent #
US 20060290539A1
Filed 06/23/2006

Current Assignee
N/A

METHOD AND SYSTEM FOR FAST CONTEXT BASED ADAPTIVE BINARY ARITHMETIC CODING  
Patent #
US 20070040711A1
Filed 08/22/2005

Current Assignee
N/A

Storage method of structure type data of realtime database  
Patent #
CN 101,923,569 A
Filed 07/09/2010

Current Assignee

Floatingpointtype data lossless compression method for scientific calculation  
Patent #
CN 105,024,702 A
Filed 07/08/2015

Current Assignee

10 Claims

1. the data transfer device based on new short realcoded GA, it is characterised in that:
 including;
A, determining the variation that data are changed and the mapping algorithm adopted, the variation of described data conversion includes but not limited to compression, decompresses, storage and transmission; B, adopting corresponding mapping algorithm new short realcoded GA is converted to other realcoded GA or other realcoded GA is converted to new short realcoded GA according to the variation determined, described new short realcoded GA is 8 short realcoded GA or 16 short realcoded GA.
 including;

2. a kind of data transfer device based on new short realcoded GA according to claim 1, it is characterised in that:
 the data form of described 8 short realcoded GA is;
sign bit is 1, exponent part totally 4, mantissa part totally 3;
If exponent be 0 and mantissa be 0, then the value of this number is �
�
0;
If exponent be 255 and mantissa be 0, then this number is infinite number;
Exponent be 255 and mantissa be not 0, then this number represents illegal number;
Negative numerical representation ranges for [416,1.953 �
�
10^{3}], positive numerical representation ranges for [1.953 �
�
10^{3}, 416];
Relative error is less than or equal to 6.22%.
 the data form of described 8 short realcoded GA is;

3. a kind of data transfer device based on new short realcoded GA according to claim 1, it is characterised in that:
 the data form of described 16 short realcoded GA is;
sign bit is 1, exponent part totally 8, mantissa part totally 7;
If exponent be 0 and mantissa be 0, then the value of this number is �
�
0;
If exponent be 15 and mantissa be 0, then this number is infinite number;
Exponent be 15 and mantissa be not 0, then this number represents illegal number;
Negative numerical representation ranges for [3.01 �
�
10^{38}, 1.401298 �
�
10^{45}], positive numerical representation ranges for [1.401298 �
�
10^{45}, 3.01 �
�
10^{38}];
Relative error is less than or equal to 1.05%.
 the data form of described 16 short realcoded GA is;

4. a kind of data transfer device based on new short realcoded GA according to Claims 2 or 3, it is characterised in that:
 other realcoded GA described is singleprecision floating point type data or the doubleprecision floating point type data of IEEE754 standard.

5. a kind of data transfer device based on new short realcoded GA according to claim 4, it is characterised in that:
 singleprecision floating point type data are converted to 8 short realcoded GA or 16 these steps of short realcoded GA by described step B, comprising;
B11, realcoded GA is read by turn according to the data form of integer; B12, utilize bit arithmetic, obtain the sign bit of singleprecision floating point type data, exponent and mantissa part respectively; B13, by shifting and intercept computing, it is thus achieved that value after exponent and mantissa part compression in singleprecision floating point type data; Value after the compression of the sign bit of singleprecision floating point type data, exponent and mantissa part is merged into 8 short realcoded GA or 16 short realcoded GA by B14, employing position or computing.
 singleprecision floating point type data are converted to 8 short realcoded GA or 16 these steps of short realcoded GA by described step B, comprising;

6. a kind of data transfer device based on new short realcoded GA according to claim 4, it is characterised in that:
 in described step B, 8 short realcoded GA are converted to singleprecision floating point this step of type data, comprising;
B21, by compression time data form from 8 short realcoded GA, intercept sign bit S, exponent part E and mantissa part M; B22, by the data form of IEEE754 standard, singleprecision floating point type data are backfilled, described singleprecision floating point type data are backfilled this step include; Sign bit S is filled directly into the 0th of singleprecision floating point type data first byte position; Mantissa part M is inserted singleprecision floating point type data the 9th to the 11st, and fill out 0 toward the 12nd of singleprecision floating point type data to the 31st; Calculate the exponent E '"'"' after decompression according to exponent part E, then the value of E '"'"' is inserted in the 1st to the 8th of singleprecision floating point type data, wherein, as E=0, E '"'"'=0;
When 1�
�
E�
�
254, E '"'"'=E+120;
As E=255, E '"'"'=255.
 in described step B, 8 short realcoded GA are converted to singleprecision floating point this step of type data, comprising;

7. a kind of data transfer device based on new short realcoded GA according to claim 4, it is characterised in that:
 16 short realcoded GA are converted to singleprecision floating point this step of type data by described step B, comprising;
B31, by compression time data form from 16 short realcoded GA, intercept sign bit S, exponent E and mantissa M; Singleprecision floating point type data are backfilled by B32, data form according to IEEE754 standard, described singleprecision floating point type data are backfilled this step include; Sign bit S is filled directly into the 0th of singleprecision floating point type data first byte position; Mantissa part M is inserted singleprecision floating point type data the 9th to the 15th, and fill out 0 toward the 16th of singleprecision floating point type data to the 31st; Calculate the exponent E '"'"' after decompression according to exponent part E, then the value of E '"'"' is inserted in the 1st to the 8th of singleprecision floating point type data, wherein, E '"'"'=E.
 16 short realcoded GA are converted to singleprecision floating point this step of type data by described step B, comprising;

8. a kind of data transfer device based on new short realcoded GA according to claim 6, it is characterised in that:
 8 short realcoded GA are converted to doubleprecision floating point this step of type data by described step B, itself particularly as follows;
First 8 short realcoded GA are converted to singleprecision floating point type data, then pass through unsteady state operation and singleprecision floating point type data are converted directly into doubleprecision floating point type data; Or from 8 short realcoded GA, first intercept sign bit S, exponent part E and mantissa part M, then according to the data form of IEEE754 standard, doubleprecision floating point type data are backfilled, doubleprecision floating point type data described backfilled this step and include by the doubleprecision floating point type data after being changed; Sign bit S is filled directly into the 0th of singleprecision floating point type data first byte position; Mantissa part M is inserted singleprecision floating point type data the 12nd to the 14th, and fill out 0 toward the 15th of doubleprecision floating point type data to the 63rd; Calculate the exponent E '"'"' after decompression according to exponent part E, then the value of E '"'"' is inserted in the 1st to the 11st of doubleprecision floating point type data, wherein, as E=0, E '"'"'=0;
When 1�
�
E�
�
254, E '"'"'=E+120;
As E=255, E '"'"'=255.
 8 short realcoded GA are converted to doubleprecision floating point this step of type data by described step B, itself particularly as follows;

9. a kind of data transfer device based on new short realcoded GA according to claim 5, it is characterised in that:
If desired singleprecision floating point type data are converted to 8 short realcoded GA, then adopt conversion formula y=f_{8}(x) or y=f_{8ex}X singleprecision floating point type data x is converted into 8 short realcoded GA y by ();
If desired singleprecision floating point type data are converted to 16 short realcoded GA, then adopt conversion formula y=f_{16}(x) or y=f_{16ex}X singleprecision floating point type data x is converted into 16 short realcoded GA y by (), wherein, and function f_{8}(x) and function f_{16}The plaintext transfer function of (x) respectively 8 short realcoded GA and 16 short realcoded GA, function f_{8ex}(x) and function f_{16ex}The accurate version conversion function of (x) respectively 8 short realcoded GA and 16 short realcoded GA;
Function f_{8}(x) only the 9th to the 11st mantissa determining 8 short realcoded GA y according to singleprecision floating point type data x, and function f_{8ex}X () then determines front 2 and the 11st and the 12nd determine data y mantissa last 1 according to data x of data y mantissa according to the 9th of data x and the 10th;
Function f_{16}(x) only the 9th to the 15th mantissa determining 8 short realcoded GA y according to singleprecision floating point type data x, and function f_{16ex}X () is then according to the 9th of data x to the 14th front 6 and the 15th and the 16th determine data y mantissa last 1 according to data x determining data y mantissa.

10. a kind of data transfer device based on new short realcoded GA according to any one of claim 19, it is characterised in that:
 described step B is further comprising the steps of when by compressing and converting algorithm other realcoded GA being converted to new short realcoded GA;
New short realcoded GA is carried out binary format compact storage, generates binary data file; The compact token of registration binary data file.
 described step B is further comprising the steps of when by compressing and converting algorithm other realcoded GA being converted to new short realcoded GA;
Specification(s)