MCPcopy Create free account
hub / github.com/Tong89/smartNode / get_dynamic_value

Method get_dynamic_value

backend/core.py:282–285  ·  view source on GitHub ↗

计算当前时刻的数据价值

(self, current_time)

Source from the content-addressed store, hash-verified

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# ==========================================

Calls

no outgoing calls