Click or drag to resize
Accord.NET (logo)

KernelFunctionCacheTKernel, TInputGetOrCompute Method (Int32, Int32)

Attempts to retrieve the kernel function evaluated between point at index i and j. If it is not cached, it will be computed and the cache will be updated.

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

Parameters

i
Type: SystemInt32
The index of the first point p to compute.
j
Type: SystemInt32
The index of the second point p to compute.

Return Value

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