hdsp
v0.0.27
Published
High-Dimensional Space Projections
Downloads
19
Maintainers
Readme
High-Dimensional Space Projections
TypeScript library for sparse and dense high-dimensional space projections.
Usage
TypeDocs
https://ibm.github.io/projections/
Examples
Multi-Dimensional Scaling (PivotMDS)
import * as hdsp from "hdsp";
hdsp.PivotMDS.project(
[
[1,0,0,1,0,0,0,1], // feature vector 1
[0,1,1,0,1,1,1,1], // feature vector 2
// ...
[0,0,0,1,0,1,0,1] // feature vector n
],
4, // number of pivots
2 // output dimensionality
);
Procrustes Analysis (2D)
import * as hdsp from "hdsp";
hdsp.Procrustes.transform(
[[0,0],[0,-2],[-1,-1]], // input
[[0,0],[0,2],[1,1]] // reference
);
Developers
Code repository
https://github.com/IBM/projections
Build / Release Instructions
tsc
typedoc --out docs
touch docs/.nojekyll
npm version patch
npm publish
git push