beautypg.com

Average (avg) and median (md) functions, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 206

background image

206

2 Installation and Specifications

2.4 F

o

rm

ulas

Average (avg) and median (md) functions

The avg or md functions are used to find average or median values in
a specified list. The list of values can include channels, dimensions and
database content. The avg or md functions can be used to assign
values to dimensions, system dimensions, custom ND 2100G
functions or specify criteria for a comparison test.

To insert a avg or md function:

U

Press the MATH... soft key

U

Press the AVG or MD dimension key

Average function.

Median function.

Avg function syntax

A = avg(value1, value2, ...value n)

Assigns the average list value to A

Example:

A =avg(C1,C2,C3)

A = 3.67 mm when C1 = 6 mm, C2 = 3 mm and C3 = 2 mm

Md function syntax

A = md(value1, value2, ...value n)

Assigns the median list value to A

Example:

A = md(C1,C2,C3,C4,C5,C6,C7,C8)

A = 3.5 mm when C1 = 2 mm, C2 = 2 mm, C3 = 2 mm, C4 = 3 mm,

C5 = 4 mm, C6 = 5 mm, C7 = 6 mm, C8 = 6 mm

Avg and md functions will not accept mixed units of
measure.