lis {LIStest} | R Documentation |
Longest increasing subsequence for a univariate sample
Description
It compute the size of the longest increasing subsequence from a sample of a (continuous) random variable.
Usage
lis(x)
Arguments
x |
numeric vector of data values. |
Details
See example 2.1-Main reference.
Value
Integer, the size of the longest increasing subsequence.
Author(s)
J. E. Garcia and V. A. Gonzalez-Lopez
References
J. E. Garcia, V. A. Gonzalez-Lopez, Independence tests for continuous random variables based on the longest increasing subsequence, Journal of Multivariate Analysis (2014), http://dx.doi.org/10.1016/j.jmva.2014.02.010
Examples
#see Example 2.1 (reference)
a<-lis(c(3,6,1,7,4,2,5,8))
a
[Package LIStest version 2.1 Index]