A method and an apparatus for generating data in a missing segment of a target time data sequence are disclosed. The method includes: determining whether there is a breakpoint in the missing segment; determining candidate values of the data in the missing segment; and generating values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment. With the method and the apparatus, the data in the missing segment of the target time data sequence can be generated more accurately.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A method for generating data in a missing segment of a target time data sequence, the method comprising: determining whether there is a breakpoint in the missing segment; determining candidate values of the data in the missing segment; and generating values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment. 2. The method according to claim 1, wherein the determining whether there is the breakpoint in the missing segment includes: determining whether there is the breakpoint in the missing segment based on a reference time data sequence having a logical similarity to the target time data sequence. 3. The method according to claim 2, wherein the determining whether there is the breakpoint in the missing segment based on the reference time data sequence having the logical similarity to the target time data sequence includes: determining whether there is the breakpoint in the missing segment by determining whether there is a breakpoint in a reference segment, which corresponds to the missing segment, in the reference time data sequence. 4. The method according to claim 3, wherein the determining whether there is the breakpoint in the reference segment, which corresponds to the missing segment, in the reference time data sequence includes: for at least one reference datum in the reference segment, determining whether the at least one reference datum corresponds to the breakpoint in the reference segment according to a difference degree between average values of predetermined amounts of data on both sides of the at least one reference datum respectively in the reference time data sequence. 5. The method according to claim 1, wherein the determining the candidate values of the data in the missing segment includes: determining first candidate values of the data in the missing segment based on data on a first side of the missing segment in the target time data sequence; and determining second candidate values of the data in the missing segment based on data on a second side of the missing segment in the target time data sequence. 6. The method according to claim 5, wherein the generating the values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment includes: when there is no breakpoint in the missing segment, using weighted sums of the first candidate values and the second candidate values of the data in the missing segment as values of the data in the missing segment respectively. 7. The method according to claim 5, wherein the generating the values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment includes: when there is the breakpoint in the missing segment, determining values of data, which are located on a first side of the breakpoint in the missing segment, as corresponding values in the first candidate values of the data in the missing segment, and determining values of data, which are located on a second side of the breakpoint in the missing segment, as corresponding values in the second candidate values of the data in the missing segment. 8. An apparatus for generating data in a missing segment of a target time data sequence, the apparatus comprising: a breakpoint determination device, configured to determine whether there is a breakpoint in the missing segment; a candidate value determination device, configured to determine candidate values of the data in the missing segment; and a generation device, configured to generate values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment. 9. The apparatus according to claim 8, wherein the breakpoint determination device determines whether there is the breakpoint in the missing segment based on a reference time data sequence having a logical similarity to the target time data sequence. 10. The apparatus according to claim 9, wherein the breakpoint determination device determines whether there is the breakpoint in the missing segment by determining whether there is a breakpoint in a reference segment, which corresponds to the missing segment, in the reference time data sequence. 11. The apparatus according to claim 10, wherein for at least one reference datum in the reference segment, the breakpoint determination device determines whether the at least one reference datum corresponds to the breakpoint in the reference segment according to a difference degree between average values of predetermined amounts of data on both sides of the at least one reference datum respectively in the reference time data sequence. 12. The apparatus according to claim 8, wherein the candidate value determination device determines the candidate values of the data in the missing segment by determining first candidate values of the data in the missing segment based on data on a first side of the missing segment in the target time data sequence, and determining second candidate values of the data in the missing segment based on data on a second side of the missing segment in the target time data sequence. 13. The apparatus according to claim 12, wherein when there is no breakpoint in the missing segment, the generation device uses weighted sums of the first candidate values and the second candidate values of the data in the missing segment as values of the data in the missing segment respectively. 14. The apparatus according to claim 12, wherein when there is the breakpoint in the missing segment, the generation device determines values of data, which are located on a first side of the breakpoint in the missing segment, as corresponding values in the first candidate values, and determines values of data, which are located on a second side of the breakpoint in the missing segment, as corresponding values in the second candidate values. 15. A computer program product for generating data in a missing segment of a target time data sequence, the computer program product comprising at least one computer readable non-transitory storage medium having computer readable program instructions thereon for execution by a processor, the computer readable program instructions comprising program instructions for: determining whether there is a breakpoint in the missing segment; determining candidate values of the data in the missing segment; and generating values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment. 16. The computer program product according to claim 15, wherein the determining whether there is the breakpoint in the missing segment includes: determining whether there is the breakpoint in the missing segment based on a reference time data sequence having a logical similarity to the target time data sequence. 17. The computer program product according to claim 16, wherein the determining whether there is the breakpoint in the missing segment based on the reference time data sequence having the logical similarity to the target time data sequence includes: determining whether there is the breakpoint in the missing segment by determining whether there is a breakpoint in a reference segment, which corresponds to the missing segment, in the reference time data sequence. 18. The computer program product according to claim 17, wherein the determining whether there is the breakpoint in the reference segment, which corresponds to the missing segment, in the reference time data sequence includes: for at least one reference datum in the reference segment, determining whether the at least one reference datum corresponds to the breakpoint in the reference segment according to a difference degree between average values of predetermined amounts of data on both sides of the at least one reference datum respectively in the reference time data sequence. 19. The computer program product according to claim 15, wherein the determining the candidate values of the data in the missing segment includes: determining first candidate values of the data in the missing segment based on data on a first side of the missing segment in the target time data sequence; and determining second candidate values of the data in the missing segment based on data on a second side of the missing segment in the target time data sequence. 20. The computer program product according to claim 19, wherein the generating the values of the data in the missing segment by selectively using the candidate values of the data in the missing segment, according to whether there is the breakpoint in the missing segment includes: when there is no breakpoint in the missing segment, using weighted sums of the first candidate values and the second candidate values of the data in the missing segment as values of the data in the missing segment respectively.