Package: deadwood 0.9.2

Marek Gagolewski

deadwood: Outlier Detection via Pruning Mutual Reachability Minimum Spanning Trees

Implements an anomaly detection algorithm based on a dataset's mutual reachability minimum spanning tree: 'deadwood' prunes protruding tree segments and marks small debris as outliers; see Gagolewski (2026) <https://deadwood.gagolewski.com/>. More precisely, tree edges with weights greater than the detected elbow point are removed. All the resulting connected components whose sizes do not exceed a prespecified threshold are deemed anomalous. The use of a mutual reachability distance pulls peripheral observations farther away from one another. If the dataset is comprised of well-separated clusters of heterogeneous densities, an attempt to split the dataset and refine the outlierness markers will be made. The 'Python' version of 'deadwood' is available via 'PyPI'.

Authors:Marek Gagolewski [aut, cre, cph]

deadwood_0.9.2.tar.gz
deadwood_0.9.2.zip(r-4.7-x86_64)deadwood_0.9.2.zip(r-4.7-arm64)deadwood_0.9.2.zip(r-4.6-x86_64)deadwood_0.9.2.zip(r-4.6-arm64)
deadwood_0.9.2.tar.gz(r-4.7-arm64)deadwood_0.9.2.tar.gz(r-4.7-x86_64)deadwood_0.9.2.tar.gz(r-4.6-arm64)deadwood_0.9.2.tar.gz(r-4.6-x86_64)
deadwood_0.9.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
deadwood/json (API)

# Install 'deadwood' in R:
install.packages('deadwood', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gagolews/deadwood/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

cppopenmp

3.09 score 10 packages 2.1k downloads 3 exports 2 dependencies

Last updated from:c3999a2b18. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK136
linux-devel-x86_64OK146
source / vignettesOK179
linux-release-arm64OK132
linux-release-x86_64OK154
windows-devel-arm64OK209
windows-devel-x86_64OK128
windows-release-arm64OK224
windows-release-x86_64OK89
wasm-releaseOK122

Exports:deadwoodkneedle_increasingmst

Dependencies:quitefastmstRcpp

Readme and manuals

Help Manual

Help pageTopics
Deadwood: Outlier Detection via Pruning Mutual Reachability Minimum Spanning Treesdeadwood deadwood.default deadwood.dist deadwood.mst deadwood.mstclust
Knee/Elbow Point Detectionkneedle kneedle_increasing
Euclidean and Mutual Reachability Minimum Spanning Treesmst mst.default mst.dist