Page data display method, device, electronic device, and storage medium
By generating target sequences and interpolation sequences and simulating real-time display effects, the problems of high load and high cost in existing technologies are solved, and realistic real-time display and improved user experience are achieved.
Patent Information
- Application Number
- CN202310447851.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-24
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2043-04-24
AI Technical Summary
Existing technologies require a lot of computing power and bandwidth to achieve real-time data display, resulting in high costs and high loads. Especially in the client-server architecture, the server is under great pressure and the data synchronization cost is high.
By generating a target sequence and utilizing the display interval and target duration to obtain and display a subsequence of the data sequence, a real-time display effect is simulated, rather than a strict real-time display, thereby reducing the communication pressure between the server and the client. Interpolation sequences and random perturbations are used to increase the variability of data elements and improve the display effect.
While reducing the burden on servers and clients, it achieves realistic real-time display effects, improves user experience and user stickiness, and saves data synchronization costs.
Smart Images

Figure CN116628368B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of multimedia interaction technology, and in particular to a method, device, electronic device, and storage medium for displaying page data. Background Art
[0002] Currently, many applications can display data in real time on their interfaces, allowing users to fully observe the data's real-time dynamics. However, this often places stringent demands on the performance and technology of the machines involved. For example, using a client-server architecture for real-time display places a significant load on the server, and data collection, processing, and synchronization require significant computing power and bandwidth. This translates to a significant cost for achieving real-time display, reflected in various aspects including technical, hardware, and maintenance costs. Summary of the Invention
[0003] The present disclosure provides a method, device, electronic device, and storage medium for displaying page data, which reduces the cost required for presenting real-time display effects. The technical solutions of the present disclosure are as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a method for displaying page data is provided, the method comprising:
[0005] Acquire a first data sequence at a first moment, where the first data sequence indicates a change pattern of the target object within a target duration ΔT;
[0006] At time t 1start Display the first data element in the first target sequence, the time t 1start is any moment after the first moment;
[0007] When the first data element in the first target sequence is continuously displayed for a time period reaching the display interval Δt, displaying the second data element in the first target sequence;
[0008] At time t 1end Display the last data element in the first target sequence, t 1end= t 1start +ΔT;
[0009] The first target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the first data sequence is a true subsequence of the first target sequence, and the first data element in the first target sequence is the same as the first data element in the first data sequence, and the last data element in the first target sequence is the same as the last data element in the first data sequence.
[0010] In this method, the first target sequence is generated by the first data sequence obtained at the first moment. Therefore, the data elements in the first target sequence are either real data collected before the first moment or non-real data generated by simulation. Therefore, the sequential display of data elements based on the first target sequence is not a real-time display in the strict sense. However, it can present a very realistic real-time display effect on the front end on the basis of fully respecting the change law of the target object within the target time length ΔT. Obviously, such a technical solution can significantly reduce the communication pressure between the server and the client, and save the cost of data synchronization. At the same time, it can also achieve real-time display effects on the client, which not only presents the change law of the data, but also improves the user experience and increases user stickiness.
[0011] In an exemplary embodiment, after displaying the second data element in the first target sequence, the method further comprises:
[0012] Continuously displaying the data elements in the first target sequence When the duration reaches the display interval Δt, the data elements in the first target sequence are displayed. i is greater than or equal to 2 and less than the sequence length of the first target sequence - 1.
[0013] In this method, each data element in the first target sequence is displayed sequentially and at intervals to form a continuous high-frequency real-time display effect, which can realistically simulate the real-time display effect without adding any additional burden to the server and terminal equipment.
[0014] In an exemplary embodiment, displaying the second data element in the first target sequence includes:
[0015] In a case where the second data element is smaller than the first data element, displaying the second data element in a first display manner;
[0016] In the case where the second data element is larger than the first data element, displaying the second data element in a second display manner;
[0017] The first display mode is different from the second display mode.
[0018] In this method, the second data element has a different size relationship with the first data element, and the display effect is also different. This allows users to more intuitively understand the change pattern of the target object, improves the intuitiveness of the change pattern display and the richness of the picture, enhances the interactive fun, and increases user stickiness.
[0019] In an exemplary embodiment, displaying the second data element in the first target sequence includes:
[0020] A second display position corresponding to the second data element is determined according to the first display position of the first data element, and the second data element is displayed at the second display position, where the second display position is adjacent to the first display position.
[0021] In this method, this display method continues to display the second data element while retaining the first data element, which not only allows users to understand the change pattern of the target object more intuitively, but also allows users to fully understand the overall pattern, improves the intuitiveness of the display of the change pattern and the richness of the picture, enhances the interactive fun, and increases user stickiness.
[0022] In an exemplary embodiment, the method further comprises:
[0023] Acquire a second data sequence at a second moment, where the second data sequence indicates a change pattern of the target object within the target duration ΔT, and a time interval corresponding to the second data sequence is after the time interval corresponding to the first data sequence;
[0024] At time t 2start Display the first data element in the second target sequence, where the time t 2start =t 1end +Δt, the second moment is at the moment t 2start Any time before and after the first time;
[0025] The subsequent data elements in the second target sequence are displayed in sequence until at time t 2end Display the last data element in the second target sequence, t 2end= t 2start +ΔT;
[0026] The second target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the second data sequence is a true subsequence of the second target sequence, and the first data element in the second target sequence is the same as the first data element in the second data sequence, and the last data element in the second target sequence is the same as the last data element in the second data sequence.
[0027] This method displays the first target sequence and the second target sequence, and can subsequently display the third target sequence, the fourth target sequence, and so on, thereby forming a continuous display of data elements on the front end, and the display of different target sequences is smooth. The front end can always present a continuous real-time display of data elements without the occurrence of freezes or jumps, thereby maintaining a smooth output of data elements.
[0028] In an exemplary embodiment, the first data sequence includes a first data element e 1start and the last data element e 1end , the first target sequence is obtained by the following method:
[0029] Determine the ratio of the target duration ΔT to the display interval Δt as an interpolation parameter N, where N+1 is the total number of all data elements in the first target sequence;
[0030] Get the tail data element e 1end and the first data element e 1start The difference between them is ΔD;
[0031] When the difference ΔD is not zero, a ratio of the difference ΔD to the interpolation parameter is determined as an interpolation step length, and an interpolation sequence is determined according to the interpolation step length and the target disturbance parameter; when the difference ΔD is zero, an interpolation sequence is determined based on a preset interpolation reference amount and the target disturbance parameter;
[0032] The first target sequence is generated according to the first data sequence and the interpolation sequence.
[0033] The method generates the first target sequence based on the first data sequence and the interpolation sequence. Perturbations are added during the generation of the interpolation sequence, so that the data elements in the obtained first target sequence exhibit variability while fully respecting the objective variation patterns of the target object, thereby increasing the realism of the data elements and improving the real-time display effect.
[0034] In an exemplary embodiment, the target disturbance parameter indicates disturbance by superimposing random numbers.
[0035] Determining an interpolation sequence according to the interpolation step size and the target disturbance parameter includes:
[0036] For each interpolation position in the interpolation sequence, a function value of a random number generation function and the interpolation step size are fused to obtain the value of the interpolation position; and the interpolation sequence is generated according to the values corresponding to each interpolation position;
[0037] The interpolation sequence is determined based on the preset interpolation reference and the target disturbance parameter, including: fusing the function value of the random number generation function and the preset interpolation reference to obtain the value of the interpolation position; and generating the interpolation sequence according to the value corresponding to each of the interpolation positions.
[0038] The method realizes random perturbation by using the function value of a random number generating function as a fusion factor, thereby increasing the variability of data elements in the first target sequence.
[0039] In an exemplary embodiment, the fusing the function value of the random number generating function and the interpolation step size to obtain the value of the interpolation position includes:
[0040] Multiplying the function value of the random number generation function and the interpolation step length to obtain the value of the interpolation position;
[0041] The fusing the function value of the random number generation function and a preset interpolation reference value to obtain the value of the interpolation position includes:
[0042] The function value of the random number generation function and the preset interpolation reference amount are multiplied to obtain the value of the interpolation position.
[0043] The method realizes random perturbation by using the function value of a random number generating function as a factor of a multiplication operation, thereby increasing the variability of data elements in the first target sequence.
[0044] In an exemplary embodiment, the first data sequence includes at least two data elements stored by the server within a recent target duration ΔT, and the server is configured to collect and store the data elements at a target frequency, which is less than a display frequency of the data elements in the first target sequence.
[0045] In this method, the present disclosure can reduce the frequency of server data collection and reduce the server burden while maintaining the real-time display effect of the front end through sequence growth.
[0046] According to a second aspect of an embodiment of the present disclosure, a device for displaying page data is provided, the device comprising:
[0047] A data acquisition module is configured to acquire a first data sequence at a first moment, where the first data sequence indicates a change pattern of the target object within a target time length ΔT;
[0048] The display module is configured to execute at time t 1start Display the first data element in the first target sequence, the time t 1startis any moment after the first moment; when the first data element in the first target sequence is continuously displayed for a duration reaching the display interval Δt, the second data element in the first target sequence is displayed; and at time t 1end Display the last data element in the first target sequence, t 1end= t 1start +ΔT;
[0049] The first target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the first data sequence is a true subsequence of the first target sequence, and the first data element in the first target sequence is the same as the first data element in the first data sequence, and the last data element in the first target sequence is the same as the last data element in the first data sequence.
[0050] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0051] Continuously displaying the data elements in the first target sequence When the duration reaches the display interval Δt, the data elements in the first target sequence are displayed. i is greater than or equal to 2 and less than the sequence length of the first target sequence - 1.
[0052] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0053] In a case where the second data element is smaller than the first data element, displaying the second data element in a first display manner;
[0054] In the case where the second data element is larger than the first data element, displaying the second data element in a second display manner;
[0055] The first display mode is different from the second display mode.
[0056] In an exemplary embodiment, the display module 602 is configured to perform the following operations: determine a second display position corresponding to the second data element based on the first display position of the first data element, and display the second data element at the second display position, where the second display position is a display position adjacent to the first display position.
[0057] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0058] Acquire a second data sequence at a second moment, where the second data sequence indicates a change pattern of the target object within the target duration ΔT, and a time interval corresponding to the second data sequence is after the time interval corresponding to the first data sequence;
[0059] At time t 2start Display the first data element in the second target sequence, where the time t 2start =t 1end +Δt, the second moment is at the moment t 2start Any time before and after the first time;
[0060] The subsequent data elements in the second target sequence are displayed in sequence until at time t 2end Display the last data element in the second target sequence, t 2end= t 2start +ΔT;
[0061] The second target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the second data sequence is a true subsequence of the second target sequence, and the first data element in the second target sequence is the same as the first data element in the second data sequence, and the last data element in the second target sequence is the same as the last data element in the second data sequence.
[0062] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0063] Determine the ratio of the target duration ΔT to the display interval Δt as an interpolation parameter N, where N+1 is the total number of all data elements in the first target sequence;
[0064] Get the tail data element e 1end and the first data element e 1start The difference between them is ΔD;
[0065] When the difference ΔD is not zero, a ratio of the difference ΔD to the interpolation parameter is determined as an interpolation step length, and an interpolation sequence is determined according to the interpolation step length and the target disturbance parameter; when the difference ΔD is zero, an interpolation sequence is determined based on a preset interpolation reference amount and the target disturbance parameter;
[0066] The first target sequence is generated according to the first data sequence and the interpolation sequence.
[0067] In an exemplary embodiment, the target disturbance parameter indicates disturbance by superimposing random numbers.
[0068] The display module 602 is configured to perform the following operations:
[0069] For each interpolation position in the interpolation sequence, a function value of a random number generation function and the interpolation step size are fused to obtain the value of the interpolation position; and the interpolation sequence is generated according to the values corresponding to each interpolation position;
[0070] Alternatively, the function value of the random number generation function and a preset interpolation reference are fused to obtain the value of the interpolation position; and the interpolation sequence is generated according to the value corresponding to each of the interpolation positions.
[0071] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0072] Multiplying the function value of the random number generation function and the interpolation step length to obtain the value of the interpolation position;
[0073] or,
[0074] The function value of the random number generation function and the preset interpolation reference amount are multiplied to obtain the value of the interpolation position.
[0075] In an exemplary embodiment, the first data sequence includes at least two data elements stored by the server within a recent target duration ΔT, and the server is configured to collect and store the data elements at a target frequency, which is less than a display frequency of the data elements in the first target sequence.
[0076] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device including:
[0077] one or more processors;
[0078] a memory for storing program codes executable by the processor;
[0079] The processor is configured to execute the program code to implement the above-mentioned page data display method.
[0080] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, which includes: when the program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned page data display method.
[0081] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which implements the above-mentioned page data display method when executed by a processor.
[0082] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0084] Figure 1 is a schematic diagram of an implementation environment according to an exemplary embodiment;
[0085] Figure 2 This is a flow chart showing a method for displaying page data according to an exemplary embodiment;
[0086] Figure 3 is a schematic diagram illustrating a second data element display method according to an exemplary embodiment;
[0087] Figure 4 is a schematic diagram showing another second data element display method according to an exemplary embodiment;
[0088] Figure 5 is a flowchart of a method for generating a first target sequence according to an exemplary embodiment;
[0089] Figure 6 This is a block diagram of a device for displaying page data according to an exemplary embodiment;
[0090] Figure 7 is a block diagram of a terminal according to an exemplary embodiment;
[0091] Figure 8 The figure is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0092] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0093] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0094] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0095] Figure 1 This is a schematic diagram of an implementation environment provided by the embodiment of the present disclosure, see Figure 1 , the implementation environment includes: a terminal 101 and a server 102.
[0096] Terminal 101 can be at least one of a smartphone, a smartwatch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a portable laptop computer. Terminal 101 has communication capabilities and can access a wired or wireless network. Terminal 101 can generally refer to one of multiple terminals. Those skilled in the art will appreciate that the number of terminals may be greater or lesser.
[0097] Server 102 can be a standalone physical server, a server cluster consisting of multiple physical servers, or a distributed file system. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In one exemplary embodiment, server 102 is directly or indirectly connected to terminal 101 via wired or wireless communication, which is not limited in this embodiment. Optionally, the number of servers 102 can be greater or lesser, which is not limited in this embodiment. Of course, server 102 can also include other functional servers to provide more comprehensive and diverse services. In this embodiment, server 102 can perform primary computing tasks, while terminal 101 performs secondary computing tasks; alternatively, server 102 performs secondary computing tasks, while terminal 101 performs primary computing tasks; alternatively, server 102 or terminal 101 can each independently perform computing tasks, which is not limited in this embodiment.
[0098] In an exemplary embodiment, the terminal 101 includes a sending end 1011 and a receiving end 1012. The sending end 1011 and the receiving end 1012 transmit data through a wired network or a wireless network. The sending end 1011 is used to send data, and the receiving end 1012 is used to receive data. The server 102 is a background server for the sending end 1011 and the receiving end 1012. The server 102 is used to obtain a data request instruction from the sending end 1011 and send a first data sequence to the receiving end 1012. The receiving end 1012 can obtain a first data sequence at a first moment. The first data sequence includes at least two data elements. The first data sequence indicates the change pattern of the target object within the target time length ΔT. The terminal 101 is at time t 1start Display the first data element in the first target sequence, the above time t 1start is any moment after the first moment; when the first data element in the first target sequence is continuously displayed for a period of time equal to the display interval Δt, the second data element in the first target sequence is displayed; at time t 1end Display the last data element in the first target sequence, t 1end= t 1start +ΔT; wherein the above-mentioned first target sequence is a sequence obtained according to the above-mentioned display interval Δt and the above-mentioned target duration ΔT, the above-mentioned first data sequence is a true subsequence of the above-mentioned first target sequence, and the first data element in the above-mentioned first target sequence is the same as the first data element in the above-mentioned first data sequence, and the last data element in the above-mentioned first target sequence is the same as the last data element in the above-mentioned first data sequence.
[0099] In an exemplary embodiment, preconfigured target generation parameters can be obtained, including a target duration ΔT and a display interval Δt between adjacent data elements. Based on the first data sequence and the target generation parameters, a first target sequence is determined, wherein the number of data elements in the first target sequence is greater than the number of data elements in the first data sequence. Under this page data display method, multiple data can be acquired from the server 102 at once, and these data can be arranged into a first data sequence according to a time sequence, and displayed sequentially on the terminal 101 according to the time sequence. Thus, the terminal 101 can achieve a real-time effect within a period of time. Of course, this real-time is not strictly real-time, but rather slightly delayed. For example, each data element in the first data sequence is collected before a first moment, but is displayed sequentially within a period of time after the first moment. Therefore, the embodiment of the present disclosure focuses on achieving a real-time display effect, but the requirements for real-time performance are relatively relaxed. However, although this technical solution sacrifices the strong real-time data requirement, it has its own unique advantages. This advantage is analyzed below in conjunction with related technologies:
[0100] To achieve real-time display, related technologies typically implement real-time data collection on the server side, with the client side accessing the data in real time through long links or polling, enabling real-time display. This approach, however, places significant pressure on the server side and requires high technical and operational costs. Real-time data collection, processing, and synchronization all require significant computing power, bandwidth, and R&D costs. For example, some stock exchanges even resort to building dedicated fiber optic lines to achieve real-time trading data, a costly undertaking. This technical approach, while costly in achieving true, strong real-time performance, is only suitable for applications with extremely stringent real-time requirements, such as real-time stock market quotes. These applications require rigorous, accurate real-time data, appropriate server-side support, and the corresponding expense of achieving the most realistic possible real-time data display.
[0101] However, there are also some scenarios that do not rely too much on real-time data, that is, these scenarios are more concerned with the presentation of the real-time effect itself, and the real-time requirements for the data are not high. For example, when displaying on the client, it is sometimes necessary to show the user real-time data changes, such as letting the user see the real-time changes in the likes of their own works and the increase in the number of their own fans, so as to show the law of data changes, and focus on bringing good user experience to users. In this type of scenario, the demand for real-time data is not strong, and the accuracy requirements for the displayed data are not high. In such a scenario, the technical solution of using related technologies to achieve true strong real-time display is obviously not reasonable, because the cost is too high, and there is no gain in improving the user experience. Therefore, it is suitable to use the page display method provided by the embodiment of the present disclosure, which can significantly reduce the communication pressure between the server and the client, and save the cost of data synchronization. At the same time, it can also achieve real-time display effects on the client, which not only presents the law of data changes, but also improves the user experience and increases user stickiness.
[0102] Figure 2 is a flow chart showing a method for displaying page data according to an exemplary embodiment. Figure 2 As shown, the method is used in an electronic device (for example, the terminal 101 mentioned above) as an example, and includes the following steps:
[0103] In step 201 , a first data sequence is acquired at a first moment, where the first data sequence indicates a change pattern of a target object within a target duration ΔT.
[0104] In the disclosed embodiment, the first data sequence acquired at the first moment includes at least two data elements, which indicate the change pattern of the target object. Front-end 101 can obtain multiple data elements from server 102 at once by communicating with server 102, thereby obtaining the first data sequence. The first data sequence is generated by multiple ordered data elements. The order of the data elements in the first data sequence reflects the order in which the data elements were collected, and these data elements should also be displayed in this order on front-end 101.
[0105] The disclosed embodiments do not limit the number of data elements in the first data sequence. Specifically, the server 102 can feed back all data elements currently stored within the most recent period of time as data elements of the first data sequence to the client. For example, the server 102 sets the interval for periodic data collection to ΔTC and stores the collected data elements in order. If a data query request is received from the front end 101 at time tc, a time range [tc-ΔTS, tc] can be determined with time tc as the right boundary and a preset time interval ΔTS. All data elements within this time range are fed back to the client. Of course, by setting appropriate ΔTC and ΔTS, multiple data elements can be collected within [tc-ΔTS, tc], so that multiple data elements can be fed back to the front end 101. The advantage of this setting is that, compared to the real-time display solution of the related art that feeds back one data element at a time and displays it, feeding back multiple data elements at once can reduce the number of interactions between the server 102 and the front end 101, reducing communication costs, but without affecting the real-time display effect. By reducing the communication load, the real-time display effect is smooth and page lag is reduced.
[0106] In one embodiment, after returning the data elements to the front end 101, the data elements stored locally on the server 102 may be deleted, thereby clearing the cache space of the server 102 in a timely manner and reducing the server storage load.
[0107] In some embodiments, the front end 101 may request data from the server 102 at a fixed frequency, and ΔTC and ΔTS may be set based on the fixed frequency to ensure that at least two data elements are requested each time, thereby achieving continuous data acquisition and obtaining more than two data elements each time.
[0108] In a specific embodiment, ΔTC can be set to <= 180 seconds, for example, 60-120 seconds. In most cases, the server can achieve this collection capability at a low cost. The server generates a data sequence and clears it after the front-end requests it. In some embodiments, a data sequence can be maintained for each account corresponding to the front-end, allowing for rapid feedback of data elements in the corresponding data sequence in response to data requests from each front-end.
[0109] The embodiments of the present disclosure do not limit the data elements in the first data sequence, which can be numerical or textual data elements. The data elements in the first data sequence reflect the changing pattern of the target object, which can be understood as any objective object or abstract object. For example, if the target object is the price of a commodity, the first data sequence can indicate the trend of the commodity price; if the target object is the number of likes corresponding to a certain account, the first data sequence can indicate the changing pattern of the number of likes of the account; if the target object is the number of followers corresponding to a certain account, the first data sequence can indicate the changing pattern of the number of followers of the account.
[0110] In step 202, at time t 1start Display the first data element in the first target sequence, the above time t 1start Any moment after the first moment mentioned above.
[0111] In the embodiment of the present disclosure, the above-mentioned first target sequence is a sequence obtained based on the above-mentioned display interval Δt and the above-mentioned target duration ΔT, the above-mentioned first data sequence is a true subsequence of the above-mentioned first target sequence, and the first data element in the above-mentioned first target sequence is the same as the first data element in the above-mentioned first data sequence, and the last data element in the above-mentioned first target sequence is the same as the last data element in the above-mentioned first data sequence.
[0112] That is to say, the embodiment of the present disclosure is intended to display a data element every interval Δt in the target duration ΔT in the front end 101. The sequence formed by the data elements displayed within the target duration Δ is the first target sequence, thereby simulating the effect of real-time display. In order to make the real-time display effect more realistic, the value of ΔT / Δt can be relatively large, that is, the interval display is more frequent, which is more like a real-time display. This makes it possible to have more data elements in the first target sequence, that is, it is necessary to perform sequence growth based on the first data sequence, the above-mentioned display interval Δt and the above-mentioned target duration ΔT to obtain the first target sequence. The number of data elements in the first target sequence is greater than the number of data elements in the first data sequence, that is, sequence growth and data generation are performed. Through such operations, the front end can display richer data elements and achieve a more realistic real-time display effect. For example, if the first data sequence corresponding to the target duration ΔT sent by server 102 includes only two data elements, ΔT is 5 seconds, and Δt is 1 second, then the first target sequence needs to have 6 data elements. In other words, a first target data sequence including 6 data elements is obtained based on the first data sequence including only 2 data elements. The above-mentioned first data sequence is a true subsequence of the above-mentioned first target sequence, which means that the above-mentioned first target sequence includes all data elements in the first data sequence, and the relative position relationship of the data elements remains unchanged. In addition, the first target sequence also includes data elements that do not exist in the first data sequence. Of course, Δt and ΔT can be set according to actual conditions and are not limited in the present embodiment.
[0113] In step 203 , when the first data element in the first target sequence is continuously displayed for a duration equal to the display interval Δt, the second data element in the first target sequence is displayed.
[0114] The disclosed embodiments do not limit the specific manner in which the second data element in the first target sequence is displayed when the first data element in the first target sequence has been continuously displayed for a duration equal to the display interval Δt. In one exemplary embodiment, the second data element may be displayed in a masked manner overlying the first data element, or the first data element may be deleted and then displayed in its original position.
[0115] In an exemplary embodiment, the above-mentioned display of the second data element in the above-mentioned first target sequence includes: when the above-mentioned second data element is smaller than the above-mentioned first data element, displaying the above-mentioned second data element in a first display mode; when the above-mentioned second data element is larger than the above-mentioned first data element, displaying the above-mentioned second data element in a second display mode; wherein the above-mentioned first display mode is different from the above-mentioned second display mode. The present disclosure does not limit the specific display mode setting method. For example, the specific display mode can be set by setting the font color, model, background fill, size, whether to highlight, whether to bold, whether to jump, whether to flash, etc. Please refer to Figure 3 , which is a schematic diagram of a second data element display method according to an exemplary embodiment. Figure 3 (1) is the display effect of the first data element of multiple target objects. After the display time reaches Δt, if the second data element of each target object is greater than the first data element, the page will display Figure 3 (2) This display effect is displayed using the second display mode. If the second data element of each target object is smaller than the first data element, the page will display Figure 3 (3) This display effect is displayed using the first display mode. It can be seen that the size relationship between the second data element and the first data element is different, and the display effect is also different. If the second data element of some target objects is larger than the first data element, and the second data element of some target objects is smaller than the first data element, the page will display Figure 3 (4) This allows users to more intuitively understand the changing patterns of the target object, improves the intuitiveness of the changing pattern display and the richness of the picture, enhances the fun of interaction, and increases user stickiness.
[0116] In an exemplary embodiment, the above-mentioned display of the second data element in the above-mentioned first target sequence includes: determining the second display position corresponding to the above-mentioned second data element based on the first display position of the above-mentioned first data element, and displaying the above-mentioned second data element at the above-mentioned second display position, and the above-mentioned second display position is a display position adjacent to the above-mentioned first display position. The present disclosure does not limit the specific setting method of the second display position. For example, it can be set at a position with a preset pixel interval to the right of the first display position, and it can be set at a position with a preset pixel interval below the first display position. Of course, according to the relationship between the second data element and the first data element, the corresponding display method can be used for the second data element. Please refer to Figure 4 , which is a schematic diagram showing another second data element display method according to an exemplary embodiment. Figure 4(1) The first data element display effect of multiple target objects. After the display time reaches Δt, if the second data element is greater than the first data element, the page will display Figure 4 (2) This display effect is displayed using the second display mode. If each second data element is smaller than the first data element, the page will display Figure 4 (3) This display effect is displayed using the first display mode. If the second data element of some target objects is greater than the first data element, and the second data element of some target objects is less than the first data element, the page will display Figure 4 (4). It can be seen that this display method retains the first data element and continues to display the second data element. It not only allows users to understand the change pattern of the target object more intuitively, but also allows users to fully understand the overall pattern, improves the intuitiveness of the change pattern display and the richness of the picture, enhances the interactive fun, and increases user stickiness.
[0117] Of course, while continuing to display the data elements in the first target sequence When the duration reaches the display interval Δt, the data elements in the first target sequence are displayed. i is greater than or equal to 2 and less than the sequence length of the first target sequence - 1. The display method can be the same as the method used to display the second data element above and will not be further described here. By sequentially displaying the data elements in the first target sequence at intervals, a continuous, high-frequency, real-time display effect is created, which can realistically simulate a real-time display effect without adding additional burden to the server and terminal devices.
[0118] In step 204, at time t 1end Display the last data element in the first target sequence, t 1end =t 1start +ΔT.
[0119] The first target sequence is generated by the first data sequence obtained at the first moment. Therefore, the data elements in the first target sequence are either real data collected before the first moment or non-real data generated by simulation. Therefore, the sequential display of data elements based on the first target sequence is not a real-time display in the strict sense. However, it can present a very realistic real-time display effect on the front end on the basis of fully respecting the change law of the target object within the target time length ΔT. Obviously, such a technical solution can significantly reduce the communication pressure between the server and the client, and save the cost of data synchronization. At the same time, it can also achieve real-time display effects on the client, which not only presents the change law of the data, but also improves the user experience and increases user stickiness.
[0120] For example, the target duration ΔT is 5 seconds, Δt is 1 second, at the following time {t 1start , t 1start +1,t 1start +2, t 1start +3,t 1start +4, t 1start +5} There are 6 moments in total, and each moment displays one data element. Therefore, the first target sequence needs to have 6 data elements. If the first data sequence has only two data elements, four additional data elements need to be simulated to construct the first target sequence.
[0121] In an exemplary embodiment, a second data sequence may be acquired at a second time, the second data sequence indicating a change pattern of the target object within the target duration ΔT, and the time interval corresponding to the second data sequence is after the time interval corresponding to the first data sequence; at time t 2start Display the first data element in the second target sequence, where the above time t 2start =t 1end +Δt, the second moment is at the moment t 2start Before and after the first moment; the subsequent data elements in the second target sequence are displayed in sequence until the moment t 2end Display the last data element in the second target sequence, t 2end= t 2start +ΔT; wherein, the above-mentioned second target sequence is a sequence obtained according to the above-mentioned display interval Δt and the above-mentioned target duration ΔT, the above-mentioned second data sequence is a true subsequence of the above-mentioned second target sequence, and the first data element in the above-mentioned second target sequence is the same as the first data element in the above-mentioned second data sequence, and the last data element in the above-mentioned second target sequence is the same as the last data element in the above-mentioned second data sequence. The generation method and display method of the second target sequence are the same as those of the first target sequence, which will not be repeated here. By displaying the first target sequence and the second target sequence, the third target sequence, the fourth target sequence, etc. can be displayed in the same way, thereby forming a continuous display of data elements on the front end 101, and the display of different target sequences is smooth, and the real-time display of continuous data elements can always be presented on the front end without the phenomenon of freeze or jump, thereby maintaining a smooth output of data elements.
[0122] Continuing with the previous example, the start time of the display of the second target sequence is t 2start =t 1end +Δt, that is, t 1start +6, so the elements of the second target sequence are at the following time {t 1start +6,t1start +7,t 1start +8,t 1start +9,t 1start +10,t 1start +11} are displayed in sequence. That is, in {t 1start , t 1start +1,t 1start +2, t 1start +3,t 1start +4, t 1start +5, t 1start +6,t 1start +7,t 1start +8,t 1start +9,t 1start +10,t 1start +11}, one data element is displayed at each moment, achieving smooth display of data elements.
[0123] The embodiment of the present disclosure also discloses a method for obtaining a first target sequence. If the first data sequence includes the first data element e 1start and the last data element e 1end , then the method for obtaining the first target sequence can refer to Figure 5 Please refer to Figure 5 , which is a flow chart of a method for generating a first target sequence according to an exemplary embodiment. Of course, if the first data sequence includes more than two data elements, each adjacent two data elements can use Figure 5 The middle data element is generated in the manner described above to obtain a target subsequence with the two adjacent data elements as the first ones. The target subsequences are sequentially spliced and duplicate data elements are deleted to obtain a first target sequence.
[0124] S501. Determine the ratio of the target duration ΔT to the display interval Δt as an interpolation parameter N, where N+1 is the total number of all data elements in the first target sequence.
[0125] Still taking the previous example, if the target duration ΔT is 5 seconds and Δt is 1 second, then N is 5, and there are 6 data elements in the first target sequence.
[0126] S502. Get the last data element e 1end and the first data element e above 1start The difference ΔD between them.
[0127] If the tail data element e 1end and the first data element e above 1start If they are equal, the difference ΔD is 0, otherwise the difference ΔD=e 1end -e 1start .
[0128] S503. If the difference ΔD is not zero, determine the ratio of the difference ΔD to the interpolation parameter as an interpolation step size, and determine an interpolation sequence based on the interpolation step size and the target disturbance parameter. If the difference ΔD is zero, determine the interpolation sequence based on a preset interpolation reference and the target disturbance parameter.
[0129] When the difference ΔD is not zero, the interpolation step is ΔD / N. If the difference ΔD is zero, a preset interpolation reference can be used. However, the interpolation reference should not be set too large, for example, 0.1 is sufficient.
[0130] In the embodiment of the present disclosure, the target disturbance parameter can be considered as a parameter indicating the disturbance method, for example, it can be a random disturbance or a disturbance based on the mean and variance of the data in the first data sequence. The embodiment of the present disclosure does not limit the specific method of disturbance.
[0131] In an exemplary embodiment, the target disturbance parameter indicates disturbance by superimposing random numbers, and the interpolation sequence is determined based on the interpolation step and the target disturbance parameter, including: for each interpolation position in the interpolation sequence, the function value of the random number generator function and the interpolation step are fused to obtain the value of the interpolation position; and the interpolation sequence is generated based on the values corresponding to each of the interpolation positions. The interpolation sequence is determined based on the preset interpolation reference and the target disturbance parameter, including: the function value of the random number generator function and the preset interpolation reference are fused to obtain the value of the interpolation position; and the interpolation sequence is generated based on the values corresponding to each of the interpolation positions. Random disturbance is achieved by using the function value of the random number generator function as a fusion factor, thereby increasing the variability of the data elements in the first target sequence.
[0132] The implementation of the present disclosure does not limit the method of fusion processing, for example, addition or multiplication can be performed. In an exemplary embodiment, the above-mentioned fusion processing of the function value of the random number generation function and the above-mentioned interpolation step length to obtain the value of the above-mentioned interpolation position includes: multiplying the function value of the above-mentioned random number generation function and the above-mentioned interpolation step length to obtain the value of the above-mentioned interpolation position; the above-mentioned fusion processing of the function value of the above-mentioned random number generation function and the preset interpolation reference amount to obtain the value of the above-mentioned interpolation position includes: multiplying the function value of the above-mentioned random number generation function and the above-mentioned preset interpolation reference amount to obtain the value of the above-mentioned interpolation position. Random perturbation is achieved by using the function value of the random number generation function as a factor of the multiplication operation, thereby increasing the variability of the data elements in the first target sequence.
[0133] S504. Generate the first target sequence according to the first data sequence and the interpolation sequence.
[0134] The disclosed embodiment generates the first target sequence based on the first data sequence and the interpolation sequence. The interpolation sequence is generated by incorporating perturbations. This allows the data elements in the resulting first target sequence to exhibit variability while fully respecting the objective variation patterns of the target object, thereby increasing the realism of the data elements and enhancing the real-time display effect.
[0135] In an exemplary embodiment, for minute-level data output by the server 102, the front end 101 may obtain the first data sequence, the second data sequence, etc. through polling. Taking the acquisition of the first data sequence as an example, the server 102 may cache the two most recently collected data to form a first data sequence. After the front end 101 obtains the first data sequence {D0, D1}, D0 and D1 may be deleted, and then new data may be collected as new D0 and D1.
[0136] If only D0 and D1 are displayed within ΔT, the real-time display effect is not obvious. Therefore, interpolation is required to obtain the first target sequence. Adjacent data elements in the first target sequence are displayed with intervals of Δt. Interpolation generates an interpolated sequence. The generation process of the interpolated sequence is expressed as [d1, d2, d3, d4, d5...] = f(D0, D1, V, ΔT / Δt), where [d1, d2, d3, d4, d5...] represents the interpolated sequence, f represents the interpolation process, and ΔT / Δt represents the amount of interpolated data to be generated. To ensure data variation in the interpolated sequence, V is set. V can be understood as a default variation constant in the range (-1, 1). Its sign indicates whether the value is increasing or decreasing, and its absolute value indicates the ratio of the change. If D0 and D1 are equal, a variation pattern is constructed using V.
[0137] If Δd = ΔD / N, then when Δd! = 0: Δdi = Δd*random(-0.1, 0.1), generating an interpolated sequence of [Δd1, Δd2, Δd3...]. When Δd == 0, Δdi = random(-0.1, 0.1)*V, generating an interpolated sequence of [Δd1, Δd2, Δd3...]. This interpolated sequence can be saved and reused in the subsequent generation of the second target sequence.
[0138] For the nth interpolation, let d0 = D0 and di + 1 = di + Δd [(i + n) % N] to obtain the first target sequence [d1, d2, d3, d4, d5...]. The front-end periodically displays the data elements in the first target sequence. This allows the user to experience real-time data display, even though the server is actually collecting data offline.
[0139] Thus, the first data sequence includes at least two data elements stored by the server within the most recent target duration ΔT. The server is configured to collect and store data elements at a target frequency, and the first target sequence obtained after sequence growth of the first data sequence is also displayed within the target duration ΔT. Clearly, the target frequency is less than the display frequency of the data elements in the first target sequence. In other words, through sequence growth, the present disclosure can reduce the frequency of server data collection while maintaining real-time display quality on the front end, thereby alleviating server burden.
[0140] Figure 6 FIG is a block diagram of a device for displaying page data according to an exemplary embodiment. Figure 6 , the device comprises:
[0141] The data acquisition module 601 is configured to acquire a first data sequence at a first moment, where the first data sequence indicates a change pattern of a target object within a target duration ΔT;
[0142] The display module 602 is configured to execute at time t 1start Display the first data element in the first target sequence, the above time t 1start is any moment after the first moment; when the first data element in the first target sequence is continuously displayed for a duration equal to the display interval Δt, the second data element in the first target sequence is displayed; and at time t 1end Display the last data element in the first target sequence, t 1end= t 1start +ΔT;
[0143] In which, the above-mentioned first target sequence is a sequence obtained based on the above-mentioned display interval Δt and the above-mentioned target duration ΔT, the above-mentioned first data sequence is a true subsequence of the above-mentioned first target sequence, and the first data element in the above-mentioned first target sequence is the same as the first data element in the above-mentioned first data sequence, and the last data element in the above-mentioned first target sequence is the same as the last data element in the above-mentioned first data sequence.
[0144] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0145] Continuously displaying the data elements in the first target sequence When the duration reaches the display interval Δt, the data elements in the first target sequence are displayed. i is greater than or equal to 2 and less than the sequence length of the first target sequence minus 1.
[0146] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0147] In the case where the second data element is smaller than the first data element, displaying the second data element in a first display manner;
[0148] In the case where the second data element is larger than the first data element, displaying the second data element in a second display manner;
[0149] The first display mode is different from the second display mode.
[0150] In an exemplary embodiment, the display module 602 is configured to perform the following operations: determine the second display position corresponding to the second data element based on the first display position of the first data element, and display the second data element at the second display position, where the second display position is a display position adjacent to the first display position.
[0151] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0152] Acquire a second data sequence at a second moment, the second data sequence indicating a change pattern of the target object within the target duration ΔT, and a time interval corresponding to the second data sequence being after the time interval corresponding to the first data sequence;
[0153] At time t 2start Display the first data element in the second target sequence, where the above time t 2start =t 1end +Δt, the second moment is at the moment t 2start Any time before and after the first time mentioned above;
[0154] The subsequent data elements in the second target sequence are displayed in sequence until at time t 2end Display the last data element in the second target sequence, t 2end= t 2start +ΔT;
[0155] In which, the above-mentioned second target sequence is a sequence obtained based on the above-mentioned display interval Δt and the above-mentioned target duration ΔT, the above-mentioned second data sequence is a true subsequence of the above-mentioned second target sequence, and the first data element in the above-mentioned second target sequence is the same as the first data element in the above-mentioned second data sequence, and the last data element in the above-mentioned second target sequence is the same as the last data element in the above-mentioned second data sequence.
[0156] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0157] Determine the ratio of the target duration ΔT to the display interval Δt as an interpolation parameter N, where N+1 is the total number of all data elements in the first target sequence;
[0158] Get the last data element e 1end and the first data element e above 1start The difference between them is ΔD;
[0159] When the difference ΔD is not zero, the ratio of the difference ΔD to the interpolation parameter is determined as an interpolation step length, and an interpolation sequence is determined according to the interpolation step length and the target disturbance parameter; when the difference ΔD is zero, the interpolation sequence is determined based on a preset interpolation reference amount and the target disturbance parameter;
[0160] The first target sequence is generated according to the first data sequence and the interpolation sequence.
[0161] In an exemplary embodiment, the target disturbance parameter indication is disturbed by superimposing random numbers.
[0162] The display module 602 is configured to perform the following operations:
[0163] For each interpolation position in the interpolation sequence, the function value of the random number generation function and the interpolation step size are fused to obtain the value of the interpolation position; and the interpolation sequence is generated according to the values corresponding to each of the interpolation positions.
[0164] Alternatively, the function value of the random number generation function and a preset interpolation reference are fused to obtain the value of the interpolation position; and the interpolation sequence is generated according to the value corresponding to each of the interpolation positions.
[0165] In an exemplary embodiment, the display module 602 is configured to perform the following operations:
[0166] Multiplying the function value of the random number generating function and the interpolation step length to obtain the value of the interpolation position;
[0167] or,
[0168] The function value of the random number generation function and the preset interpolation reference are multiplied to obtain the value of the interpolation position.
[0169] In an exemplary embodiment, the first data sequence includes at least two data elements stored by the server within a recent target duration ΔT, and the server is configured to collect and store the data elements at a target frequency, which is less than a display frequency of the data elements in the first target sequence.
[0170] It should be noted that the page data display device provided in the above embodiment is merely an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the page data display device provided in the above embodiment and the page data display method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0171] Please refer to Figure 7 , which shows a structural block diagram of a computer device provided by an exemplary embodiment of the present disclosure Figure 1 The computer device may be a terminal. The computer device is used to implement the page data display method provided in the above embodiment. Specifically:
[0172] Typically, the computer device 700 includes a processor 701 and a memory 702 .
[0173] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In an exemplary embodiment, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In an exemplary embodiment, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0174] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In an exemplary embodiment, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, at least one program, code set, or instruction set, and is configured to be executed by one or more processors to implement the above-mentioned page data display method.
[0175] In an exemplary embodiment, computer device 700 may optionally include a peripheral device interface 703 and at least one peripheral device. Processor 701, memory 702, and peripheral device interface 703 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 703 via a bus, signal lines, or circuit boards. Specifically, the peripheral device includes at least one of a radio frequency circuit 704, a touchscreen display 705, a camera assembly 706, an audio circuit 707, a positioning assembly 708, and a power supply 709.
[0176] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the computer device 700, and the computer device 700 may include more or fewer components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0177] Please refer to Figure 8 , which shows a structural block diagram of a computer device provided by another exemplary embodiment of the present disclosure Figure 2 The computer device may be a server for executing the above-mentioned page data display method. Specifically:
[0178] Computer device 800 includes a central processing unit (CPU) 801, a system memory 804 including a random access memory (RAM) 802 and a read-only memory (ROM) 803, and a system bus 805 connecting system memory 804 and CPU 801. Computer device 800 also includes a basic input / output system (I / O system) 806 that facilitates information transfer between various components within the computer, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 811.
[0179] The basic input / output system 806 includes a display 808 for displaying information and an input device 809, such as a mouse and keyboard, for user input. Both the display 808 and the input device 809 are connected to the central processing unit 801 via an input / output controller 810 connected to the system bus 805. The basic input / output system 806 may also include an input / output controller 810 for receiving and processing input from a variety of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 810 also provides output to a display screen, printer, or other types of output devices.
[0180] The mass storage device 807 is connected to the central processing unit 801 via a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer-readable media provide non-volatile storage for the computer device 800. In other words, the mass storage device 807 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0181] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, tape cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above-mentioned ones. The above-mentioned system memory 804 and mass storage device 807 can be collectively referred to as memory.
[0182] According to various embodiments of the present disclosure, the computer device 800 may also be connected to a remote computer on a network such as the Internet for operation. That is, the computer device 800 may be connected to a network 812 via a network interface unit 811 connected to the system bus 805, or the network interface unit 811 may be used to connect to other types of networks or remote computer systems (not shown).
[0183] The memory further includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the page data display method.
[0184] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. When the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the page data display method is implemented.
[0185] Optionally, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0186] In an exemplary embodiment, a computer-readable storage medium including program code is also provided, such as a memory including the program code. The program code can be executed by a processor to perform the above-mentioned page data display method. Alternatively, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0187] In an exemplary embodiment, a computer program product is further provided, including a computer program, which implements the above-mentioned page data display method when executed by a processor.
[0188] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0189] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A page data display method, characterized in that: The method comprises: Acquire a first data sequence at a first moment, where the first data sequence indicates a change pattern of the target object within a target duration ΔT; At time t 1start Display the first data element in the first target sequence, the time t 1start is any moment after the first moment; When the first data element in the first target sequence is continuously displayed for a time period reaching the display interval Δt, displaying the second data element in the first target sequence; At time t 1end Display the last data element in the first target sequence, t 1end =t 1start +ΔT; The first target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the first data sequence is a true subsequence of the first target sequence, and the first data element in the first target sequence is the same as the first data element in the first data sequence, and the last data element in the first target sequence is the same as the last data element in the first data sequence.
2. The page data display method according to claim 1, characterized in that: After displaying the second data element in the first target sequence, the method further includes: Continuously displaying the data elements in the first target sequence When the duration reaches the display interval Δt, the data elements in the first target sequence are displayed. i is greater than or equal to 2 and less than the sequence length of the first target sequence - 1.
3. The page data display method according to claim 1 or 2, characterized in that: The displaying of the second data element in the first target sequence includes: In a case where the second data element is smaller than the first data element, displaying the second data element in a first display manner; In the case where the second data element is larger than the first data element, displaying the second data element in a second display manner; The first display mode is different from the second display mode.
4. The page data display method according to claim 1 or 2, characterized in that: The displaying of the second data element in the first target sequence includes: A second display position corresponding to the second data element is determined according to the first display position of the first data element, and the second data element is displayed at the second display position, where the second display position is adjacent to the first display position.
5. The page data display method according to claim 1 or 2, characterized in that: The method further comprises: Acquire a second data sequence at a second moment, where the second data sequence indicates a change pattern of the target object within the target duration ΔT, and a time interval corresponding to the second data sequence is after the time interval corresponding to the first data sequence; At time t 2start Display the first data element in the second target sequence, where the time t 2start =t 1end +Δt, the second moment is at the moment t 2start Any time before and after the first time; The subsequent data elements in the second target sequence are displayed in sequence until at time t 2end Display the last data element in the second target sequence, t 2end= t 2start +ΔT; The second target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the second data sequence is a true subsequence of the second target sequence, and the first data element in the second target sequence is the same as the first data element in the second data sequence, and the last data element in the second target sequence is the same as the last data element in the second data sequence.
6. The page data display method according to claim 1, characterized in that: The first data sequence includes a first data element e 1start and the last data element e 1end , the first target sequence is obtained by the following method: Determine the ratio of the target duration ΔT to the display interval Δt as an interpolation parameter N, where N+1 is the total number of all data elements in the first target sequence; Get the tail data element e 1end and the first data element e 1start The difference between them is ΔD; When the difference ΔD is not zero, a ratio of the difference ΔD to the interpolation parameter is determined as an interpolation step length, and an interpolation sequence is determined according to the interpolation step length and the target disturbance parameter; when the difference ΔD is zero, an interpolation sequence is determined based on a preset interpolation reference amount and the target disturbance parameter; The first target sequence is generated according to the first data sequence and the interpolation sequence.
7. The page data display method according to claim 6, characterized in that: The target disturbance parameter indicates that the disturbance is performed by superimposing random numbers. Determining an interpolation sequence according to the interpolation step size and the target disturbance parameter includes: For each interpolation position in the interpolation sequence, a function value of a random number generation function and the interpolation step size are fused to obtain the value of the interpolation position; and the interpolation sequence is generated according to the values corresponding to each interpolation position; The interpolation sequence is determined based on the preset interpolation reference and the target disturbance parameter, including: fusing the function value of the random number generation function and the preset interpolation reference to obtain the value of the interpolation position; and generating the interpolation sequence according to the value corresponding to each of the interpolation positions.
8. The page data display method according to claim 7, characterized in that: The fusing the function value of the random number generating function and the interpolation step length to obtain the value of the interpolation position includes: Multiplying the function value of the random number generation function and the interpolation step length to obtain the value of the interpolation position; The fusing the function value of the random number generation function and a preset interpolation reference value to obtain the value of the interpolation position includes: The function value of the random number generation function and the preset interpolation reference amount are multiplied to obtain the value of the interpolation position.
9. The page data display method according to claim 1, characterized in that: The first data sequence includes at least two data elements stored by the server within a recent target duration ΔT, and the server is configured to collect and store the data elements at a target frequency, which is less than a display frequency of the data elements in the first target sequence.
10. A method and device for displaying page data, characterized in that: The device comprises: A data acquisition module is configured to acquire a first data sequence at a first moment, where the first data sequence indicates a change pattern of the target object within a target time length ΔT; The display module is configured to execute at time t 1start Display the first data element in the first target sequence, the time t 1start is any moment after the first moment; when the first data element in the first target sequence is continuously displayed for a duration reaching the display interval Δt, the second data element in the first target sequence is displayed; and at time t 1end Display the last data element in the first target sequence, t 1end= t 1start +ΔT; The first target sequence is a sequence obtained based on the display interval Δt and the target duration ΔT, the first data sequence is a true subsequence of the first target sequence, and the first data element in the first target sequence is the same as the first data element in the first data sequence, and the last data element in the first target sequence is the same as the last data element in the first data sequence.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the page data display method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that When the program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the page data display method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Page first screen time determination method and device, electronic equipment and storage medium
CN112131493A
Page interaction method and device, electronic equipment and storage medium
CN115802089A