get-binary-tomography-matrices

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i get-binary-tomography-matrices

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • janjarfalk