R/srr-general-standards.R

#' srr_stats_general
#'
#' `Rpcop` implements principal curves of oriented points following Delicado
#' (2001) and Delicado and Huerta (2003). The package is an Rcpp port of the
#' original C++ implementation, with an R wrapper that returns both the original
#' PCOP output and a `princurve`-style projected curve.
#'
#' @srrstatsVerbose TRUE
#'
#' @srrstats {G1.0} Primary academic references are listed in DESCRIPTION,
#' README, the vignette, and inst/CITATION.
#' @srrstats {G1.1} README and the vignette describe the package as an Rcpp port
#' of the original C++ implementation.
#' @srrstats {G1.2} README documents the package lifecycle and prior-art scope.
#' @srrstats {G1.3} Function docs and the vignette define PCOP, the `Ch` and
#' `Cd` tuning parameters, and the returned object structure.
#' @srrstats {G1.4} The exported function uses roxygen2 documentation.
#' @srrstats {G1.4a} The internal Rcpp backend is documented for generated
#' internal help and covered by package tests.
#' @srrstats {G1.5} The vignette and examples include reproducible code for the
#' primary package workflow.
#' @srrstats {G1.6} Tests exercise deterministic synthetic data sets and stress
#' cases for the native backend and wrapper.
#'
#' @srrstats {G2.0} Scalar and range assertions are implemented in `pcop()`.
#' @srrstats {G2.0a} Function docs document scalar expectations for `Ch`, `Cd`,
#' and `plot.true`.
#' @srrstats {G2.1} Type assertions are implemented for `x`, `Ch`, `Cd`, and
#' `plot.true`.
#' @srrstats {G2.1a} Function docs document accepted input types.
#' @srrstats {G2.2} Matrix-like data are checked after conversion to the internal
#' numeric matrix representation.
#' @srrstats {G2.3} Character inputs are not accepted for statistical data or
#' options.
#' @srrstats {G2.3a} There are no character-valued statistical options.
#' @srrstats {G2.3b} See G2.3a.
#' @srrstats {G2.4} Type conversion is explicit through `as.matrix()` followed
#' by numeric validation before native code is called.
#' @srrstats {G2.4a} Integer matrices are accepted as numeric input.
#' @srrstats {G2.4b} All computation is performed on numeric matrices.
#' @srrstats {G2.4c} Character data are rejected.
#' @srrstats {G2.4d} Factor data are rejected after matrix conversion.
#' @srrstats {G2.4e} Factor labels are not used in the PCOP algorithm.
#' @srrstats {G2.5} Factor inputs are not meaningful for principal curves and are
#' rejected.
#' @srrstats {G2.6} One-dimensional submitted vectors are normalized to matrices.
#' @srrstats {G2.7} Numeric data frames are supported and documented.
#' @srrstats {G2.8} Pre-processing normalizes input data to one numeric matrix.
#' @srrstats {G2.9} Non-numeric and non-finite inputs are rejected rather than
#' silently coerced into native computation.
#' @srrstats {G2.10} Matrix and data-frame column extraction uses `drop = FALSE`
#' where dimensions need to be preserved.
#' @srrstats {G2.11} Standard numeric matrix columns are accepted and tested.
#' @srrstats {G2.12} List and non-numeric data-frame columns are rejected through
#' numeric matrix validation.
#' @srrstats {G2.13} Missing data are checked before analytic routines.
#' @srrstats {G2.14} Missing values are rejected, as documented in `pcop()`.
#' @srrstats {G2.14a} Missing-value imputation is not offered because it would
#' alter the geometry of the submitted point cloud.
#' @srrstats {G2.14b} Missing values are not ignored.
#' @srrstats {G2.14c} Imputation is out of scope for this package.
#' @srrstats {G2.15} Non-finite values are rejected before computation.
#' @srrstats {G2.16} `NA`, `NaN`, `Inf`, and `-Inf` values are rejected.
#'
#' @srrstats {G3.0} Floating-point comparisons in tests use tolerances where
#' numerical equality is asserted.
#' @srrstats {G3.1} User-selectable covariance algorithms are not part of PCOP
#' curve fitting.
#' @srrstats {G3.1a} See G3.1.
#' @srrstats {G4.0} Package functions do not write statistical outputs to local
#' files.
#' @noRd
NULL

Try the Rpcop package in your browser

Any scripts or data that you put into this service are public.

Rpcop documentation built on June 24, 2026, 5:08 p.m.