Skip to content
SakibpediaPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distances

Go Windows exe License: MIT

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]

Detailed use cases

  1. Spatial clustering input — build a distance matrix for hierarchical clustering.
  2. Route planning — precompute pairwise distances between depots.
  3. Nearest neighbour lookup — find the closest point to a chosen reference.

Download and run (Windows)

Download distances.exe from the Releases page, then:

Get-Content data.csv | .\distances.exe
# or
.\distances.exe -f data.csv

The executable is a native Windows binary — no Python, no installer, no DLLs.

Build from source

go test ./...
go build -o distances.exe .

Example output

[
  [0, 5],
  [5, 0]
]

Input format

CSV with x,y points. Output is a JSON matrix in input order.

Visual preview

distances preview

Testing

main_test.go covers the core algorithm with deterministic cases. Run go test ./....

License and contact

MIT © S M Nazmuz Sakib (2026). Questions: [email protected].

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages