build_hankel: Build a Hankel matrix from a time series.

View source: R/build_hankel.R

build_hankelR Documentation

Build a Hankel matrix from a time series.

Description

Create a Hankel matrix from a vector of measurements over time.

Usage

build_hankel(x, nrows = round(length(x)/2))

Arguments

x

A vector of measurements over time.

nrows

An integer; the number of shift-stacked rows.

Value

A Hankel matrix of x with nrows rows.

Examples

data(ECG_measurements)
xdat <- ECG_measurements[,"channel1"]
build_hankel(x = xdat, nrows = 25)

RobertGM111/havok documentation built on July 8, 2023, 8:23 p.m.