{ } Raw JSON

bundles / scipy latest / scipy / stats / _censored_data / CensoredData / interval_censored

classmethod

scipy.stats._censored_data:CensoredData.interval_censored

source: /scipy/stats/_censored_data.py :385

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_like

The one-dimensional array containing the low ends of the intervals.

high : array_like

The 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`` and ``b`` are the low and high ends of a collection of interval-censored values.
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