superexacttestpy.tl.dmv_hyper_logval

superexacttestpy.tl.dmv_hyper_logval(x, nl, set_len, n, logval, logp=False)

Get the distribution of the multiset intersection test

Parameters:
x : int

Number of elements x

nl : int

Number of sublists in data

set_len : list

List of length for all sublists in data

n : bool

Length of total background

logval : list

List of log value for i in [0,n]

logp : bool

The result should be with a log scale

Returns:

p – Probability

Return type:

float

Example

>>> dmv_hyper_logval(20,3,[100,200,50],10000,[np.log(i) for i in range(0,10000)],False)
...    8.785866699682634e-110
>>> dmv_hyper(20,3,[100,200,50],0.0,10000,logp=True)
...    0