Skip to content
Enes Okullu edited this page May 8, 2024 · 3 revisions

During calculation of ETA surge may occur. This module has several methods to minimize surges.

Correction correction = new Correction();
correction.PreventSurgeByPercentage(eta);
// correction.PreventSurgeByValueRepeatence(eta);

By percentage

discretePercentage must be 0.00 and 1.00.

PreventSurgeByPercentage(long? eta, double discretePercentage);
PreventSurgeByPercentage(double? eta, double discretePercentage);

By value repeatence

As value repeats, it brings latest one.

PreventSurgeByValueRepeatence(long? eta);
PreventSurgeByValueRepeatence(double? eta);
Clone this wiki locally