Click or drag to resize
Average Class
The Average class provides a client for reading in a sequence of real numbers and printing out their average.
Inheritance Hierarchy
SystemObject
  Algs4NetAverage

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Average

The Average type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Reads in a sequence of real numbers from standard input and prints out their average to standard output.
Top
Remarks

For additional documentation, see Section 1.1 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

This class is a C# port from the original Java class Average implementation by the respective authors.

See Also