| deprecated-radius-graph-constructors | R Documentation |
create.radius.graph() and create.adaptive.radius.graph() are deprecated
compatibility wrappers. Use create.rknn.graph() with type = "fixed" or
type = "adaptive.radius" instead.
create.radius.graph(
X,
radius,
prune.method = c("none", "local.geodesic", "global.geodesic.ratio"),
max.path.edge.ratio.deviation.thld = 0.1,
path.edge.ratio.percentile = 0.5,
prune.tau = 1.05,
prune.local.k = NULL,
with.pruned.edge.stats = FALSE,
connect.components = FALSE,
connect.method = c("component.mst", "component.mst.ann", "global.mst"),
bridge.k = NULL,
bridge.k.max = NULL,
bridge.growth = 2
)
create.adaptive.radius.graph(
X,
k.scale,
radius.factor = 1,
radius.rule = c("max", "min", "geomean"),
radius.search = c("ann", "all.pairs"),
return.timing = FALSE,
graph.detail = c("full", "minimal"),
prune.method = c("none", "local.geodesic", "global.geodesic.ratio"),
max.path.edge.ratio.deviation.thld = 0.1,
path.edge.ratio.percentile = 0.5,
prune.tau = 1.05,
prune.local.k = NULL,
with.pruned.edge.stats = FALSE,
connect.components = FALSE,
connect.method = c("component.mst", "component.mst.ann", "global.mst"),
bridge.k = NULL,
bridge.k.max = NULL,
bridge.growth = 2
)
X |
Numeric matrix or data frame with observations in rows. |
radius |
Fixed radius passed to |
prune.method, max.path.edge.ratio.deviation.thld, path.edge.ratio.percentile, prune.tau, prune.local.k, with.pruned.edge.stats |
Geometric
pruning controls passed to |
connect.components, connect.method, bridge.k, bridge.k.max, bridge.growth |
Component
repair controls passed to |
k.scale, radius.factor, radius.rule, radius.search |
Adaptive-radius
parameters passed to |
return.timing, graph.detail |
Adaptive-radius output controls passed to
|
A graph list produced by create.rknn.graph(). The fixed-radius
wrapper returns an object of class "radius_graph"; the adaptive-radius
wrapper returns an object of class "adaptive_radius_graph". Each object
contains the final adjacency and weight lists, an edge matrix and edge
weights, graph-construction parameters, and component, pruning, and repair
diagnostics.
X <- matrix(c(0, 1, 3), ncol = 1)
create.rknn.graph(X, type = "fixed", radius = 1.1)$edge_matrix
create.rknn.graph(X, type = "adaptive.radius", k.scale = 1)$edge_matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.