Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeformRobotics/OTS
/ round2nearest_multiple
Method
round2nearest_multiple
dataset.py:66–67 ·
view source on GitHub ↗
(self, x, p)
Source
from the content-addressed store, hash-verified
64
65
# Round x to the nearest multiple of p and x' >= x
66
def
round2nearest_multiple(self, x, p):
67
return
((x - 1) // p + 1) * p
68
69
70
class
TrainDataset(BaseDataset):
Callers
3
__getitem__
Method · 0.80
__getitem__
Method · 0.80
__getitem__
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected