Given the Cluster's frame's row position to split at split_row
, this
function performs the split, calculate all necessary information for the
splitting tree and cluster memberships.
splitter(
toclust.fd,
split_row,
frame,
cloc,
dist,
dsubs,
dsubsname,
weights,
method
)
Updated frame
and cloc
saved in a list.
A functional data object (i.e., having class fd
) created
from fda
package. See fda::fd()
.
The row index in frame that would be split on.
The split tree transferred as data frame.
Vector of current cluster membership.
Distance matrix of all observations in the data.
Distance matrix calculated on each subregion. A three-dimensional matrix.
Subregion names.
(Currently unused) Weights on observations.
The clustering method you want to run in each subregion. Can be
chosen between pam
and ward
.