semantic-boundaries
Utilities for constructing boundaries around 2D semantic spaces.
Installation
pip install semantic-boundaries
Usage
import numpy as np
from semantic_boundaries import boundary
P=np.column_stack([x,y])
x_with_boundary,x1,y1,xgrid,ygrid,h0=boundary(P)
P must be an (n,2) array containing x/y coordinates.
boundary(
P,
grid=50,
density=0.40,
box_offset=0.1,
tightness="auto"
)
Returns:
- x_with_boundary
- x1
- y1
- xgrid
- ygrid
- h0
semantic-boundaries/ ├── pyproject.toml ├── README.md ├── src/ │ └── semantic_boundaries/ │ ├── init.py │ └── boundary.py └── tests/
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
semantic_boundaries-0.1.0.tar.gz
(45.2 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
File details
Details for the file semantic_boundaries-0.1.0.tar.gz.
File metadata
- Download URL: semantic_boundaries-0.1.0.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
115ce28d8349b83b8c6bce9b98460b847be48f80f1b76477369e01d15b87d6a7
|
|
| MD5 |
0a25020571814097b146d4ac6d878350
|
|
| BLAKE2b-256 |
97b839433fc18b3a25aa2a7a91598c81aae1ba21e8b794d0047e0fbd6aaa6a70
|
File details
Details for the file semantic_boundaries-0.1.0-py3-none-any.whl.
File metadata
- Download URL: semantic_boundaries-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3b6292d2ca70c36ebd1aaa3e64b4e8a2b33b0a02ada6bfed3bb991e15eb4cfd
|
|
| MD5 |
e15e3437b42a286d65529e426eec7d0b
|
|
| BLAKE2b-256 |
56431660e73fe0270bc98d896f48006ad27b051e9a53283d9f6f9fe9ad0761e1
|