GpuRelativeVigorIndexCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Relative Vigor Index (RVI).

继承自: GpuIndicatorCalculatorBase<RelativeVigorIndex, GpuRelativeVigorIndexParams, GpuRelativeVigorIndexResult>

构造函数

GpuRelativeVigorIndexCalculator
public GpuRelativeVigorIndexCalculator(Context context, Accelerator accelerator)
gpuRelativeVigorIndexCalculator = GpuRelativeVigorIndexCalculator(context, accelerator)

Initializes a new instance of the GpuRelativeVigorIndexCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

方法

Calculate
public override GpuRelativeVigorIndexResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuRelativeVigorIndexParams[] parameters)
result = gpuRelativeVigorIndexCalculator.Calculate(candlesSeries, parameters)
RelativeVigorIndexParamsSeriesKernel
private static void RelativeVigorIndexParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuRelativeVigorIndexResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuRelativeVigorIndexParams> parameters)
GpuRelativeVigorIndexCalculator.RelativeVigorIndexParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel: RVI computation for multiple series and multiple parameter sets.