bundles / scipy 1.17.1 / scipy / stats / _censored_data / CensoredData / left_censored
classmethod
scipy.stats._censored_data:CensoredData.left_censored
Summary
Create a CensoredData instance of left-censored data.
Parameters
x: array_likex is the array of observed data or measurements. x must be a one-dimensional sequence of finite numbers.
censored: array_like of boolcensored must be a one-dimensional sequence of boolean values. If
censored[k]is True, the corresponding value in x is left-censored. That is, the valuex[k]is the upper bound of the true (but unknown) value.
Returns
data: `CensoredData`An instance of CensoredData that represents the collection of uncensored and left-censored values.
Examples
from scipy.stats import CensoredData
✓data = CensoredData.left_censored([0.12, 0.033, 1e-3, 1e-3], [False, False, True, True])✓
data
✗print(data)
✓Aliases
-
scipy.stats.CensoredData.left_censored