lis: Longest increasing subsequence for a univariate sample

Description Usage Arguments Details Value Author(s) References Examples

View source: R/lis.R

Description

It compute the size of the longest increasing subsequence from a sample of a (continuous) random variable.

Usage

1
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

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

Example output

[1] 4

LIStest documentation built on May 30, 2017, 3:32 a.m.