Np

convolve
in package

Convolve

1D & 2D SignalProcessing in pure php

Tags
category

Scientific Computing

author

ghost (Shubham Chaudhary)

email

ghost.jat@gmail.com

copyright

(c) 2020-2021, Shubham Chaudhary

Table of Contents

conv1D()  : vector
1D convolution between a vector v and kernel k, with a given stride.
conv2D()  : matrix
2D convolution between a matrix ma and kernel kb, with a given stride.

Methods

conv1D()

1D convolution between a vector v and kernel k, with a given stride.

public static conv1D(vector $v, vector $k[, int $stride = 1 ]) : vector
Parameters
$v : vector
$k : vector
$stride : int = 1
Tags
throws
Exception
Return values
vector

conv2D()

2D convolution between a matrix ma and kernel kb, with a given stride.

public static conv2D(matrix $ma, matrix $kb[, int $stride = 1 ]) : matrix
Parameters
$ma : matrix
$kb : matrix
$stride : int = 1
Tags
throws
Exception
Return values
matrix

Search results