(py: Python<'_>, parent: &Bound<'_, PyModule>)
| 121 | /// benchmark_out : bool, default False |
| 122 | /// Return the benchmark `SR_0` instead of the deflated Sharpe ratio. |
| 123 | /// |
| 124 | /// Returns |
| 125 | /// ------- |
| 126 | /// float |
| 127 | /// The deflated Sharpe ratio (a probability in `[0, 1]`), or `SR_0` when `benchmark_out` |
| 128 | /// is True. |
| 129 | /// |
| 130 | /// Raises |
| 131 | /// ------ |
| 132 | /// ValueError |
| 133 | /// If `sr_estimates` has fewer than two values, or `estimates_param` is True and the |
| 134 | /// number of trials `sr_estimates[1]` is NaN or not above 1. |
| 135 | #[pyfunction(name = "deflated_sharpe_ratio")] |
| 136 | #[pyo3(signature = ( |
| 137 | observed_sr, |
| 138 | sr_estimates, |
| 139 | number_of_returns, |
| 140 | skewness, |
| 141 | kurtosis, |
nothing calls this directly
no outgoing calls
no test coverage detected