Darwin Help

Back to Index

ProbCloseMatches

Function ProbCloseMatches - prob of k eps-close matches among U(0,1) values

Calling Sequence  ProbCloseMatches(k,n1,n2,eps)
Parameters
NameTypeDescription

k posintnumber of matches
n1 posintnumber of points randomly thrown in [0,1]
n2 posintnumber of points randomly thrown in [0,1]
eps positive0
Return Type  positive
Synopsis Computes the probability of having k matches between two different sets of points. A match is considered when one point from the first set matches (is closer than eps) a point of the second set. All the points are assumed to be U(0,1). There are n1 points in the first set and n2 points in the second set.
Examples
> ProbCloseMatches(4,10,22,0.0001);
5.7379e-08
See also Cumulative,   DynProgMassDb,   OutsideBounds,   ProbBallsBoxes,   SearchMassDb,   Stat,   StatTest,   Std_Score