compute TPTOPIndex
Method to get forecast of an asset in base of days gap inserted
Return
forecast value as a double e.g. 8 or -8
Parameters
: previous values of asset used to compute forecast
: last value of the asset to compare and fetch forecast
: days gap for the forecast range
: tolerance for select similar value compared to lastValue inserted
Throws
if lastValue is negative or intervalDays are less or equal to 0
Method to get forecast of an asset in base of days gap inserted and round it
Return
forecast value as a double e.g. 8 or -8
Parameters
: previous values of asset used to compute forecast
: last value of the asset to compare and fetch forecast
: days gap for the forecast range
: tolerance for select similar value compared to lastValue inserted
: number of digits to round final forecast value
Throws
if lastValue is negative or intervalDays are less or equal to 0