MCPcopy Create free account
hub / github.com/facebook/time / DataPoint

Struct DataPoint

caliper/tor.go:58–61  ·  view source on GitHub ↗

DataPoint is a single OTDR measurement

Source from the content-addressed store, hash-verified

56
57// DataPoint is a single OTDR measurement
58type DataPoint struct {
59 DistanceM float64
60 AmplitudeDB float64
61}
62
63// TimeNs converts distance in meters to time in nanoseconds using the refractive index
64func (d DataPoint) TimeNs(refractiveIndex float64) float64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected