{
  "_id": "6a1f6201b401979e7342e316",
  "Package": "ridgetorus",
  "Type": "Package",
  "Title": "PCA on the Torus via Density Ridges",
  "Version": "1.0.3",
  "Date": "2025-07-27",
  "Authors@R": "c(\nperson(given = \"Eduardo\", family = \"García-Portugués\",\nrole = c(\"aut\", \"cre\"), email = \"edgarcia@est-econ.uc3m.es\",\ncomment = c(ORCID = \"0000-0002-9224-4111\")),\nperson(given = \"Arturo\", family = \"Prieto-Tirado\", role = \"aut\",\ncomment = c(ORCID = \"0000-0003-0193-2988\"))\n)",
  "Description": "Implementation of a Principal Component Analysis (PCA) in\nthe torus via density ridge estimation. The main function,\nridge_pca(), obtains the relevant density ridge for bivariate\nsine von Mises and bivariate wrapped Cauchy distribution models\nand provides the associated scores and variance decomposition.\nAuxiliary functions for evaluating, fitting, and sampling these\nmodels are also provided. The package provides replicability to\nGarcía-Portugués and Prieto-Tirado (2023)\n<doi:10.1007/s11222-023-10273-9>.",
  "License": "GPL-3",
  "LazyData": "true",
  "URL": "https://github.com/egarpor/ridgetorus",
  "BugReports": "https://github.com/egarpor/ridgetorus/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libgsl0-dev",
  "Repository": "https://egarpor.r-universe.dev",
  "Date/Publication": "2025-07-27 17:05:04 UTC",
  "RemoteUrl": "https://github.com/egarpor/ridgetorus",
  "RemoteRef": "HEAD",
  "RemoteSha": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-02 22:57:41 UTC",
    "User": "root"
  },
  "Author": "Eduardo García-Portugués [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-9224-4111>),\nArturo Prieto-Tirado [aut] (ORCID:\n<https://orcid.org/0000-0003-0193-2988>)",
  "Maintainer": "Eduardo García-Portugués <edgarcia@est-econ.uc3m.es>",
  "MD5sum": "7d3e394fc7a6da508024552eefc8260a",
  "_user": "egarpor",
  "_type": "src",
  "_file": "ridgetorus_1.0.3.tar.gz",
  "_fileid": "83ee249889e59fdcc051b1f8a0862659e2b936d5cee2e7ce31bc976572cc5012",
  "_filesize": 1057489,
  "_sha256": "83ee249889e59fdcc051b1f8a0862659e2b936d5cee2e7ce31bc976572cc5012",
  "_created": "2026-06-02T22:57:41.000Z",
  "_published": "2026-06-02T23:06:41.737Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79189363504,
      "time": 313,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7371876538"
    },
    {
      "job": 79189363506,
      "time": 319,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7371877441"
    },
    {
      "job": 79189363539,
      "time": 363,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371888941"
    },
    {
      "job": 79189363505,
      "time": 298,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371871731"
    },
    {
      "job": 79189363499,
      "time": 196,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7371845853"
    },
    {
      "job": 79189363486,
      "time": 416,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7371902213"
    },
    {
      "job": 79189363511,
      "time": 253,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371859497"
    },
    {
      "job": 79189363481,
      "time": 482,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371918394"
    },
    {
      "job": 79188776878,
      "time": 272,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371794534"
    },
    {
      "job": 79189363455,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371833814"
    },
    {
      "job": 79189363485,
      "time": 380,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7371892394"
    },
    {
      "job": 79189363476,
      "time": 375,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7371891216"
    },
    {
      "job": 79189363495,
      "time": 366,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7371888807"
    }
  ],
  "_buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/egarpor/ridgetorus",
  "_commit": {
    "id": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
    "author": "Eduardo García-Portugués <egarpor@users.noreply.github.com>",
    "committer": "Eduardo García-Portugués <egarpor@users.noreply.github.com>",
    "message": "Update CRAN-SUBMISSION\n",
    "time": 1753635904
  },
  "_maintainer": {
    "name": "Eduardo García-Portugués",
    "email": "edgarcia@est-econ.uc3m.es",
    "orcid": "0000-0002-9224-4111"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "rootSolve",
      "role": "Imports"
    },
    {
      "package": "sdetorus",
      "role": "Imports"
    },
    {
      "package": "sphunif",
      "role": "Imports"
    },
    {
      "package": "circular",
      "role": "Imports"
    },
    {
      "package": "BAMBI",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "DirStats",
      "role": "Suggests"
    },
    {
      "package": "GGally",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "markdown",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "viridisLite",
      "role": "Suggests"
    }
  ],
  "_owner": "egarpor",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-30",
      "n": 4
    }
  ],
  "_tags": [],
  "_topics": [
    "circular-statistics",
    "dimensionality-reduction",
    "directional-statistics",
    "openblas",
    "cpp"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "egarpor",
      "count": 31,
      "uuid": 1271286
    },
    {
      "user": "apt345",
      "count": 1,
      "uuid": 52428590
    }
  ],
  "_userbio": {
    "uuid": 1271286,
    "type": "user",
    "name": "Eduardo García-Portugués"
  },
  "_downloads": {
    "count": 136,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ridgetorus"
  },
  "_devurl": "https://github.com/egarpor/ridgetorus",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/ridgetorus.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/egarpor/ridgetorus",
  "_realowner": "egarpor",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2022-12-23"
    },
    {
      "version": "1.0.1",
      "date": "2023-01-14"
    },
    {
      "version": "1.0.2",
      "date": "2023-08-28"
    },
    {
      "version": "1.0.3",
      "date": "2025-08-01"
    }
  ],
  "_exports": [
    "arclength_ridge_curve",
    "biv_lrt",
    "const_bvm",
    "d_bvm",
    "d_bwc",
    "d_bwn",
    "der_ridge_curve",
    "dist_ridge_curve",
    "fit_bvm_mle",
    "fit_bvm_mm",
    "fit_bwc_mle",
    "fit_bwc_mm",
    "fit_bwn_mle",
    "frechet_mean",
    "frechet_ss",
    "max_score_2",
    "proj_ridge_curve",
    "r_bvm",
    "r_bwc",
    "r_bwn",
    "ridge_bvm",
    "ridge_bwc",
    "ridge_bwn",
    "ridge_curve",
    "ridge_fourier_fit",
    "ridge_pca",
    "ridge_scores",
    "show_ridge_pca",
    "torus_dist",
    "torus_pairs"
  ],
  "_datasets": [
    {
      "name": "earthquakes",
      "title": "Japanese earthquakes dataset",
      "object": "earthquakes",
      "class": [
        "data.frame"
      ],
      "fields": [
        "theta1",
        "theta2"
      ],
      "rows": 678,
      "table": true,
      "tojson": true
    },
    {
      "name": "santabarbara",
      "title": "Santa Barbara currents",
      "object": "santabarbara",
      "class": [
        "data.frame"
      ],
      "fields": [
        "A",
        "B",
        "C",
        "D"
      ],
      "rows": 1092,
      "table": true,
      "tojson": true
    },
    {
      "name": "wind",
      "title": "Texas wind dataset",
      "object": "wind",
      "class": [
        "data.frame"
      ],
      "fields": [
        "theta1",
        "theta2"
      ],
      "rows": 30,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ridgetorus-package",
      "title": "'ridgetorus': PCA on the Torus via Density Ridges",
      "topics": [
        "ridgetorus-package",
        "ridgetorus"
      ]
    },
    {
      "page": "biv_lrt",
      "title": "Tests of homogeneity and independence in bivariate sine von Mises and wrapped Cauchy distributions",
      "topics": [
        "biv_lrt"
      ]
    },
    {
      "page": "bvm",
      "title": "Density evaluation, sampling, and parameter estimation of the bivariate sine von Mises distribution",
      "topics": [
        "bvm",
        "const_bvm",
        "d_bvm",
        "fit_bvm_mle",
        "fit_bvm_mm",
        "r_bvm"
      ]
    },
    {
      "page": "bwc",
      "title": "Density evaluation, sampling, and parameter estimation of the bivariate wrapped Cauchy distribution",
      "topics": [
        "bwc",
        "d_bwc",
        "fit_bwc_mle",
        "fit_bwc_mm",
        "r_bwc"
      ]
    },
    {
      "page": "bwn",
      "title": "Density evaluation, sampling, and parameter estimation of the bivariate wrapped normal distribution",
      "topics": [
        "bwn",
        "d_bwn",
        "fit_bwn_mle",
        "r_bwn"
      ]
    },
    {
      "page": "earthquakes",
      "title": "Japanese earthquakes dataset",
      "topics": [
        "earthquakes"
      ]
    },
    {
      "page": "frechet",
      "title": "Fréchet statistics on the torus",
      "topics": [
        "frechet",
        "frechet_mean",
        "frechet_ss"
      ]
    },
    {
      "page": "ridge_curve",
      "title": "Fourier-fitted ridge curve and related utilities",
      "topics": [
        "arclength_ridge_curve",
        "der_ridge_curve",
        "dist_ridge_curve",
        "proj_ridge_curve",
        "ridge_curve"
      ]
    },
    {
      "page": "ridge_distr",
      "title": "Connected component of the toroidal density ridge of a bivariate sine von Mises, bivariate wrapped Cauchy, and bivariate wrapped normal",
      "topics": [
        "ridge_bvm",
        "ridge_bwc",
        "ridge_bwn",
        "ridge_distr"
      ]
    },
    {
      "page": "ridge_fourier_fit",
      "title": "Fourier expansion of a given curve",
      "topics": [
        "ridge_fourier_fit"
      ]
    },
    {
      "page": "ridge_pca",
      "title": "Toroidal PCA via density ridges",
      "topics": [
        "ridge_pca"
      ]
    },
    {
      "page": "ridge_scores",
      "title": "Scores and scales for Fourier-fitted ridge curves",
      "topics": [
        "max_score_2",
        "ridge_scores"
      ]
    },
    {
      "page": "santabarbara",
      "title": "Santa Barbara currents",
      "topics": [
        "santabarbara"
      ]
    },
    {
      "page": "show_ridge_pca",
      "title": "Illustration of toroidal PCA via density ridges",
      "topics": [
        "show_ridge_pca"
      ]
    },
    {
      "page": "torus_dist",
      "title": "Toroidal distances",
      "topics": [
        "torus_dist"
      ]
    },
    {
      "page": "torus_pairs",
      "title": "Toroidal pairs plot",
      "topics": [
        "torus_pairs"
      ]
    },
    {
      "page": "wind",
      "title": "Texas wind dataset",
      "topics": [
        "wind"
      ]
    }
  ],
  "_readme": "https://github.com/egarpor/ridgetorus/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "circular",
    "codetools",
    "digest",
    "doFuture",
    "doRNG",
    "foreach",
    "future",
    "future.apply",
    "globals",
    "gsl",
    "iterators",
    "listenv",
    "mvtnorm",
    "parallelly",
    "Rcpp",
    "RcppArmadillo",
    "rngtools",
    "rootSolve",
    "rotasym",
    "sdetorus",
    "sphunif"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "ridgetorus.Rmd",
      "filename": "ridgetorus.html",
      "title": "ridgetorus: PCA on the Torus via Density Ridges",
      "author": "Eduardo García-Portugués and Arturo Prieto-Tirado",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Texan wind",
        "Japanese earthquakes",
        "References"
      ],
      "created": "2022-12-21 09:18:21",
      "modified": "2023-08-27 15:34:45",
      "commits": 2
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "ridgetorus",
  "_universes": [
    "egarpor"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-02T23:00:43.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "d6babe7444804c7ea138b4e981d31ec82bb537ca901ee192c12a8e1bb023f01e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-02T23:00:54.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "93b5fadd1d59bd64f90b082eee4145f18d05027ee9bb079b48273c432f3b2541",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-02T23:01:16.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "dfc486f82931d5bc6ac689fba4805e3c08c433b23c8682f2ba80e8a4fe36b92c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.3",
      "date": "2026-06-02T23:00:34.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "511c4919a0edd1ede39d8608daf61849c83625a3377e8430d11f6e68d8e2a1f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-02T22:59:44.000Z",
      "arch": "aarch64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "7ab619657e4e304e11ce714740cb586becc2c5d1abd28afc44f0d98f428242c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-02T23:01:01.000Z",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "629963c381b7c83c2b89d781f7b378de57a8f7972140bdac709926038afdfe98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-02T23:00:05.000Z",
      "arch": "aarch64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "82b0130300878b1b48b2ceafbf545b1370693e9425a906b0e41b6bc1485c7a5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.3",
      "date": "2026-06-02T23:01:59.000Z",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "c7fea3b2b388617b17fa3a04974acd911d62c2f1bdb1f155ad57b5108310979b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.3",
      "date": "2026-06-02T23:00:36.000Z",
      "arch": "emscripten",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "c074270e4f1b8e866b0e9de6de86d7ee32398b9d49d36971e9a242664eb6c30f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.3",
      "date": "2026-06-02T22:59:25.000Z",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "96be518c22431a8f56066ce477ffb56a995cae3b2491e81326738c95c7dcbe63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.3",
      "date": "2026-06-02T22:59:30.000Z",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "f9afff0f7afd1d698280425efe175a48349833d70e041ce6e7078d52cd05c4c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.3",
      "date": "2026-06-02T22:59:24.000Z",
      "arch": "x86_64",
      "commit": "9e1f9b5104f0af26e972e2aeec02c9fe11419c34",
      "fileid": "21c6a7163726e89bbf3b619fd4cbf970dfe5b9f075f730703a2096a7c7ac770f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/egarpor/actions/runs/26852811724"
    }
  ]
}