avedev
($numbers as xs:anyAtomicType+) as xs:anyAtomicType
Returns the average of the absolute deviations of data points from their mean. |
average
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the average (arithmetic mean) of the arguments. |
averagea
($numbers as xs:anyAtomicType+) as xs:anyAtomicType
Calculates the average (arithmetic mean) of the values in the sequence of arguments. |
count
($numbers as xs:anyAtomicType*) as xs:integer
Counts the number of cells that contain numbers or values castable to numeric. |
counta
($numbers as xs:anyAtomicType*) as xs:integer
Counts the number of values that are not empty. |
countblank
($cells as xs:anyAtomicType*) as xs:integer
Counts the empty values in a sequence. |
large
($numbers as xs:anyAtomicType*, $k as xs:integer) as xs:anyAtomicType
Returns the k-th largest value in a data set. |
max
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the largest number in a sequence. |
maxa
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the largest value in a list of arguments. |
median
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the median of the given numbers. |
min
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the smallest number in a sequence. |
mina
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the smallest value in a list of arguments. |
mode
($numbers as xs:anyAtomicType*) as xs:anyAtomicType
Returns the most frequently occurring, or repetitive, value in a sequence. |
percentile
($numbers as xs:anyAtomicType*, $k_at as xs:anyAtomicType) as xs:anyAtomicType
Returns the k-th percentile of values in a sequence. |
percentrank
($numbers as xs:anyAtomicType*, $x as xs:anyAtomicType) as xs:decimal
Returns the rank of a value in a data set as a percentage of the data set. |
prob
($x_range as xs:anyAtomicType+, $prob_range as xs:anyAtomicType+, $range_lower_limit as xs:anyAtomicType) as xs:anyAtomicType
This is the same as above, only that upper_limit is not specified. |
prob
($x_range as xs:anyAtomicType+, $prob_range as xs:anyAtomicType+, $range_lower_limit as xs:anyAtomicType, $upper_limit as xs:anyAtomicType) as xs:anyAtomicType
Returns the probability that values in a range are between two limits. |
quartile
($numbers as xs:anyAtomicType*, $quart as xs:integer) as xs:anyAtomicType
Returns the quartile of a data set. |
rank
($x as xs:anyAtomicType, $numbers as xs:anyAtomicType*) as xs:decimal
This RANK function is same as the above, only that $order_ascending is set by default to false. |
rank
($x as xs:anyAtomicType, $numbers as xs:anyAtomicType*, $order_ascending as xs:boolean) as xs:decimal
Returns the rank of a number in a list of numbers. |
slope
($known_y as xs:anyAtomicType+, $known_x as xs:anyAtomicType+) as xs:anyAtomicType
Returns the slope of the linear regression line through data points in known_y's and known_x's. |
small
($numbers as xs:anyAtomicType*, $k as xs:integer) as xs:anyAtomicType
This function computes the k-th smallest value in a data set. |
standardize
($x as xs:anyAtomicType, $mean as xs:anyAtomicType, $standard_dev as xs:anyAtomicType) as xs:double
Returns a normalized value from a distribution characterized by mean and standard_dev. |
var
($numbers as xs:anyAtomicType+) as xs:anyAtomicType
Estimates variance based on a sample. |
vara
($numbers as xs:anyAtomicType+) as xs:anyAtomicType
Estimates variance based on a sample. |
varp
($numbers as xs:anyAtomicType+) as xs:anyAtomicType
Calculates variance based on the entire population. |
varpa
($numbers as xs:anyAtomicType+) as xs:anyAtomicType
Calculates variance based on the entire population. |
declare function excel:avedev($numbers as xs:anyAtomicType+) as xs:anyAtomicType
declare function excel:average($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:averagea($numbers as xs:anyAtomicType+) as xs:anyAtomicType
declare function excel:count($numbers as xs:anyAtomicType*) as xs:integer
declare function excel:counta($numbers as xs:anyAtomicType*) as xs:integer
declare function excel:countblank($cells as xs:anyAtomicType*) as xs:integer
declare function excel:large($numbers as xs:anyAtomicType*, $k as xs:integer) as xs:anyAtomicType
declare function excel:max($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:maxa($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:median($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:min($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:mina($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:mode($numbers as xs:anyAtomicType*) as xs:anyAtomicType
declare function excel:percentile($numbers as xs:anyAtomicType*, $k_at as xs:anyAtomicType) as xs:anyAtomicType
declare function excel:percentrank($numbers as xs:anyAtomicType*, $x as xs:anyAtomicType) as xs:decimal
The formula is uses: (RANK - 1) / (size - 1) .
declare function excel:prob($x_range as xs:anyAtomicType+, $prob_range as xs:anyAtomicType+, $range_lower_limit as xs:anyAtomicType) as xs:anyAtomicType
declare function excel:prob($x_range as xs:anyAtomicType+, $prob_range as xs:anyAtomicType+, $range_lower_limit as xs:anyAtomicType, $upper_limit as xs:anyAtomicType) as xs:anyAtomicType
declare function excel:quartile($numbers as xs:anyAtomicType*, $quart as xs:integer) as xs:anyAtomicType
declare function excel:rank($x as xs:anyAtomicType, $numbers as xs:anyAtomicType*) as xs:decimal
declare function excel:rank($x as xs:anyAtomicType, $numbers as xs:anyAtomicType*, $order_ascending as xs:boolean) as xs:decimal
declare function excel:slope($known_y as xs:anyAtomicType+, $known_x as xs:anyAtomicType+) as xs:anyAtomicType
sum((x - average_x)(y - average_y)) / sum((x - average_x)^2)
where average_x and average_y are computed with AVERAGE function.
declare function excel:small($numbers as xs:anyAtomicType*, $k as xs:integer) as xs:anyAtomicType
declare function excel:standardize($x as xs:anyAtomicType, $mean as xs:anyAtomicType, $standard_dev as xs:anyAtomicType) as xs:double
The formula is (x - mean) / standard_dev .
declare function excel:var($numbers as xs:anyAtomicType+) as xs:anyAtomicType
The formula is sum(x - average_x)^2 / (n - 1).
average_x is computed with AVERAGE function.
n is the count of numbers from the sequence, excluding empty values.
declare function excel:vara($numbers as xs:anyAtomicType+) as xs:anyAtomicType
The formula is sum(x - average_x)^2 / (n - 1).
average_x is computed with AVERAGE function.
n is the size of sequence, including empty values.
declare function excel:varp($numbers as xs:anyAtomicType+) as xs:anyAtomicType
The formula is sum(x - average_x)^2 / n.
average_x is computed with AVERAGE function.
n is the count of numbers from the sequence, excluding empty values.
declare function excel:varpa($numbers as xs:anyAtomicType+) as xs:anyAtomicType
The formula is sum(x - average_x)^2 / n.
average_x is computed with AVERAGE function.
n is the size of sequence, including empty values.