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

pca

Go Windows exe License: MIT

Two-dimensional principal component analysis via covariance and power iteration.

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. Projection — reduce 2D points to one axis that preserves most variance.
  2. Data compression — compute the leading component for a plotting transform.
  3. Signal processing — find the dominant direction in paired sensor readings.

Download and run (Windows)

Download pca.exe from the Releases page, then:

Get-Content data.csv | .\pca.exe
# or
.\pca.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 pca.exe .

Example output

{
  "vx": 0.7071,
  "vy": 0.7071,
  "explained_variance": 1
}

Input format

CSV with x,y points, one per row.

Visual preview

pca 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