Learn R Programming

factree (version 0.1.0)

calculate_split_statistic: Calculate Split Statistic

Description

Computes the split statistic for a candidate partition based on the overlap of factor spaces between two child nodes.

Usage

calculate_split_statistic(Y_L, Y_R, r_a, r_b)

Value

The calculated split statistic. Returns `Inf` if a node is too small.

Arguments

Y_L

Matrix of time series in the proposed left node.

Y_R

Matrix of time series in the proposed right node.

r_a

Number of singular vectors to compute.

r_b

Number of eigenvalues to sum for the statistic.