GpuJmaCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Jurik Moving Average (JMA).
Наследует: GpuIndicatorCalculatorBase<JurikMovingAverage, GpuJmaParams, GpuIndicatorResult>
Конструкторы
GpuJmaCalculator
public GpuJmaCalculator(Context context, Accelerator accelerator)
gpuJmaCalculator = GpuJmaCalculator(context, accelerator)
Initializes a new instance of the GpuJmaCalculator class.
- context
- ILGPU context.
- accelerator
- ILGPU accelerator.
Методы
Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuJmaParams[] parameters)
result = gpuJmaCalculator.Calculate(candlesSeries, parameters)
JmaParamsSeriesKernel
private static void JmaParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuJmaParams> parameters)
GpuJmaCalculator.JmaParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)
ILGPU kernel: JMA computation for multiple series and parameter sets. One thread handles one (parameter, series) pair.