3Implements the base class for all compensator classes.
9from abc
import abstractmethod
13from fosanalysis
import utils
17 Base for compensation classes.
21 Base class for any compensatory class.
22 \param *args Additional positional arguments, will be passed to the superconstructor.
23 \param **kwargs Additional keyword arguments, will be passed to the superconstructor.
27 def run(self, x: np.array, strain: np.array, *args, **kwargs) -> np.array:
30 \param x Positional data.
31 \param strain Strain data, belonging to `x`.
32 \param *args Additional positional arguments to costumize the behavior. Further specified in sub-classes.
33 \param **kwargs Additional keyword arguments to costumize the behavior. Further specified in sub-classes.
35 \return Returns an array of the same shape as `x` (or `strain` for that matter) with the influence.
36 These values are subtracted from the strains in the crack widths estimation (positive values will reduce the estimated crack width).
38 raise NotImplementedError()
39 return np.zeros_like(x)
Base for compensation classes.
__init__(self, *args, **kwargs)
Base class for any compensatory class.
np.array run(self, np.array x, np.array strain, *args, **kwargs)
This.
This intermediate class indicates, that a sub-class is implementing a task.