photonpacket.stat2d module

photonpacket.stat2d.R2(s1, s2, uncert=False)[source]

R2 factor from the Cauchy-Scharz inequality

photonpacket.stat2d.Wfactor(s1, s2, *args, **kwargs)[source]
photonpacket.stat2d.checkcounts(N1, N2)[source]

Check if count vectors have proper shapes

photonpacket.stat2d.checkfs(fs1, fs2)[source]

Check if frameseries have proper shapes

photonpacket.stat2d.corr(s1, s2, uncert=False)[source]

Normalized photon-number correlation coefficient

photonpacket.stat2d.cov(s1, s2, uncert=False)[source]

Short for covar()

photonpacket.stat2d.covar(s1, s2, *args, **kwargs)[source]
photonpacket.stat2d.fanofactor(s1, s2, uncert=False)[source]

Fano photon number noise reduction factor.

photonpacket.stat2d.g2(s1, s2, *args, **kwargs)[source]
photonpacket.stat2d.prepcounts(func)[source]

Decorator preparing counts from counts or frameseries

Parameters
funcfunction

function accepting a pair of photonpacket.frameseries or counts numpy.ndarray

Returns
funcfunction

decorated function

photonpacket.stat2d.rawmoment(s1, s2, *args, **kwargs)[source]