CN113821178A - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN113821178A
CN113821178A CN202111389572.XA CN202111389572A CN113821178A CN 113821178 A CN113821178 A CN 113821178A CN 202111389572 A CN202111389572 A CN 202111389572A CN 113821178 A CN113821178 A CN 113821178A
Authority
CN
China
Prior art keywords
data
datum
current
basic
base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111389572.XA
Other languages
Chinese (zh)
Inventor
熊晓斌
张照猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AVIC INTERNATIONAL E-BUSINESS Inc
Original Assignee
AVIC INTERNATIONAL E-BUSINESS Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AVIC INTERNATIONAL E-BUSINESS Inc filed Critical AVIC INTERNATIONAL E-BUSINESS Inc
Priority to CN202111389572.XA priority Critical patent/CN113821178A/en
Publication of CN113821178A publication Critical patent/CN113821178A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/50Adding; Subtracting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Mathematical Optimization (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a data processing method and a data processing system. The invention sets the first reference data and the second reference data corresponding to each basic data in the data to be processed, respectively calculates the difference value of subtracting the corresponding second reference data from each basic data, the digit of the difference value is less than that of the basic data, transmits or stores the difference value, and can restore each basic data according to the first reference data and the difference value when the data to be processed needs to be restored, thereby greatly reducing the data storage capacity and the transmission quantity.

Description

Data processing method and system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and system.
Background
The electrocardiogram signal has important reference value in the diagnosis and research of cardiovascular diseases, and doctors hope to store the electrocardiogram data of patients in full for comparison and scientific research of the electrocardiogram of the patients at different periods. However, the backup and storage of the electrocardiographic data will occupy a very large resource, especially in the portable medical monitoring system, which will directly increase the cost of the system. In addition, in the process of transmitting electrocardiogram data through the internet of things device, because the electrocardiogram data uploading frequency is high and the data volume is large, the data uploading is incomplete or the uploading efficiency is not high, and even the flow resources are wasted.
Disclosure of Invention
The invention provides a data processing method and a data processing system, and solves the technical problem that the storage capacity and the transmission capacity of electrogram data in the center in the prior art are large.
On one hand, the invention provides the following technical scheme:
a method of data processing, comprising:
acquiring data to be processed, wherein the data to be processed comprises a plurality of basic data which are arranged according to a fixed sequence, and the number of bits of each basic data is the same;
setting first reference data and second reference data corresponding to each piece of basic data, wherein the first reference data and the second reference data meet any one of the following conditions: the second reference data corresponding to each piece of basic data is the same as the first reference data, the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the last piece of basic data of the current piece of basic data, or the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the next piece of basic data of the current piece of basic data;
respectively calculating a difference value of subtracting the second reference data corresponding to each basic data from each basic data, wherein the digit of the difference value is less than that of the basic data;
performing preset processing on the difference, wherein the preset processing comprises transmission or storage;
and if the data to be processed needs to be restored, restoring each piece of basic data according to the first reference data and the difference value.
Preferably, the first reference data is any one of the basic data.
Preferably, the second reference data corresponding to each of the basic data is the same as the first reference data, and the first reference data is a minimum value of the basic data.
Preferably, if the data to be processed needs to be restored, restoring each piece of the basic data according to the first reference data and the difference value includes:
if the second reference data corresponding to each piece of basic data is the same as the first reference data, taking the sum of the difference corresponding to the current piece of basic data and the first reference data as the current piece of basic data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located before the first datum data, calculating a first sum of the difference values corresponding to all the base data between the next base data of the current base data and the first datum data, and taking the difference of subtracting the first sum from the first datum data as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located behind the first datum data, calculating a second sum of the difference values corresponding to all the base data between the next base data of the first datum data and the current base data, and taking the sum of the first datum data and the second sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located before the first datum data, calculating a third sum of the difference values corresponding to all the base data between the last base data of the first datum data and the current base data, and taking the sum of the first datum data and the third sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located behind the first datum data, calculating a fourth sum of the difference values corresponding to all the base data between the last base data of the current base data and the first datum data, and taking the difference of subtracting the fourth sum from the first datum data as the current base data.
On the other hand, the invention also provides the following technical scheme:
a data processing system comprising:
the data processing device comprises a data acquisition module, a data processing module and a data processing module, wherein the data acquisition module is used for acquiring data to be processed, the data to be processed comprises a plurality of basic data which are arranged according to a fixed sequence, and the digits of the basic data are the same;
a data setting module, configured to set first reference data and second reference data corresponding to each piece of the basic data, where the first reference data and the second reference data satisfy any one of the following: the second reference data corresponding to each piece of basic data is the same as the first reference data, the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the last piece of basic data of the current piece of basic data, or the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the next piece of basic data of the current piece of basic data;
the data calculation module is used for calculating the difference value of subtracting the second reference data corresponding to each basic data from each basic data, and the digit of the difference value is less than that of the basic data;
the data processing module is used for carrying out preset processing on the difference value, and the preset processing comprises transmission or storage;
and the data reduction module is used for reducing each piece of basic data according to the first datum data and the difference value if the data to be processed needs to be reduced.
Preferably, the first reference data is any one of the basic data.
Preferably, the second reference data corresponding to each of the basic data is the same as the first reference data, and the first reference data is a minimum value of the basic data.
Preferably, the data restoring module is further configured to:
if the second reference data corresponding to each piece of basic data is the same as the first reference data, taking the sum of the difference corresponding to the current piece of basic data and the first reference data as the current piece of basic data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located before the first datum data, calculating a first sum of the difference values corresponding to all the base data between the next base data of the current base data and the first datum data, and taking the difference of subtracting the first sum from the first datum data as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located behind the first datum data, calculating a second sum of the difference values corresponding to all the base data between the next base data of the first datum data and the current base data, and taking the sum of the first datum data and the second sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located before the first datum data, calculating a third sum of the difference values corresponding to all the base data between the last base data of the first datum data and the current base data, and taking the sum of the first datum data and the third sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located behind the first datum data, calculating a fourth sum of the difference values corresponding to all the base data between the last base data of the current base data and the first datum data, and taking the difference of subtracting the fourth sum from the first datum data as the current base data.
On the other hand, the invention also provides the following technical scheme:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing any of the above data processing methods when executing the program.
On the other hand, the invention also provides the following technical scheme:
a computer readable storage medium, which when executed performs any of the above data processing methods.
One or more technical schemes provided by the invention at least have the following technical effects or advantages:
the method comprises the steps of setting first reference data and second reference data corresponding to each basic data in data to be processed, calculating a difference value of subtracting the corresponding second reference data from each basic data, wherein the digit of the difference value is smaller than that of the basic data, transmitting or storing the difference value, and restoring each basic data according to the first reference data and the difference value when the data to be processed needs to be restored, so that data storage capacity and transmission capacity are greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a data processing system according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data processing method and a data processing system, and solves the technical problem that the storage capacity and the transmission capacity of electrogram data in the center are large in the prior art.
In order to better understand the technical scheme of the invention, the technical scheme of the invention is described in detail in the following with the accompanying drawings and specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
As shown in fig. 1, a data processing method of the present embodiment includes:
step S1, acquiring data to be processed, wherein the data to be processed comprises a plurality of basic data arranged according to a fixed sequence, and the digits of each basic data are the same;
step S2, setting first reference data and second reference data corresponding to each piece of basic data, the first reference data and the second reference data satisfying any one of the following: the second datum data corresponding to each datum data is the same as the first datum data, the first datum data is any one datum data, and the second datum data corresponding to the current datum data is the last datum data of the current datum data, or the first datum data is any one datum data, and the second datum data corresponding to the current datum data is the next datum data of the current datum data;
step S3, respectively calculating the difference value of each basic data minus the corresponding second reference data, wherein the digit of the difference value is less than that of the basic data;
step S4, performing preset processing on the difference, wherein the preset processing comprises transmission or storage;
in step S5, if the data to be processed needs to be restored, each piece of basic data is restored according to the first reference data and the difference.
In this embodiment, a part of the electrocardiographic data is used as the data to be processed, and the format of each basic data in the electrocardiographic data can be regarded as fixed, for example, five digits form a basic data, and the size of each basic data is similar.
In step S1, it is assumed that the data to be processed is 10000; 10010; 10050; 10000; 10030; 10005, each number or semicolon is represented by one byte, the data to be processed includes 6 basic data, and the number of bits of each basic data is 5. If the 6 basic data are processed according to the conventional transmission and storage method, 35 bytes need to be transmitted or stored.
In step S2, if the second reference data corresponding to each piece of basic data is the same as the first reference data, the first reference data may be any piece of basic data, for example, 10050, and the second reference data corresponding to each piece of basic data is 10050; the first reference data may not be the basic data, such as 9000, and each basic data corresponds to 9000 of the second reference data. The first datum data is any one datum data and the second datum data corresponding to the current datum data is the last datum data of the current datum data, if the first datum data is 10050, if the current datum data is 10010, the second datum data corresponding to the current datum data is 10000; if the current basic data is 10050, the second reference data corresponding to the current basic data is 10010. The first datum data is any one datum data, and the second datum data corresponding to the current datum data is the next datum data of the current datum data, if the first datum data is 10050, if the current datum data is 10010, the second datum data corresponding to the current datum data is 10050; if the current basic data is 10050, the second reference data corresponding to the current basic data is 10000.
In step S3, if the second reference data corresponding to each piece of basic data is the same as the first reference data, and if the first reference data is 10050, the difference between the basic data and the corresponding second reference data is-50 in sequence; -40; 0; -50; -20; -45; if the first reference data is 9000, the difference value obtained by subtracting the corresponding second reference data from the basic data is sequentially 1000; 1010; 1050; 1000, parts by weight; 1030; 1005. if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the last datum data of the current datum data, and the first datum data is 10050, the difference value of subtracting the corresponding second datum data from the second datum data to the sixth datum data is 10 in sequence; 40; -50; 30, of a nitrogen-containing gas; 25 (first base data 10000 has no corresponding difference). If the first datum data is any one datum data, the second datum data corresponding to the current datum data is the next datum data of the current datum data, and the first datum data is 10050, the difference value of subtracting the corresponding second datum data from the first datum data to the fifth datum data is-10 in sequence; -40; 50; -30; 25 (sixth base data 10005 has no corresponding difference).
In step S4, when all the differences are transmitted or stored, the total number of bytes to be processed in step S3 is 22, 29, 16, 17, which greatly reduces the data storage and transmission amount.
Step S5 specifically includes:
if the second datum data corresponding to each datum data is the same as the first datum data, taking the sum of the difference value corresponding to the current datum data and the first datum data as the current datum data; for step S3: if the current basic data is 10010, the difference value corresponding to the current basic data is-40, that is, the current basic data is 10050-40= 10010; in step S3, if the current basic data is 10010, the difference corresponding to the current basic data is 1010, and the current basic data is 9000+1010= 10010;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the last datum data of the current datum data, and the current datum data is positioned in front of the first datum data, calculating a first sum of differences corresponding to all datum data between the next datum data of the current datum data and the first datum data, and taking the difference of subtracting the first sum from the first datum data as the current datum data; for step S3, if the current basic data is 10000, all basic data between the next basic data of the current basic data and the first reference data include 10010 and 10050, and the first sum is 10+40=50, that is, the current basic data is 10050-50= 10000;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the last datum data of the current datum data, and the current datum data is positioned behind the first datum data, calculating a second sum of differences corresponding to all datum data between the next datum data of the first datum data and the current datum data, and taking the sum of the first datum data and the second sum as the current datum data; for step S3, if the current basic data is 10030, all basic data between the next basic data of the first basic data and the current basic data include 10000 and 10030, and the second sum is-50 +30= -20, that is, the current basic data is 10050-20= 10030;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the next datum data of the current datum data, and the current datum data is positioned in front of the first datum data, calculating a third sum of differences corresponding to all datum data between the last datum data of the first datum data and the current datum data, and taking the sum of the first datum data and the third sum as the current datum data; for the fourth step in step S3, if the current basic data is 10000, all basic data between the last basic data of the first reference data and the current basic data include 10010 and 10000, and the third sum is-40 to 10= -50, that is, the current basic data is 10050 to 50= 10000;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the next datum data of the current datum data, and the current datum data is positioned behind the first datum data, calculating a fourth sum of differences corresponding to all datum data between the last datum data of the current datum data and the first datum data, and taking the difference of subtracting the fourth sum from the first datum data as the current datum data; for step S3, if the current basic data is 10030, all basic data between the last basic data of the current basic data and the first reference data include 10000 and 10050, and the fourth sum is 50-30=20, that is, the current basic data is 10050-20= 10030.
In this way, in the embodiment, the first reference data and the second reference data corresponding to each basic data in the to-be-processed data are set, the difference value obtained by subtracting the corresponding second reference data from each basic data is calculated respectively, the number of bits of the difference value is smaller than that of the basic data, the difference value is transmitted or stored, and each basic data can be restored according to the first reference data and the difference value when the to-be-processed data need to be restored, so that the data storage capacity and the transmission capacity are greatly reduced.
In this embodiment, if the second reference data corresponding to each piece of basic data is the same as the first reference data, only one summation operation needs to be performed when each piece of basic data is restored, so that the calculation amount of data restoration is reduced.
In view of the fact that when the second reference data corresponding to each piece of basic data is the same as the first reference data, the first reference data may be any one of the basic data or data other than the basic data, but if the first reference data is set as data other than the basic data, the first reference data needs to satisfy the requirement that the number of bits of the difference is smaller than the number of bits of the basic data, and the setting of the first reference data is difficult.
Considering that the number of bits of the difference between two pieces of electrocardiographic data can be considered to be fixed, such as 2 bits (positive number) or 3 bits (negative number), and the data storage amount and the transmission amount increase when the difference is a negative number, in this embodiment, it is preferable that the second reference data corresponding to each piece of base data is the same as the first reference data, and the first reference data is the minimum value of the base data, so that the difference is a non-negative number, and the data storage amount and the transmission amount are further reduced.
As shown in fig. 2, the present embodiment further provides a data processing system, including:
the data acquisition module is used for acquiring data to be processed, the data to be processed comprises a plurality of basic data which are arranged according to a fixed sequence, and the digits of each basic data are the same;
the data setting module is used for setting first reference data and second reference data corresponding to each piece of basic data, and the first reference data and the second reference data meet any one of the following conditions: the second datum data corresponding to each datum data is the same as the first datum data, the first datum data is any one datum data, and the second datum data corresponding to the current datum data is the last datum data of the current datum data, or the first datum data is any one datum data, and the second datum data corresponding to the current datum data is the next datum data of the current datum data;
the data calculation module is used for calculating the difference value of subtracting the corresponding second reference data from each basic data, and the digit of the difference value is less than that of the basic data;
the data processing module is used for carrying out preset processing on the difference value, and the preset processing comprises transmission or storage of the difference value;
and the data reduction module is used for reducing each basic data according to the first reference data and the difference value if the data to be processed needs to be reduced.
The data restoration module is further configured to:
if the second datum data corresponding to each datum data is the same as the first datum data, taking the sum of the difference value corresponding to the current datum data and the first datum data as the current datum data;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the last datum data of the current datum data, and the current datum data is positioned in front of the first datum data, calculating a first sum of differences corresponding to all datum data between the next datum data of the current datum data and the first datum data, and taking the difference of subtracting the first sum from the first datum data as the current datum data;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the last datum data of the current datum data, and the current datum data is positioned behind the first datum data, calculating a second sum of differences corresponding to all datum data between the next datum data of the first datum data and the current datum data, and taking the sum of the first datum data and the second sum as the current datum data;
if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the next datum data of the current datum data, and the current datum data is positioned in front of the first datum data, calculating a third sum of differences corresponding to all datum data between the last datum data of the first datum data and the current datum data, and taking the sum of the first datum data and the third sum as the current datum data;
and if the first datum data is any one datum data, the second datum data corresponding to the current datum data is the next datum data of the current datum data, and the current datum data is positioned behind the first datum data, calculating a fourth sum of differences corresponding to all datum data between the last datum data of the current datum data and the first datum data, and taking the difference of subtracting the fourth sum from the first datum data as the current datum data.
In this embodiment, the first reference data and the second reference data corresponding to each basic data in the to-be-processed data are set, the difference value obtained by subtracting the corresponding second reference data from each basic data is calculated, the number of bits of the difference value is smaller than the number of bits of the basic data, the difference value is transmitted or stored, and each basic data can be restored according to the first reference data and the difference value when the to-be-processed data need to be restored, so that the data storage capacity and the transmission capacity are greatly reduced.
Furthermore, the first datum data is any one datum data, and the first datum data does not need to be set additionally, so that the difficulty in setting the first datum data is avoided being improved.
Preferably, the second reference data corresponding to each basic data is the same as the first reference data, and the first reference data is the minimum value of the basic data, so that the difference values are all non-negative numbers, and the data storage capacity and the transmission capacity are further reduced
Based on the same inventive concept as the data processing method described above, the present embodiment further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of any one of the data processing methods described above are implemented.
Where a bus architecture (represented by a bus) is used, the bus may comprise any number of interconnected buses and bridges that link together various circuits including one or more processors, represented by a processor, and memory, represented by a memory. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used for storing data used by the processor in performing operations.
Since the electronic device described in this embodiment is an electronic device used for implementing the data processing method in the embodiment of the present invention, based on the data processing method described in this embodiment of the present invention, a person skilled in the art can understand the specific implementation manner of the electronic device in this embodiment and various variations thereof, so that a detailed description of how to implement the method in the embodiment of the present invention by the electronic device is omitted here. The electronic device used by the person skilled in the art to implement the data processing method in the embodiment of the present invention is within the scope of the present invention.
Based on the same inventive concept as the data processing method, the invention also provides a computer readable storage medium, which when executed realizes any one of the data processing methods.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A data processing method, comprising:
acquiring data to be processed, wherein the data to be processed comprises a plurality of basic data which are arranged according to a fixed sequence, and the number of bits of each basic data is the same;
setting first reference data and second reference data corresponding to each piece of basic data, wherein the first reference data and the second reference data meet any one of the following conditions: the second reference data corresponding to each piece of basic data is the same as the first reference data, the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the last piece of basic data of the current piece of basic data, or the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the next piece of basic data of the current piece of basic data;
respectively calculating a difference value of subtracting the second reference data corresponding to each basic data from each basic data, wherein the digit of the difference value is less than that of the basic data;
performing preset processing on the difference, wherein the preset processing comprises transmission or storage;
and if the data to be processed needs to be restored, restoring each piece of basic data according to the first reference data and the difference value.
2. The data processing method according to claim 1, wherein the first reference data is any one of the basic data.
3. The data processing method according to claim 1, wherein the second reference data corresponding to each of the base data is the same as the first reference data, and the first reference data is a minimum value of the base data.
4. The data processing method according to claim 1, wherein, if the data to be processed needs to be restored, restoring each of the basic data according to the first reference data and the difference value comprises:
if the second reference data corresponding to each piece of basic data is the same as the first reference data, taking the sum of the difference corresponding to the current piece of basic data and the first reference data as the current piece of basic data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located before the first datum data, calculating a first sum of the difference values corresponding to all the base data between the next base data of the current base data and the first datum data, and taking the difference of subtracting the first sum from the first datum data as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located behind the first datum data, calculating a second sum of the difference values corresponding to all the base data between the next base data of the first datum data and the current base data, and taking the sum of the first datum data and the second sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located before the first datum data, calculating a third sum of the difference values corresponding to all the base data between the last base data of the first datum data and the current base data, and taking the sum of the first datum data and the third sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located behind the first datum data, calculating a fourth sum of the difference values corresponding to all the base data between the last base data of the current base data and the first datum data, and taking the difference of subtracting the fourth sum from the first datum data as the current base data.
5. A data processing system, comprising:
the data processing device comprises a data acquisition module, a data processing module and a data processing module, wherein the data acquisition module is used for acquiring data to be processed, the data to be processed comprises a plurality of basic data which are arranged according to a fixed sequence, and the digits of the basic data are the same;
a data setting module, configured to set first reference data and second reference data corresponding to each piece of the basic data, where the first reference data and the second reference data satisfy any one of the following: the second reference data corresponding to each piece of basic data is the same as the first reference data, the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the last piece of basic data of the current piece of basic data, or the first reference data is any one piece of basic data, and the second reference data corresponding to the current piece of basic data is the next piece of basic data of the current piece of basic data;
the data calculation module is used for calculating the difference value of subtracting the second reference data corresponding to each basic data from each basic data, and the digit of the difference value is less than that of the basic data;
the data processing module is used for carrying out preset processing on the difference value, and the preset processing comprises transmission or storage;
and the data reduction module is used for reducing each piece of basic data according to the first datum data and the difference value if the data to be processed needs to be reduced.
6. The data processing system of claim 5, wherein the first baseline data is any one of the base data.
7. The data processing system of claim 5, wherein the second baseline data corresponding to each of the base data is the same as the first baseline data, the first baseline data being a minimum value of the base data.
8. The data processing system of claim 5, wherein the data reduction module is further to:
if the second reference data corresponding to each piece of basic data is the same as the first reference data, taking the sum of the difference corresponding to the current piece of basic data and the first reference data as the current piece of basic data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located before the first datum data, calculating a first sum of the difference values corresponding to all the base data between the next base data of the current base data and the first datum data, and taking the difference of subtracting the first sum from the first datum data as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the last base data of the current base data, and the current base data is located behind the first datum data, calculating a second sum of the difference values corresponding to all the base data between the next base data of the first datum data and the current base data, and taking the sum of the first datum data and the second sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located before the first datum data, calculating a third sum of the difference values corresponding to all the base data between the last base data of the first datum data and the current base data, and taking the sum of the first datum data and the third sum as the current base data;
if the first datum data is any one of the base data, the second datum data corresponding to the current base data is the next base data of the current base data, and the current base data is located behind the first datum data, calculating a fourth sum of the difference values corresponding to all the base data between the last base data of the current base data and the first datum data, and taking the difference of subtracting the fourth sum from the first datum data as the current base data.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the data processing method of any one of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium, when executed, implements the data processing method of any of claims 1-4.
CN202111389572.XA 2021-11-23 2021-11-23 Data processing method and system Pending CN113821178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111389572.XA CN113821178A (en) 2021-11-23 2021-11-23 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111389572.XA CN113821178A (en) 2021-11-23 2021-11-23 Data processing method and system

Publications (1)

Publication Number Publication Date
CN113821178A true CN113821178A (en) 2021-12-21

Family

ID=78919631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111389572.XA Pending CN113821178A (en) 2021-11-23 2021-11-23 Data processing method and system

Country Status (1)

Country Link
CN (1) CN113821178A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104137548A (en) * 2011-12-27 2014-11-05 索尼电脑娱乐公司 Moving image compressing apparatus, image processing apparatus, moving image compressing method, image processing method, and data structure of moving image compressed file
CN109040047A (en) * 2018-07-25 2018-12-18 中国石油天然气股份有限公司 Indicator card data compression, transmission method and device
CN109981111A (en) * 2019-03-28 2019-07-05 杭州即得科技有限公司 A kind of method, apparatus and storage electronic equipment of data compression coding
CN110633277A (en) * 2019-08-13 2019-12-31 平安科技(深圳)有限公司 Time sequence data storage method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104137548A (en) * 2011-12-27 2014-11-05 索尼电脑娱乐公司 Moving image compressing apparatus, image processing apparatus, moving image compressing method, image processing method, and data structure of moving image compressed file
CN109040047A (en) * 2018-07-25 2018-12-18 中国石油天然气股份有限公司 Indicator card data compression, transmission method and device
CN109981111A (en) * 2019-03-28 2019-07-05 杭州即得科技有限公司 A kind of method, apparatus and storage electronic equipment of data compression coding
CN110633277A (en) * 2019-08-13 2019-12-31 平安科技(深圳)有限公司 Time sequence data storage method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106575251B (en) Speculative data processing of streaming data
CN114116842B (en) Multidimensional medical data real-time acquisition method and device, electronic equipment and storage medium
CN113656501B (en) Data reading method, device, equipment and storage medium
CN110290166A (en) Across company-data exchange method, system, device and readable storage medium storing program for executing
CN103390007A (en) Method and device for data acquisition
CN110505655A (en) Data command processing method, storage medium and bluetooth shield
CN112148713B (en) Method and device for data migration between heterogeneous databases
CN113821178A (en) Data processing method and system
CN108920601A (en) A kind of data matching method and device
CN109213922B (en) Method and device for sequencing search results
CN110515967B (en) Spark calculation framework-based data analysis method and electronic equipment
CN111260070B (en) Operation method, device and related product
CN109829016B (en) Data synchronization method and device
CN115328892B (en) Business form data structure processing method, system, electronic device and medium
CN110827979A (en) Prediction system and method based on block chain
JPS61500990A (en) Floating-point conditional code generation method
CN110781194B (en) Application program table data processing method and device, electronic equipment and storage medium
CN113515495B (en) Data file distribution method and device, intelligent equipment and computer storage medium
CN111176903B (en) Commodity data recovery method, system, equipment and readable storage medium
CN116756460B (en) Combined data acquisition method and device and related equipment
CN114595486B (en) Zero data identification method and device, readable storage medium and electronic equipment
JP2003122410A (en) Method for causing controller to perform computation
CN209962284U (en) Multiplier, device, chip and electronic equipment
CN110928677B (en) Virtual resource calculation method and device based on block chain, electronic equipment and storage medium
US11036828B1 (en) Identifying checksum mechanisms using linear equations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211221

RJ01 Rejection of invention patent application after publication