Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé
Classe « CensoredData »

Méthode scipy.stats.CensoredData.interval_censored

Signature de la méthode interval_censored

def interval_censored(low, high) 

Description

help(CensoredData.interval_censored)

Create a `CensoredData` instance of interval-censored data.

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)
CensoredData(4 values: 0 not censored, 4 interval-censored)


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé