|
NormalKernel Method
|
1-D Gaussian kernel.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static double[] Kernel(
double sigmaSquared,
int size
)
Public Shared Function Kernel (
sigmaSquared As Double,
size As Integer
) As Double()
Request Example
View SourceParameters
- sigmaSquared
- Type: SystemDouble
The variance parameter σ² (sigma squared). - size
- Type: SystemInt32
Kernel size (should be odd), [3, 101].
Return Value
Type:
DoubleReturns 1-D Gaussian kernel of the specified size.
Exceptions Exception | Condition |
---|
ArgumentException | Wrong kernel size. |
Remarks The function calculates 1-D Gaussian kernel, which is array
of Gaussian function's values in the [-r, r] range of x value, where
r=floor(size/2).
See Also