Skip to contents

Riemann brings established learning algorithms for manifold-valued data together through a common R interface. It provides supervised classification, clustering, tangent transformations and PCA, regression with scalar or manifold responses, descriptive summaries, inference, and probability models for observations such as positive-definite matrices, directions, and landmark shapes. The implementation combines R, native C++, and selected R-package backends.

Version 0.2.0

This documentation describes development version 0.2.0, available from GitHub and requiring R 4.4 or later. Its core workflow records the selected geometry in its fitted summaries and learning models. Prediction reuses the training geometry and reference. SPD models support affine-invariant, log-Euclidean and Bures–Wasserstein geometry where listed by riem.capabilities(). See the release notes for the changes and numerical corrections in this version.

library(Riemann)
x <- wrap.spd(list(diag(c(1, 2)), diag(c(2, 3)), diag(c(4, 1))))
fit <- riem.pga(x, ndim = 2, geometry = "log_euclidean")
predict(fit, x)
#>             PC1         PC2
#> [1,] -0.6218966 -0.32076986
#> [2,] -0.2887207  0.40987969
#> [3,]  0.9106173 -0.08910983
summary(fit)$geometry
#> Geometry: log_euclidean on spd
#> Representation: 2 x 2 ; intrinsic dimension: 3
#> Validation: core_contract

Read the geometry workflows, migration guide, and descriptive data applications. riem.capabilities() reports available geometric operations; the method contracts distinguish the consolidated core from bounded legacy contracts and experimental routines. Intrinsic Stiefel and correlation computations are currently unavailable. Landmark shape workflows permit reflections by default. Choose proper rotations when mirror images must remain distinguishable.

License

The author-owned software in the September 21, 2026 revision of version 0.2.0 is licensed under GPL-3. Earlier MIT releases and preserved archives retain their original license. Third-party notices are retained in inst/COPYRIGHTS; dependencies retain their own license notices. Dataset sources and verification records are documented in inst/provenance/README.md.

Installation

Install the released version from CRAN.

install.packages("Riemann")

To install the development version from GitHub, use R 4.4 or later and the tools for building R packages from source. Windows users need Rtools for their version of R. On macOS, see the R toolchain instructions. On Linux, install the R development tools supplied by your distribution.

if (!requireNamespace("remotes", quietly = TRUE)) {
  install.packages("remotes")
}
remotes::install_github("kisungyou/Riemann")
packageVersion("Riemann")

For a reproducible installation, supply the commit SHA from your analysis or review as the ref argument to install_github(). Use the example above to check that a fitted tangent model can score observations.

Contact

Run citation("Riemann") in R for the citation of your installed version. Report a problem or ask a usage question in the issue tracker. The contributing guide explains how to reproduce a problem, test a change, and propose a pull request.