TimeSeriesAnalysis
LongestDefinedSubsequence
obtain a longest non-missing subsequence
Calling Sequence
Parameters
Description
Examples
Compatibility
LongestDefinedSubsequence(TS)
TS
-
TimeSeries object
The LongestDefinedSubsequence command takes a time series and returns a longest contiguous subsequence of data where none of the data sets have missing values. For example, if TS is a TimeSeries object containing the following data:
then the 4th through 6th row of data will be returned. The value is used to represent missing data. (Data for time series is converted to floating point data, so any input of type undefined is converted to and subsequently considered missing.)
If there are multiple longest subsequences (of equal length), then LongestDefinedSubsequence returns an arbitrary one.
Consider the time series described above.
A second example.
The TimeSeriesAnalysis[LongestDefinedSubsequence] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
TimeSeries
Download Help Document