Public Member Functions | |
virtual Complex[] | Convolution (Complex[] a, Complex[] b) |
Computes the convolution. | |
override string | ToString () |
Returns the name of the convolution algorithm. | |
Protected Member Functions | |
internal Complex[] | GenerateDomain (int n) |
Generates domain for evaluation and interpolation. | |
internal Complex[] | Interpolate (Complex[] x, Complex[] y) |
Newton Interpolation. | |
internal Complex[] | Evaluate (Complex[] a, Complex[] x) |
Evaluates a polynomial at a sequence of points. | |
internal Complex[] | PointwiseMultiply (Complex[] a, Complex[] b) |
Pointwise multiplication of two vectors. |
The vectors and
are treated as cooeficients of two polynomials:
and
. The convolution is calculated in the following way (Convolution(Complex[], Complex[])):
The convolution of and
is
.
Definition at line 30 of file PolynomialConvolution.cs.
Computes the convolution.
Implements IConvolution.
Reimplemented in DFTConvolution.
Definition at line 35 of file PolynomialConvolution.cs.
Evaluates a polynomial at a sequence of points.
a | the coefficients of the polynomial | |
x | the points of evaluation |
x
Definition at line 130 of file PolynomialConvolution.cs.
internal Complex [] GenerateDomain | ( | int | n | ) | [protected] |
Generates domain for evaluation and interpolation.
Uses the roots of the Chebyshev polynomial of the first kind of degree n
on [0,1].
n | the degree of the Chebyshev polynomial |
n
. Definition at line 56 of file PolynomialConvolution.cs.
Newton Interpolation.
Calculates the coefficients of a polynomial that takes values y
at points x
.
Definition at line 74 of file PolynomialConvolution.cs.
override string ToString | ( | ) |
Returns the name of the convolution algorithm.
This method always returns "Pointwise"
.
Implements IConvolution.
Reimplemented in DFTConvolution.
Definition at line 166 of file PolynomialConvolution.cs.