Cálculo y visualización de β-esqueletos mediante fuerza bruta
Project description
beta-skeletons
Librería para el cálculo y visualización de β-esqueletos mediante fuerza bruta.
Instalación
pip install beta-skeletons
O en modo desarrollo:
git clone https://github.com/tu-usuario/beta-skeletons.git
cd beta-skeletons
pip install -e ".[dev]"
Uso básico
import numpy as np
from beta_skeletons import adjacency_matrix, build_graph, plot_skeleton
from beta_skeletons import relative_asymmetry, control_value, plot_metric_bars
coords = np.array([[0,0],[1,0],[2,0],[1,1]], dtype=float)
names = ["A", "B", "C", "D"]
# Matriz de adyacencia
adj = adjacency_matrix(coords, beta=1.0)
# Grafo de NetworkX
G = build_graph(coords, beta=2.0, labels=names)
# Visualización
ax, G = plot_skeleton(coords, beta=1.0, labels=names)
# Métricas
ra = relative_asymmetry(G)
cv = control_value(G)
plot_metric_bars(ra, metric_name="Asimetría relativa")
Estructura del paquete
beta_skeletons/
├── geometry.py # cálculo de lunas y vecindades
├── skeleton.py # matriz de adyacencia y construcción del grafo
├── metrics.py # asimetría relativa y valor de control
└── viz.py # visualizaciones
Referencia
Kirkpatrick, D. G. y Radke, J. D. (1985). A Framework for Computational Morphology. Computational Geometry, pp. 217-248.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ohtli-0.1.0.tar.gz
(8.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ohtli-0.1.0-py3-none-any.whl
(8.5 kB
view details)
File details
Details for the file ohtli-0.1.0.tar.gz.
File metadata
- Download URL: ohtli-0.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c12b1027baa16cd048a542f857258976b90fc4262062aac6f7526bf10ef4c31
|
|
| MD5 |
c040eec5cd3f6f130c01376f68c2fdda
|
|
| BLAKE2b-256 |
19275a6f8f65694d2e57cb99dba24d7acdf96cf9ad556c3272db2d67c4a3b744
|
File details
Details for the file ohtli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ohtli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af1c0e4007b393dfc450c695fcc9dca2d3868e45a98626fec7aa1fc98bd4ee4
|
|
| MD5 |
380113f41b4ebc986528aa1434f08fa5
|
|
| BLAKE2b-256 |
2d3b5c67317569e047bbfc345fa34bd90b6d9f74971ca39290389ebc5ccdb26f
|