operations
This module consists of a pre-defined functions that are imported into
tag for convenient use in VirtualTag
objects.
- pype_schema.operations.get_change(variable, delta_t=1, split=False)[source]
Converts cumulative value to rate-of-change value using finite differences Note: assumes rate of change at time t is equal to the difference between the value at time t+1 and t
- Parameters:
variable (pandas.Series, numpy.ndarray) – variable to convert
delta_t (int) – Time difference between two consecutive values of the variable (default is 1)
split (bool) – Whether to split the variable into a negative change and a positive change
- Returns:
Rate of change variable or tuple of netative, positive rate of change variable
- Return type: