Pairwise Euclidean distance matrix for two-dimensional points.
Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]
- Spatial clustering input — build a distance matrix for hierarchical clustering.
- Route planning — precompute pairwise distances between depots.
- Nearest neighbour lookup — find the closest point to a chosen reference.
Download distances.exe from the Releases page, then:
Get-Content data.csv | .\distances.exe
# or
.\distances.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o distances.exe .[
[0, 5],
[5, 0]
]
CSV with x,y points. Output is a JSON matrix in input order.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
