Scilab Function
Last update : 1/11/2005
schnitt - common elements of two matrices X and
Y
Calling Sequence
-
[c,Xex,Yex,Prb] =
schnitt(x,y)
Parameters
-
x
: Set 1, specified by a vector containing positive, natural
numbers.
-
y
: Set 2, specified by a vector containing positive, natural
numbers. Set 1 and 2 may have different sizes.
-
c
: common elements of Set 1 and 2
-
Xex
: Elements, only available in Set 1
-
Yex
: Elements, only available in Set 2
-
Prb
: Probability vector with thre elements PRB=[P(Y<X), P(Y=X),
P(Y>X)]
Description
-
The routine is based upon a comparison of the histograms,
calculated with the SciLab function dsearch. The probabilites are
derived by convolution of the histograms.
Examples
// Set 1
a =[12 22 5 7 38 12 30 21];
// Set 2
b =[42 6 34 7 14 39 34 26 12 25];
[c,X,Y, prb]=schnitt(a,b)
// That's it!
See Also
randvek
,
Authors
-
Dr. Andreas Geissler geisslea@web.de