Method and device for analyzing data
A data analysis and data technology, applied in the field of data processing, can solve problems such as low efficiency of software systems, low efficiency, slow response of full-graphic advanced analysis software systems, etc., and achieve the effect of alleviating excessive loading time and improving analysis efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] The embodiment of the present invention provides a data analysis method, including:
[0052] Read the configuration file, and obtain the number of analog channels A_count and the number of state channels D_count of each sampling point from the configuration file;
[0053] Divide the data in the data file into M data blocks according to the preset data block size block_size, where M is a positive integer;
[0054] Create a dynamic buffer buf with a size of block_size;
[0055] Create a BLOCK queue composed of N shared analysis structure BLOCKs, and the size of each BLOCK is block_size;
[0056] Sequentially read a data block from the data file and store it in the buf;
[0057] Query whether there is an empty BLOCK in the BLOCK queue, if so, store the data block in the buf in the empty BLOCK, if not, wait in a loop;
[0058] Request a data block from the BLOCK queue, and analyze the obtained data block according to the A_count and D_count of each sampling point in the obtained data b...
Embodiment 2
[0088] The embodiment of the present invention provides another data analysis method according to the type of data file to be analyzed, including a reading process and an analysis process;
[0089] See figure 2 As shown, the reading process includes:
[0090] S200. Open the specified wave recorder and record the corresponding configuration file and data file;
[0091] S210. Read the file information in the configuration file, such as the number of analog channels A_count and the number of state channels D_count, the total number of samples Sam_count, and the file type of the data file;
[0092] S220. If the data file is a BINARY file, proceed to step S230; if the data file is an ASCII file, proceed to step S240;
[0093] S230. Define the size of the data block block_size according to the total number of sampling points Sam_count, the number of analog channels A_count, the number of state channels D_count, and the file type. For example, the block_size can accommodate m sampling points,...
Embodiment 3
[0130] The embodiment of the present invention provides a data analysis device, including:
[0131] The acquisition module is used to read a configuration file, and obtain the number of analog channels A_count and the number of state channels D_count of each sampling point from the configuration file;
[0132] The dividing module is used to divide the data in the data file into M data blocks according to the preset data block size block_size, where M is a positive integer;
[0133] The creation module is used to create a dynamic buffer buf with a size of block_size and a BLOCK queue composed of N shared parsing structure BLOCKs, and the size of each BLOCK is block_size, where N is a positive integer;
[0134] The reading module is used to sequentially read a data block from the data file into the buf, and query whether there is an empty BLOCK in the BLOCK queue, and if so, store the data block in the buf In the empty BLOCK, if not, wait in a loop;
[0135] The parsing module is used to...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com