g01al calculates a five-point summary for a single sample.
Public Shared Sub g01al ( _ n As Integer, _ x As Double(), _ res As Double(), _ <OutAttribute> ByRef ifail As Integer _ )
public: static void g01al( int n, array<double>^ x, array<double>^ res, [OutAttribute] int% ifail )
- Type: System..::..Int32On entry: , number of observations in the sample.Constraint: .
- Type: array<System..::..Double>()An array of size On exit: res contains the five-point summary.
- The minimum.
- The lower hinge.
- The median.
- The upper hinge.
- The maximum.
g01al calculates the minimum, lower hinge, median, upper hinge and the maximum of a sample of observations.
The data consist of a single sample of observations denoted by and let , for , represent the sample observations sorted into ascending order.
Let if is even and if is odd,
and if is even and if is odd.
Then we have
|Median||if is odd,|
|if is even,|
|Lower hinge||if is odd,|
|if is even,|
|Upper hinge||if is odd,|
|if is even.|
Erickson B H and Nosanchuk T A (1985) Understanding Data Open University Press, Milton Keynes
Tukey J W (1977) Exploratory Data Analysis Addison–Wesley
Errors or warnings detected by the method:
On entry, .
The computations are stable.
The time taken by g01al is proportional to .
This example calculates a five-point summary for a sample of observations.