Click or drag to resize
Accord.NET (logo)

KernelToJaggedTKernel, TInput Method

Creates the Gram matrix from the given vectors.

Namespace:  Accord.Statistics.Kernels
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
public static double[][] ToJagged<TKernel, TInput>(
	this TKernel kernel,
	TInput[] x,
	double[][] result = null
where TKernel : Object, IKernel<TInput>
Request Example View Source


Type: TKernel
The kernel function.
Type: TInput
The vectors.
result (Optional)
Type: SystemDouble
An optional matrix where the result should be stored in.

Type Parameters


Return Value

Type: Double
A symmetric matrix containing the dot-products in feature (kernel) space between all vectors in x.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also