bundles / scipy 1.17.1 / scipy / stats / _censored_data / CensoredData / interval_censored
classmethod
scipy.stats._censored_data:CensoredData.interval_censored
Summary
Create a CensoredData instance of interval-censored data.
Extended Summary
This method is useful when all the data is interval-censored, and the low and high ends of the intervals are already stored in separate one-dimensional arrays.
Parameters
low: array_likeThe one-dimensional array containing the low ends of the intervals.
high: array_likeThe one-dimensional array containing the high ends of the intervals.
Returns
data: `CensoredData`An instance of CensoredData that represents the collection of censored values.
Examples
import numpy as np from scipy.stats import CensoredData✓
a = [0.5, 2.0, 3.0, 5.5] b = [1.0, 2.5, 3.5, 7.0] data = CensoredData.interval_censored(low=a, high=b) print(data)✓
Aliases
-
scipy.stats.CensoredData.interval_censored