copulae.core.misc.rank_data(obs, axis=0, ties='average')[source]

Assign ranks to data, dealing with ties appropriately. This function works on core as well as vectors

  • obs (ndarray) – Data to be ranked. Can only be 1 or 2 dimensional.

  • axis ({0, 1}, optional) – The axis to perform the ranking. 0 means row, 1 means column.

  • ties ({ 'average', 'min', 'max', 'dense', 'ordinal' }, default 'average') – The method used to assign ranks to tied elements. The options are ‘average’, ‘min’, ‘max’, ‘dense’ and ‘ordinal’.


matrix or vector of the same dimension as X containing the pseudo observations

Return type

numpy array

See also


The pseudo-observations function