Closed nocotan closed 3 years ago
Implement the common function _omega_function as follows:
_omega_function
def _omega_function(self, rrange, overlap): anomaly_length = rrange[1] - rrange[0] + 1 my_positional_bias = 0 max_positional_bias = 0 temp_bias = 0 for i in range(1, anomaly_length + 1): temp_bias = self._delta_function(i, anomaly_length) max_positional_bias += temp_bias j = rrange[0] + i - 1 if j >= overlap[0] and j <= overlap[1]: my_positional_bias += temp_bias if max_positional_bias > 0: res = my_positional_bias / max_positional_bias return res else: return 0
Make it enable us to compute the value of omega.
InterfaceTimeSeriesMetrics._omega_function()
yyyy / mm / dd
If the parent issue exists, post a link here.
If there are any reference links, they are described here.
Other comments.
Summary
Implement the common function
_omega_function
as follows:Goal
Make it enable us to compute the value of omega.
Todo
InterfaceTimeSeriesMetrics._omega_function()
Deadline
yyyy / mm / dd
Parent issue
If the parent issue exists, post a link here.
References
If there are any reference links, they are described here.
Notes
Other comments.