Learn R Programming

LIStest (version 2.1)

lis: 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.

Value

  • Integer, the size of the longest increasing subsequence.

Details

See example 2.1-Main reference.

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

Run this code
#see Example 2.1 (reference)
a<-lis(c(3,6,1,7,4,2,5,8))
a

Run the code above in your browser using DataLab