photonpacket.accum module

photonpacket.accum.acccoinc(h1, h2, axis=0, constr=None)[source]

Accidental coincidences map for one of the dimensions

photonpacket.accum.acchist(h1, h2, signs, **kwargs)[source]

Accidential coincidences histogram in terms of sum/differnce variables

Parameters
h1numpy.ndarray

first photon counts histogram

h2numpy.ndarray

second photon counts histogram

signstuple of booleans
Nframesint

number of frames

photonpacket.accum.accumautocoinc2d(fs1, axis=0, constr=None)[source]

Coincidences map for one of the dimensions

photonpacket.accum.accumcoinc(fs1, fs2)[source]

Accumulate coincidences into 4D matrix

Parameters
fs1photonpacket.frameseries

Series of photon frames

fs2photonpacket.frameseries

Series of photon frames

signstuple of two booleans

Signs

methodbincount or accum

Method

Returns
coinchistnumpy.ndarray
photonpacket.accum.accumcoinc2d(fs1, fs2, axis=0, constr=None)[source]

Coincidences map for one of the dimensions

photonpacket.accum.accumcoinc_4d_sd(fs1, fs2)[source]

accum full 4dim coincidences in sum/difference variables, s_y,d_y=y1-y2,s_x,d_x

photonpacket.accum.accumframes(fs)[source]

Accumulate photon through all frames. Wrapper for photonpacket.frameseries.accumframes()

Parameters
fsphotonpacket.frameseries

Series of photon frames

Returns
accumnumpy.ndarray

photon counts histogram

photonpacket.accum.autocoinchist(fs1, signs, **kwargs)[source]

Autocoincidence histogram in terms of sum/differnce variables

Parameters
fs1photonpacket.frameseries
fs2photonpacket.frameseries
signs :
kwargsminphotons, maxphotons (filters out frames)
kwargsshape - tuple / 2 el. array - max. size of the accumulator (farther coindicences are neglected)
photonpacket.accum.ccoinc(fs1, fs2)[source]

Concatenate coincidences

Parameters
fs1photonpacket.frameseries
fs2photonpacket.frameseries
photonpacket.accum.coinchist(fs1, fs2, signs)[source]

Coincidence histogram in terms of sum/differnce variables

Parameters
fs1photonpacket.frameseries
fs2photonpacket.frameseries
signs :
photonpacket.accum.coinchist4(*args)[source]

Coincidence quad histogram in terms of sum/differnce variables of four-fold coincidences

Parameters
fs1photonpacket.frameseries
fs2photonpacket.frameseries
fs3photonpacket.frameseries
fs4photonpacket.frameseries
signs :