<a id="skfolio-measures-ulcer-index"></a>

# skfolio.measures.ulcer_index

<a id="skfolio.measures.ulcer_index"></a>

### skfolio.measures.ulcer_index(drawdowns)

Compute the Ulcer index.

* **Parameters:**
  **drawdowns** *ndarray of shape (n_observations,) or (n_observations, n_assets)*
  : Vector of drawdowns.
* **Returns:**
  **value** *float or ndarray of shape (n_assets,)*
  : Ulcer Index.
    If `returns` is a 1D-array, the result is a float.
    If `returns` is a 2D-array, the result is a ndarray of shape (n_assets,).

