Computes the number of times a time series crosses the median.

crossing_points(x)

Arguments

x

a univariate time series

Value

A numeric value.

Author

Earo Wang and Rob J Hyndman