topdifferent
Calculation
Return value
an array containing the set of values in only a.
The empty set is denoted by an array with the first element equal to
-1.
Parameters
a
in
required
b
in
required
Examples
IDL> a = [2,4,6,8]
IDL> b = [6,1,3,2]
IDL> res=different(a,b)
4 8
Right because 4 and 8 are in a but not in b !
IDL> res=different(b,a)
IDL> print,res
1 3
Right because 1 and 3 are in b but not in a !
Version history
Version
$Id: different.pro 373 2008-08-08 14:11:31Z pinsard $
History
Known issues
Restrictions
These functions will not be efficient on sparse sets with wide
ranges, as they trade memory for efficiency. The HISTOGRAM function
is used, which creates arrays of size equal to the range of the
resulting set.
Statistics
McCabe cyclic | 3 |
McCabe essential | 1 |
McCabe modular design | 1 |