Internal function to iterate through all possible split points in all covariates to find the split that minimizes the split statistic.
find_best_split(X_node, Y_node, indices, r_a, r_b, control)A list containing the best split found, including the statistic, split variable, split value, and indices for the left and right children.
Covariate matrix for the current node.
Time series matrix for the current node.
Original indices of the observations in the current node.
Parameter passed to `calculate_split_statistic`.
Parameter passed to `calculate_split_statistic`.
The parameters used in split.