Create points from their projections on a cluster-supporting line
Source:R/helper.R
clupoints_n_1_template.Rd
Generate points from their \(n\)-dimensional projections on a
cluster-supporting line, placing each point on a hyperplane orthogonal to
that line and centered at the point's projection. The function specified in
dist_fn
is used to perform the actual placement.
Arguments
- projs
Point projections on the cluster-supporting line (\(p \times n\) matrix).
- lat_disp
Dispersion of points from their projection.
- clu_dir
Direction of the cluster-supporting line (unit vector).
- dist_fn
Function to place points on a second line, orthogonal to the first.
Details
This function is used internally by clupoints_n_1 and may be useful for
constructing user-defined final point placement strategies for the
point_dist_fn
parameter of the main clugen function.
Note
This function is stochastic. For reproducibility set a PRNG seed with set.seed.