extract_sub: Helping function for algorithm 2: Pre-compute the partial...

Description Usage

View source: R/RcppExports.R

Description

Helping function for algorithm 2: Pre-compute the partial sums S_i = sumj=k_i+1^k_i+1x_i and the partial sums of squared T_i = sumj=k_i+1^k_i+1x_i^2 between the (sorted) candidates k_i and k_i+1 in cand. Output: data frame with 4 columns k_i | k_i+1 | S_i | T_i

Usage

1
extract_sub(cand, x)

mosum documentation built on June 25, 2021, 5:08 p.m.

Related to extract_sub in mosum...