rolling_statistics_rule_data
Module for RollingStatisticsRuleData class
!!! classes RollingStatisticsRuleData
RollingStatisticsRuleData (TimeOperationRuleData, IRollingStatisticsRuleData)
Class for storing data related to rolling_statistic rule
Source code in entities/rolling_statistics_rule_data.py
class RollingStatisticsRuleData(TimeOperationRuleData, IRollingStatisticsRuleData):
"""Class for storing data related to rolling_statistic rule"""
def __init__(
self,
name: str,
operation: TimeOperationType,
input_variable: str,
period: float,
):
super().__init__(name, operation)
self._input_variable = input_variable
self._period = period
@property
def input_variable(self) -> str:
"""Name of the input variable"""
return self._input_variable
@property
def period(self) -> float:
"""Period type"""
return self._period
input_variable: str
property
readonly
Name of the input variable
period: float
property
readonly
Period type