Click or drag to resize
Accord.NET (logo)

KernelFunctionCacheTKernel, TInputGetOrCompute Method (Int32)

Attempts to retrieve the value of the kernel function from the diagonal of the kernel matrix. If the value is not available, it is immediately computed and inserted in the cache.

Namespace:  Accord.Statistics.Kernels
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public double GetOrCompute(
	int i
)
Request Example View Source

Parameters

i
Type: SystemInt32
Index of the point to compute.

Return Value

Type: Double
Remarks
The result of the kernel function k(p[i], p[i]).
See Also