MCPcopy Create free account
hub / github.com/livekit/livekit / Load

Method Load

pkg/agent/testutils/server.go:495–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493}
494
495func (s normalRandomJobLoad) Load() float32 {
496 u := 1 - s.rng()
497 v := s.rng()
498 z := math.Sqrt(-2*math.Log(u)) * math.Cos(2*math.Pi*v)
499 return float32(max(0, z*s.stddev+s.mean))
500}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected