# curveDepth 0.1.0.16 (CRAN)

Tukey Curve Depth and Distance in the Space of Curves

[Record of 0.1.0.16](/cran/curveDepth/v/0.1.0.16.md) | Compare: [With 0.1.0.9](/cran/curveDepth/compare/0.1.0.9...0.1.0.16.md), [With another package](/compare/curveDepth.md#add), [Downloads](/downloads/compare/curveDepth.md#add) | [Licences](/cran/curveDepth/licences.md) | [SBOM](/cran/curveDepth/sbom.md)

Install from CRAN: `install.packages("curveDepth")`

Also from:

- r2u (Ubuntu binaries): `sudo apt install r-cran-curvedepth` _Listed from recorded download activity on this channel, not from a live index, so read it as last known. Bioconductor packages are named r-bioc-<name> there._
- Fedora COPR (iucar/cran): `sudo dnf install R-CRAN-curveDepth` _A rebuild of what CRAN lists, so it can lag CRAN by a rebuild._
- autoCRAN (openSUSE): `sudo zypper install R-curveDepth` _Listed from recorded download activity on this channel, not from a live index, so read it as last known._

- CRAN checks: All OK (13 platforms)
- CRAN 30-day downloads: 289 (down 17.4% on the 30 days before, the worse direction)
- Dependent packages: 0 (none suggest it)
- Test coverage: No tests (nothing to run)
- Advisories: None known

## About

[Method](/about/licenses.md)

Data recorded as paths or trajectories may be suitably described by curves, which are independent of their parametrization.

**Full description**

Data recorded as paths or trajectories may be suitably described by curves, which are independent of their parametrization. For the space of such curves, the package provides functionalities for reading curves, sampling points on curves, calculating distance between curves and for computing Tukey curve depth of a curve w.r.t. to a bundle of curves. For details see Lafaye De Micheaux, Mozharovskyi, and Vimond (2021) <doi:10.48550/arXiv.1901.00180>.

- Maintainer: Pavlo Mozharovskyi
- Licence: [GPL (>= 2)](/cran/curveDepth/licences.md)
- Latest release: 21 Sep 2025
- First release: 8 Jan 2019

- [CRAN page](https://cran.r-project.org/package=curveDepth)
- [Source of every release](https://github.com/cran/curveDepth)

[Compare with another package](/compare/curveDepth.md#add)

**More details**

- Releases: 4
- Needs compilation: Yes
- Date: 2025-09-21
- RoxygenNote: 7.3.3

**Subjects (1) [Method](/about/subjects.md#found)**

- [ROC curve analysis](/topics/subjects/roc-curve-analysis-2.md)

**Cite**

#### Package

Run in R for the authors' preferred citation:

`citation("curveDepth")`

APA: Mozharovskyi, P., Lafaye De Micheaux, P., & Vimond, M. (2025). curveDepth: Tukey Curve Depth and Distance in the Space of Curves (Version 0.1.0.16) [Computer software]. https://doi.org/10.32614/CRAN.package.curveDepth

BibTeX:

```
@Manual{curveDepth,
  title  = {curveDepth: Tukey Curve Depth and Distance in the Space of Curves},
  author = {Mozharovskyi, Pavlo and Lafaye De Micheaux, Pierre and Vimond, Myriam},
  year   = {2025},
  note   = {R package version 0.1.0.16},
  doi    = {10.32614/CRAN.package.curveDepth},
  url    = {https://CRAN.R-project.org/package=curveDepth}
}
```

This package has no citation file, so `citation()` returns this entry built from `DESCRIPTION`.

#### R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA: Balamuta, J. J. (2026). R Observatory: Metrics for curveDepth version 0.1.0.16 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040

BibTeX:

```
@misc{robservatorycurveDepth,
  author    = {Balamuta, James Joseph},
  title     = {{R} {Observatory}: Metrics for {curveDepth} version 0.1.0.16},
  year      = {2026},
  publisher = {HJJB, LLC},
  doi       = {10.5281/zenodo.21843040},
  url       = {https://r-observatory.thecoatlessprofessor.com/packages/curveDepth},
  note      = {Data set. Data release v2026-10-28}
}
```

From data release v2026-10-28, which the citation names so these numbers can be found later.

## Health

[Method](/about/checks-health.md)

All 13 check platforms pass.

13 CRAN platforms: 13 OK.

Platforms now:

- r-devel-linux-x86_64-debian-clang: OK
- r-devel-linux-x86_64-debian-gcc: OK
- r-devel-linux-x86_64-fedora-clang: OK
- r-devel-linux-x86_64-fedora-gcc: OK
- r-devel-windows-x86_64: OK
- r-oldrel-macos-arm64: OK
- r-oldrel-macos-x86_64: OK
- r-oldrel-windows-x86_64: OK
- r-patched-linux-x86_64: OK
- r-release-linux-x86_64: OK
- r-release-macos-arm64: OK
- r-release-macos-x86_64: OK
- r-release-windows-x86_64: OK

#### Over time

No change since 5 Aug 2026

**As a list (11)**

| Changed | Worst status | OK | Notes | Warnings | Errors |
| --- | --- | ---: | ---: | ---: | ---: |
| 5 Aug 2026 | OK | 13 | 0 | 0 | 0 |
| 1 Aug 2026 | Note | 12 | 1 | 0 | 0 |
| 2 May 2026 | OK | 13 | 0 | 0 | 0 |
| 25 Apr 2026 | Note | 11 | 1 | 0 | 0 |
| 22 Apr 2026 | OK | 14 | 0 | 0 | 0 |
| 18 Apr 2026 | Error | 13 | 0 | 0 | 1 |
| 16 Apr 2026 | OK | 14 | 0 | 0 | 0 |
| 10 Apr 2026 | Note | 11 | 3 | 0 | 0 |
| 9 Apr 2026 | Error | 10 | 3 | 0 | 1 |
| 28 Mar 2026 | Note | 13 | 1 | 0 | 0 |
| 10 Mar 2026 | OK | 14 | 0 | 0 | 0 |

Since March 2026

[Check results on CRAN](https://cran.r-project.org/web/checks/check_results_curveDepth.html)

## Downloads

[Method](/about/downloads.md)

- Downloads in the last 30 days: 297 (down 22.5% on the 30 days before, the worse direction. It is the sum of 3 channels: CRAN, r2u and autoCRAN.)

CRAN alone: rank among CRAN packages, last 30 days: 14,504 of 26,530.

| Channel | Downloads in the last 30 days | In the total | Rank in that channel | Change |
| --- | ---: | --- | --- | --- |
| CRAN | 289 | yes | 14,504 of 26,530 | down 17.4% on the 30 days before, the worse direction |
| r2u | 2 | yes | 14,902 of 30,526 | down 88.2% on the 30 days before, the worse direction |
| autoCRAN | 6 | yes | 8,234 of 29,212 | down 62.5% on the 30 days before, the worse direction |

Other windows: [Last 90 days](/cran/curveDepth.md?win=90d#downloads), [Last 365 days](/cran/curveDepth.md?win=365d#downloads), [All time](/cran/curveDepth.md?win=all#downloads).

To leave channels out of the total, name them in the address, joined by dots: `?off=r2u.autocran`.

#### Over time

Downloads over time, the last 12 whole months:

| Month | CRAN | r2u | autoCRAN | Sum |
| --- | ---: | ---: | ---: | ---: |
| Oct 2025 | 270 | 43 | no figure | 313 |
| Nov 2025 | 162 | 34 | no figure | 196 |
| Dec 2025 | 141 | 33 | no figure | 174 |
| Jan 2026 | 209 | 29 | no figure | 238 |
| Feb 2026 | 211 | 37 | no figure | 248 |
| Mar 2026 | 255 | 31 | no figure | 286 |
| Apr 2026 | 217 | 48 | no figure | 265 |
| May 2026 | 175 | 45 | no figure | 220 |
| Jun 2026 | 277 | 26 | no figure | 303 |
| Jul 2026 | 253 | 20 | no figure | 273 |
| Aug 2026 | 214 | 19 | 28 | 261 |
| Sep 2026 | 346 | no figure | 15 | not whole yet |

The sum stops at Aug 2026: r2u has no later month on record yet.

First day on record: CRAN 8 Jan 2019, r2u 22 May 2022, autoCRAN 2 Jul 2026.

Every channel here counts downloads, so the channels can be stacked and summed for one period. Each channel counts in its own way and covers a different span of years, so read a sum as a rough total, and read a rise where a channel begins as that channel starting, not as growth.

Weeks start on Monday. A first or last week or month that the channel does not cover in full is left out, so every point is a whole period.

Days with no record add nothing to their week or month. For a little-used package that is usually a day with no downloads, but it can also be a gap in collection.

[Compare downloads](/downloads/compare/curveDepth.md#add)

## Dependencies

[Method](/about/reverse-dependencies.md)

- Needs: 3
- Dependent packages: 0
- Suggested by: 0

**Needs (3)**

- [ddalpha](/cran/ddalpha.md)
- [Rcpp](/cran/Rcpp.md)
- [RcppArmadillo](/cran/RcppArmadillo.md)

- Installing it adds: 13 packages, 21.4 MB of source
- Of those, need compilation: 6

## Code

[Method](/about/code-metrics.md)

Selected function: `images2curves`

- Kind: Public R function
- File: R/RcppExports.R, line 478
- Lines: 3
- Complexity: 1

Called by 1: [`images`](/cran/curveDepth.md?fn=images&view=focus#code)

Calls 0: nothing else in this package

Paths: 2 steps each way.

Called by 1:

- [`images`](/cran/curveDepth.md?fn=images&view=focus#code)

Calls 0:

- nothing else in this package

The open file in the files map is `R/RcppExports.R`.

- Functions: 8
- Lines: 24
- Calls that stay inside it: 0
- Calls to other files: 0
- Calls from other files: 1, from 1

Called from: `src/RcppExports.cpp` (1 call)

| Function in RcppExports.R | Calls in other files |
| --- | --- |
| [`images2curves`](/cran/curveDepth.md?fn=images2curves&view=focus#code) selected | nothing outside this file |
| [`depth.curve.Tukey`](/cran/curveDepth.md?fn=depth.curve.Tukey&view=focus#code) | nothing outside this file |
| [`depthc.Tukey`](/cran/curveDepth.md?fn=depthc.Tukey&view=focus#code) | nothing outside this file |
| [`dist.curves`](/cran/curveDepth.md?fn=dist.curves&view=focus#code) | nothing outside this file |
| [`dist.curves.asymm`](/cran/curveDepth.md?fn=dist.curves.asymm&view=focus#code) | nothing outside this file |

**More functions (3)**

| Function in RcppExports.R | Calls in other files |
| --- | --- |
| [`dist.images`](/cran/curveDepth.md?fn=dist.images&view=focus#code) | nothing outside this file |
| [`sample.curves`](/cran/curveDepth.md?fn=sample.curves&view=focus#code) | nothing outside this file |
| [`voxelize`](/cran/curveDepth.md?fn=voxelize&view=focus#code) | nothing outside this file |


1 file with no calls to or from another: `src/voxelize.cpp`.

The whole package has 48 function names in 7 files and 22 calls between them. Most calls between files: `src/depthsCurveHfsp.cpp` and `src/routines.cpp` (4 calls), `src/hypermatrix.h` and `src/routines.cpp` (3 calls), `src/depthsCurveHfsp.cpp` and `src/RcppExports.cpp` (2 calls), `src/depthsCurveHfsp.cpp` and `src/routines.h` (1 call), `R/RcppExports.R` and `src/RcppExports.cpp` (1 call).

Graph: the whole call graph has 30 function names that take part in a call and 22 calls between them, set out in 4 layers with callers before what they call. 18 function names have no calls and are left out. Called by the most functions: `clear` (2), `norm2` (2), `getMinMaxDist` (1), `empDistPortion` (1), `projectCurveVoxels` (1). Calling the most functions: `depths` (4), `approxOneDepth` (2), `calcOneDepth` (2), `calcExPointDepthRec` (2), `getMinMaxDist` (1).

Most connected functions: [`images2curves`](/cran/curveDepth.md?fn=images2curves&view=focus#code) 1

To select another function, add ?fn=NAME to this address.

The call graph also has an address of its own: /cran/curveDepth/graph.md?fn=images2curves&view=focus

- Functions: 61
- Public exports: 8
- Lines of R code: 647
- Median complexity: 1

**Functions (61)**

| Function (sorted, low to high) | Kind | File | Lines | Complexity |
| --- | --- | --- | ---: | ---: |
| [`depth.curve.Tukey`](/cran/curveDepth.md?fn=depth.curve.Tukey#code) | Public | R/RcppExports.R | 3 | 1 |
| [`depthc.Tukey`](/cran/curveDepth.md?fn=depthc.Tukey#code) | Public | R/RcppExports.R | 3 | 1 |
| [`dist.curves`](/cran/curveDepth.md?fn=dist.curves#code) | Public | R/RcppExports.R | 3 | 1 |
| [`dist.curves.asymm`](/cran/curveDepth.md?fn=dist.curves.asymm#code) | Public | R/RcppExports.R | 3 | 1 |
| [`dist.images`](/cran/curveDepth.md?fn=dist.images#code) | Public | R/RcppExports.R | 3 | 1 |
| [`images2curves`](/cran/curveDepth.md?fn=images2curves#code) | Public | R/RcppExports.R | 3 | 1 |
| [`sample.curves`](/cran/curveDepth.md?fn=sample.curves#code) | Public | R/RcppExports.R | 3 | 1 |
| [`voxelize`](/cran/curveDepth.md?fn=voxelize#code) | Public | R/RcppExports.R | 3 | 1 |
| [`Compare`](/cran/curveDepth.md?fn=Compare#code) |  | src/routines.cpp | 3 |  |
| [`Compare`](/cran/curveDepth.md?fn=Compare#code) |  | src/routines.cpp | 3 |  |
| [`Curve::distCurve`](/cran/curveDepth.md?fn=Curve%3A%3AdistCurve#code) |  | src/routines.cpp | 108 |  |
| [`Curve::distHausdorff`](/cran/curveDepth.md?fn=Curve%3A%3AdistHausdorff#code) |  | src/routines.cpp | 61 |  |

This page lists 1 to 12 of 61 functions. [Next](/cran/curveDepth.md?sort=name&order=asc&fpage=2#functions)

**Size and composition**

#### Lines by kind (5,515)

| Kind | Lines | Share |
| --- | ---: | ---: |
| R code | 647 | 12% |
| Documentation | 753 | 14% |
| Compiled code | 4,115 | 75% |

#### Lines by language

| Language | Lines | Share |
| --- | ---: | ---: |
| C++ | 3,555 | 65% |
| Rd | 753 | 14% |
| R | 647 | 12% |
| C | 560 | 10% |

Languages are counted from file extensions.

- Files: 21
- R functions: 8
- Compiled functions: 53

**Complexity**

- Median: 1
- Mean: 1
- Highest: 1
- Median lines per function: 3

_About complexity: Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only._

**Call graph figures**

- R functions: 8
- Calls: 0
- Unconnected: 8
- Groups: 0

**Growth (4 releases)**

Total lines by release: from 5,421 (on 8 Jan 2019) to 5,515 (on 21 Sep 2025). The lowest is 5,421 and the highest is 5,515.

**Release changes**

[Both releases side by side](/cran/curveDepth/compare/0.1.0.9...0.1.0.16.md)

**0.1.0.9 to 0.1.0.16**, 19 Feb 2019 to 21 Sep 2025

- Files changed: 8
- Lines added: 121
- Lines deleted: 46
- Exports: No change

**Changed measures (7)**

| Measure | Subject | Before | After |
| --- | --- | ---: | ---: |
| Total lines | Structure | 5,439 | 5,515 |
| Lines of R code | Structure | 635 | 647 |
| Lines of compiled code | Structure | 4,083 | 4,115 |
| Compiled share | Languages | 75% | 75% |
| Lines of documentation | Documentation | 721 | 753 |
| Arguments documented | Documentation | 96% | 97% |
| System requirements | Requirements | 1 |  |

**Most changed files (8 of 8)**

| File | Lines added | Lines deleted |
| --- | ---: | ---: |
| `src/depthsCurveHfsp.cpp` | 36 | 12 |
| `man/depthc.Tukey.Rd` | 22 | 3 |
| `src/RcppExports.cpp` | 16 | 8 |
| `R/RcppExports.R` | 16 | 4 |
| `DESCRIPTION` | 7 | 8 |
| `man/depth.curve.Tukey.Rd` | 12 | 3 |
| `MD5` | 7 | 7 |
| `man/sample.curves.Rd` | 5 | 1 |

## Tests

[Method](/about/coverage.md)

The package was built and has no tests to run.

- Lines of tests: 0
- Exports named in tests: 0%

**Test suite**

- Has tests: No
- Test frameworks: No tests in this release
- Test lines per line of code: 0

## Documentation

[Method](/about/code-metrics.md)

- Exports documented: 100%
- Arguments documented: 96.9%
- Return value documented: 100%
- Help pages with examples: 88.9%
- Examples run in checks: 100%

**Other documentation**

- README: No
- Release notes file: No
- Help pages: 9
- Lines of documentation: 753

## Datasets

[Method](/about/objects.md)

| Dataset | Size |
| --- | --- |
| [mnistShort017](/cran/curveDepth/data/mnistShort017.md), A short version of the MNIST data set | length 3 |

## People

[Method](/about/author-identity.md)

- [Pavlo Mozharovskyi](/people/Pavlo+Mozharovskyi.md): Maintainer since 0.1.0.7 (2019), author
- [Pierre Lafaye De Micheaux](/people/Pierre+Lafaye+De+Micheaux.md): Author
- [Myriam Vimond](/people/Myriam+Vimond.md): Author

## Repository

[Method](/about/repo-signals.md#figures)

No repository on record

## History

[Method](/about/archive.md)

The line runs from the first release of curveDepth on 8 Jan 2019 to 28 Oct 2026 and marks all 4 of its releases.

| Version | Released | R |
| --- | --- | ---: |
| [0.1.0.16](/cran/curveDepth/v/0.1.0.16.md) current | 21 Sep 2025 | 4.5.1 |
| [0.1.0.9](/cran/curveDepth/v/0.1.0.9.md) | 19 Feb 2019 | 3.5.2 |
| [0.1.0.8](/cran/curveDepth/v/0.1.0.8.md) | 21 Jan 2019 | 3.5.2 |
| [0.1.0.7](/cran/curveDepth/v/0.1.0.7.md) | 8 Jan 2019 | 3.5.2 |

---

R Observatory is independent of the R Project, CRAN and Bioconductor. The same page for people is at /cran/curveDepth, and every address is listed at /llms.txt.
