beautypg.com

Turning Technologies ExamView User Manual

Page 103

background image

ExamView Test Generator

103

quartile

double quartile(list data, int whichQuartile)

Returns one of the divisions of observations of the data in the list.

EXAMPLE

theList = list(30, 25, 19, 26, 31, 29, 23)

quartile(theList, 0)

will return "19", the lower extreme

quartile(theList, 1) will return "23", the lower quartile

quartile(theList, 2) will return "27", the median

quartile(theList, 3) will return "30", the upper quartile

quartile(theList, 4) will return "31", the upper extreme

sdev

double sdev(list data)

Returns the standard deviation of the data values in the list. Data values are assumed to
be the entire population (not a sample). Result is the square root of the population
variance.

sort

list sort(Boolean sortAscending, double arg1, double arg2, ...)

- or -

list sort(Boolean sortAscending, list dataList)

This function will sort the list of arguments. All of the arguments must be numeric (or the
list must have been composed of only numeric data). Function will return a list that can be
used as an argument for choose( ).

sort(TRUE, 1, 14, 3.2, 6, 9) will return 1, 3.2, 6, 9, 14

- or -

listOfData = list(12, -3, 5)

sort(FALSE, listOfData)

will return "12, 5, -3"

sum

double sum(list data)

Returns the sum of the data values in the list.

variance

double variance(list data)

Returns the variance of the data values in the list. Data values are assumed to be the
entire population (not a sample). Actual formula used is:

turningtechnologies.com/user-guides