mirror of
https://github.com/ZGCA-Forge/Elevator.git
synced 2026-02-04 05:15:19 +00:00
Correct calculating passengers arrival time.
This commit is contained in:
@@ -892,8 +892,8 @@ class ElevatorSimulation:
|
|||||||
total_energy_consumption=total_energy,
|
total_energy_consumption=total_energy,
|
||||||
)
|
)
|
||||||
|
|
||||||
floor_wait_times = [float(p.floor_wait_time) for p in completed]
|
floor_wait_times = [float(p.floor_wait_time) for p in self.state.passengers.values()]
|
||||||
arrival_wait_times = [float(p.arrival_wait_time) for p in completed]
|
arrival_wait_times = [float(p.arrival_wait_time) for p in self.state.passengers.values()]
|
||||||
|
|
||||||
def average_excluding_top_percent(data: List[float], exclude_percent: int) -> float:
|
def average_excluding_top_percent(data: List[float], exclude_percent: int) -> float:
|
||||||
"""计算排除掉最长的指定百分比后的平均值"""
|
"""计算排除掉最长的指定百分比后的平均值"""
|
||||||
|
|||||||
Reference in New Issue
Block a user