Update roi.py

This commit is contained in:
Petrônio Cândido de Lima e Silva 2022-03-04 08:58:51 -03:00 committed by GitHub
parent e72343e7a3
commit fa818e9bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
from pyFTS.common.transformations.transformation import Transformation
import numpy as np
class ROI(Transformation):
@ -20,4 +21,4 @@ class ROI(Transformation):
def inverse(self, data, param=None, **kwargs):
modified = [(param[i - 1] * data[i]) + param[i - 1] for i in np.arange(1, len(data))]
return modified
return modified