MCPcopy Create free account
hub / github.com/AutonomousVehicleLaboratory/SemVecNet / sinc

Function sinc

semantic_mapping/src/utils/utils.py:48–56  ·  view source on GitHub ↗

your code here

(x)

Source from the content-addressed store, hash-verified

46
47# Note that np.sinc is different than defined in class
48def sinc(x):
49 # Returns a scalar valued sinc value
50 """your code here"""
51 if x == 0:
52 y = 1
53 else:
54 y = np.sin(x) / x
55
56 return y
57
58
59def differentiate_sinc(x):

Callers 1

deparameterize_rotationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected