Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.5. EXPRESSIONS FOR INPUT CONTROL PARAMETERS 75<br />
with numerical values. The resulting value will be of type ÖÐ, if at least one of the elements<br />
is of type ÖÐ. If all elements are of type ÒØÖ the resulting value will also be of type<br />
ÒØÖ. The same applies to the function ×ÙÑ that determines the sum of all values. If the<br />
input arguments are strings, string concatenation will be used instead of addition.<br />
ÑҴص<br />
Ñܴص<br />
×ÙѴص<br />
ÑÒ´µ<br />
ÚØÓÒ´µ<br />
×ÕÖØ´µ<br />
´µ<br />
Ö´µ<br />
Öдµ<br />
ÖÓÙÒ´µ<br />
×´µ<br />
×´µ<br />
дµ<br />
ÐÓÓÖ´µ<br />
ÑÓ´½¸¾µ<br />
minimum value of the tuple<br />
maximum value of the tuple<br />
sum of all elements of the tuple<br />
or string concatenation<br />
mean value<br />
standard deviation<br />
square root Ô <br />
convert radians to degrees<br />
convert degrees to radians<br />
convert ÒØÖ to ÖÐ<br />
convert ÖÐ to ÒØÖ<br />
absolute value of (ÒØÖ or ÖÐ)<br />
absolute value of (always ÖÐ)<br />
smallest integer value not smaller than <br />
largest integer value not greater than <br />
fractional part of ½/¾, with the same sign as ½<br />
Table 3.17: Numerical functions<br />
The functions ×ÕÖØ, ÑÒ, ÚØÓÒ, , Ö, ×, Ð, ÐÓÓÖ and ÑÓ can work with<br />
ÒØÖ and ÖÐ; the result is always of type ÖÐ.<br />
The function ÑÒ calculates the mean value and ÚØÓÒ the standard deviation of numbers.<br />
×ÕÖØ calculates the square root of a number.<br />
and Ö convert numbers from radians to degrees and from degrees to radians, respectively.<br />
The function ÖÓÙÒ always returns an ÒØÖ value and the function × always returns the<br />
absolut value that is of the same type as the input value.<br />
ÖÐ converts an ÒØÖ to a ÖÐ. ForÖÐ as input it returns the input.<br />
ÖÓÙÒ converts a ÖÐ to an ÒØÖ and rounds the value. For ÒØÖ it returns the input.<br />
The following example (filename: ÙÐ ×ØÒºÚ) shows the use of some numerical<br />
functions:<br />
ν ½º¸½¿¾º¸¿¿¸½º¿℄<br />
ξ ¾¿¿º¾¿¸¿¾º¸¾¿º¾¾¸¿º¿¿℄<br />
ν ¹ ξ<br />
×ØÒ ×ÕÖØ´×ÙÑ´ µµ<br />
ÓØÚÐÙ ×ÙѴν ξµ<br />
First, the Euclidian distance of the two vectors ν and ξ is computed, by using the formula:<br />
<br />
× <br />
<br />
´Î ½ Î ¾ µ ¾ HALCON 6.0