Processing method and device of condition statistics type needs in satellite-borne software
The invention discloses a processing method and device of condition statistics type needs in satellite-borne software. The processing method comprises the following steps of (1) creating and initiating an N-dimensional array according to the period times N meeting the given conditions in the total p...
Saved in:
Main Authors | , , , |
---|---|
Format | Patent |
Language | English |
Published |
04.02.2015
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a processing method and device of condition statistics type needs in satellite-borne software. The processing method comprises the following steps of (1) creating and initiating an N-dimensional array according to the period times N meeting the given conditions in the total period number M needing statistics, wherein the array stores period serial numbers meeting the given conditions according to the sequence mode; (2) updating the array, and enabling all non-0 elements in the array to be arrayed on the front row of the array; (3) judging whether the corresponding condition of the current period meets the given conditions, if so, updating the first 0 element value in the array into the total period number M; (4) acquiring the number C of the non-0 elements in the array; and (5) judging whether the number C of the non-0 elements meets the preset condition statistical type need, if so, executing preset actions, and if not, returning to execute the step (2). The processing method and device disclosed by the invention have the advantages that the memory can be greatly saved and the consumed resource of a processor is fewer. |
---|---|
Bibliography: | Application Number: CN20141560661 |