liveBook · Manning

Mean

As explained in Rust in Action: Systems programming concepts and techniques

Elapsed time is the duration between two temporal events or points.

A mean combines several measurements into one representative value by averaging them. In Network Time Protocol (NTP), means help estimate clock differences when every observation includes network delay and uncertainty. section 9.9.2 section 9.9

NTP uses means in two related ways:

  • Several server responses contribute to a weighted mean of their differences, using 1 / θ² so slow servers have less influence. section 9.9.2
  • A mean summarizes competing assertions rather than revealing an independently verified universal time. section 9.9.2

Averaging two offset estimates

Suppose the first timestamp pair gives an offset of 8 ms and the second gives 12 ms. Their mean is (8 + 12) / 2 = 10 ms. NTP uses this combined estimate while also calculating network delay δ; a large δ makes a reading less reliable. section 9.9.2

How Rust in Action: Systems programming concepts and techniques covers it

How deep it goes
Explains arithmetic and weighted means through NTP equations, but stops short of general statistical theory.
Examples
Uses paired timestamp differences and multiple NTP server responses as concrete averaging examples.
What it assumes
Assumes timestamp differences, elapsed time, and basic arithmetic while introducing offset and delay through NTP.
What you can do after
Apply it via NTP calculations to combine timestamp estimates and reduce the influence of slow responses.
How it connects
Connects means with NTP, clock synchronization, timestamps, network latency, and time offset.

Also explained in

Compare how 29 books explain mean →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Rust in Action: Systems programming concepts and techniques. The section links point to the parts of the book it draws on.