3.5.2.26 Mad

Description

This function takes a dataset and returns its Mean Absolute Deviation.

Syntax

double Mad(dataset vd)

Parameter

vd

a vector, can be a dataset, a range or a column in Origin worksheet.

Return

Returns the Mean Absolute Deviation

Example

aa = mad(col(A)); //return Mean Absolute Deviation of column A