Median (Median Of Statistics Data) - HP -28S Manual

Advanced scientific calculator
Hide thumbs Also See for HP-28S:
Table of Contents

Advertisement

Program
+ 2 , " "
;:::.
I
ENTER
I
~
LMED
ISTOI
Example.
Comments
The average of the two numbers
at or near the center position.
End the defining program.
End the program.
Put the program on the stack.
Store the program as LMED.
Calculate the median of the list you sorted using SORT.
I~~~~I
Ir
81
. IlJIDIRlIDIBJmI 8!IiIIiI IBID HIlI.
LMED is called by MEDIAN.
MEDIAN (Median of Statistics Data)
Return a vector representing the medians of the columns of the statis-,
tics data.
Arguments
Results
1 :
Techniques:
• Arrays, lists, and stack elements. MEDIAN extracts a column of
data from 2:DAT in vector form. To convert the vector to a list,
MEDIAN puts the vector elements on the stack and then combines
them into a list. From this list the median is calculated using SORT
and LMED.
The median for the mth column is calculated first, and the median
for the first column is calculated last, so as each median is calcu-
lated, it is moved to the stack level above the previously calculated
medians.
28: Programming Examples
273

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents