3.5.2.22 Median

Description

This function is used to return median of dataset vd with interpolation method specified by method.

Syntax

 double Median(dataset vd[, int method = 0])

Parameters

vd

A range, a dataset or a specified column in Origin worksheet.

method

An integer value which controls the interpolation method.
 0 (default) Empirical Distribution with Averaging Nearest Neighbor Empirical Distribution Weighted Average Right Weighted Average Left Tukey Hinges
For info on these interpolation methods, see Interpolation of Quantiles.

Return

Return median of a dataset with specified interpolation method.

Example

dd = median(col(A), 2);
dd=; //Should return the median of column(A).