clupoints_n_1_template¶
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.
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.
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.
Return values¶
points: Generated points (\(p \times n\) matrix).
Note¶
This function is stochastic. For reproducibility set the PRNG seed with
cluseed() as discussed in the Reference.