get-binary-tomography-matrices
v0.0.2
Published
Reconstruct binary matrices from projections.
Downloads
1
Readme
get-binary-tomography-matrices
Installation
npm install get-binary-tomography-matrices --save
Syntax
getBinaryTomographyMatrices((rowSums, columnSums);
Usage
Single possibility
getBinaryTomographyMatrices(([4], [1,1,1,1]);
// [
// [
// [1, 1, 1, 1]
// ]
// ]
Multiple possibilities
getBinaryTomographyMatrices([1,1,0], [1,1,0]);
// [
// [
// [0, 1, 0],
// [1, 0, 0],
// [0, 0, 0]
// ],
// [
// [1, 0, 0],
// [0, 1, 0],
// [0, 0, 0]
// ]
// ]
No possibilities
getBinaryTomographyMatrices([0,0,3], [0,0,3]);
// []
Tests
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 0.0.1 First alpha release