rust_ward_constrained: Solve spatially-constrained Ward clustering

View source: R/extendr-wrappers.R

rust_ward_constrainedR Documentation

Solve spatially-constrained Ward clustering

Description

Solve spatially-constrained Ward clustering

Usage

rust_ward_constrained(attrs, n_regions, adj_i, adj_j)

Arguments

attrs

Attribute matrix (n x p)

n_regions

Number of regions to create

adj_i

Row indices of adjacency (0-based)

adj_j

Column indices of adjacency (0-based)

Value

List with labels, n_regions, objective


spopt documentation built on April 22, 2026, 9:07 a.m.