Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Thinklab-SJTU/Bench2Drive
/ chunk_array
Function
chunk_array
tools/efficiency_smoothness_benchmark.py:36–38 ·
view source on GitHub ↗
(arr, m)
Source
from the content-addressed store, hash-verified
34
return
chunks
35
36
def
chunk_array(arr, m):
37
chunks = [arr[i * m:(i + 1) * m]
for
i in range((len(arr) + m - 1) // m)]
38
return
chunks
39
40
def
seg_compute_comfort_metric(acceleration,
41
angular_velocity,
Callers
1
chunk_arrays
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected