pygsti.tools.two_delta_loglfn¶
-
pygsti.tools.
two_delta_loglfn
(N, p, f, minProbClip=1e-06, poissonPicture=True)¶ - Term of the 2*[log(L)-upper-bound - log(L)] sum corresponding
- to a single gate string and spam label.
Parameters: - N (float or numpy array) – Number of samples.
- p (float or numpy array) – Probability of 1st outcome (typically computed).
- f (float or numpy array) – Frequency of 1st outcome (typically observed).
- minProbClip (float, optional) – Minimum probability clip point to avoid evaluating log(number <= zero)
- poissonPicture (boolean, optional) – Whether the log-likelihood-in-the-Poisson-picture terms should be included in the returned logl value.
Returns: Return type: float or numpy array