<< Support Support scidoe_pdist >>

Scidoe >> Scidoe > Support > scidoe_compare

scidoe_compare

The default comparison function used in the sort-merge.

Calling Sequence

order = scidoe_compare ( a , b )

Parameters

a :

a 1x1 matrix of doubles, the first value to be compared

b :

a 1x1 matrix of doubles, the second value to be compared

order :

a 1x1 matrix of floating point integers, the order. Returns order=0 is a is almost equal to b, order=-1 if a < b, order=+1 if a > b.

Description

Returns -1 if and(a<b), returns 0 if and(a==b), returns +1 otherwise.

Examples

order = scidoe_compare ( 1 , -1 ) // 1
order = scidoe_compare ( -1 , 1 ) // -1
order = scidoe_compare ( 1 , 1 ) // 0

Authors


Report an issue
<< Support Support scidoe_pdist >>