logoalt Hacker News

Sharlintoday at 2:50 PM0 repliesview on HN

Square brackets are often used in contexts where the function is "higher-order" in some sense, with the type of the parameter itself being a function, distribution, or a similar object with richer structure. I think in this case C[S] is particularly supposed to evoke the expected-value notation E[X], because that's what C[S] essentially is – it gives the expected value of S if you interpret S as a random variable with that distribution.