Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml-matrix-convolution

mljs100.4kMIT1.0.0

Matrix convolution: It offers the direct and the fourier transform convolution

machine, learning, data, mining, datamining

readme

ml-matrix-convolution

NPM version build status Test coverage npm download

Matrix convolution.

Installation

npm i ml-matrix-convolution
const MatrixConvolution = require('ml-matrix-convolution');

let matrix = [
  [1, 1, 1, 1, 1],
  [1, 1, 1, 1, 1],
  [1, 1, 1, 1, 1],
  [1, 1, 1, 1, 1],
  [1, 1, 1, 1, 1],
];

let kernel = [
  [1, 1, 1],
  [1, 1, 1],
  [1, 1, 1],
];

let conv1 = MatrixConvolution.direct(matrix, kernel);

let conv2 = MatrixConvolution.fft(matrix, kerne11);

console.log({ conv1, conv2 }); // both should be equal

License

MIT

changelog

Changelog

1.0.0 (2021-03-24)

Bug Fixes

0.5.2 (2020-10-27)

Bug Fixes

0.5.1 (2020-10-27)

Bug Fixes

0.5.0 (2020-10-27)

Bug Fixes

0.4.2 (2020-10-27)

Features

  • KernelFactory.LoG A laplacian of gaussian kernel factory for convolution (c11d393)
  • matrix2Array function (c17a647)

Bug Fixes