GpuFractalAdaptiveMovingAverageCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Fractal Adaptive Moving Average (FRAMA).

継承元: GpuIndicatorCalculatorBase<FractalAdaptiveMovingAverage, GpuFramaParams, GpuIndicatorResult>

コンストラクター

GpuFractalAdaptiveMovingAverageCalculator
public GpuFractalAdaptiveMovingAverageCalculator(Context context, Accelerator accelerator)
gpuFractalAdaptiveMovingAverageCalculator = GpuFractalAdaptiveMovingAverageCalculator(context, accelerator)

Initializes a new instance of the GpuFractalAdaptiveMovingAverageCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

メソッド

Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuFramaParams[] parameters)
result = gpuFractalAdaptiveMovingAverageCalculator.Calculate(candlesSeries, parameters)
FramaParamsSeriesKernel
private static void FramaParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuFramaParams> parameters)
GpuFractalAdaptiveMovingAverageCalculator.FramaParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel: FRAMA computation for multiple series and multiple parameter sets. Results are stored as [param][globalIdx].