0.0.2 • Published 8 years ago

get-binary-tomography-matrices v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

get-binary-tomography-matrices

Build Status

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