计算当前时刻的数据价值
(self, current_time)
| 280 | self.creation_time = 0 |
| 281 | |
| 282 | def get_dynamic_value(self, current_time): |
| 283 | """计算当前时刻的数据价值""" |
| 284 | dt = current_time - self.creation_time |
| 285 | return self.base_value * math.exp(-self.beta * dt) |
| 286 | |
| 287 | |
| 288 | # ========================================== |
no outgoing calls