Method for computing average value of data sequence and realizing apparatus therefor
A data sequence and calculation method technology, applied in the field of averaging long data sequences, to achieve the effects of reducing development costs, improving utilization, and improving memory efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The present invention proposes a device for calculating the average value of a sequence and a method for using the same, which are described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to illustrate the present invention, but not to limit the present invention. Those of ordinary skill in the relevant technical field can also make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, all Equivalent technical solutions also belong to the category of the present invention, and the patent protection scope of the present invention should be defined by each claim.
[0029] The key of the present invention is to adopt the hierarchical calculation method, so that the memory unit can be recycled, so not only the memory unit is greatly saved, but also the average value of multiple short sequences can be obtained. In this embodiment, the storage module is d...
Embodiment 2
[0050] This embodiment is used to illustrate the situation that each level of the storage module has more storage units. According to the present invention, the scheme of including more memory cells per level is not optimal, but it is feasible.
[0051] This embodiment adopts single-chip microcomputer to cooperate programming to realize, is used for the processor of the temperature detector in industrial detection, refer to Figure 4 , the entire storage module is divided into 15 levels, each level includes 4 storage units, corresponding to m i = m 1 = m k =4, the Kth level is the case of the 15th level storage unit.
[0052] The working principle of this embodiment is as follows:
[0053] When each level includes 4 storage units, for a sequence of length 16: d0, d1, d2, d3...d15
[0054] Read d0, d1, d2, and d3 into the first-level storage unit respectively, and then calculate the average value Ad1=(d0+d1+d2+d3) / 4 of these 4 data, and then output the result to the second...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 