| 49 | |
| 50 | #[derive(Debug, Clone)] |
| 51 | pub struct MeanVariance { |
| 52 | pub weights: Vec<f64>, |
| 53 | pub portfolio_risk: f64, |
| 54 | pub portfolio_return: f64, |
| 55 | pub portfolio_sharpe: f64, |
| 56 | } |
| 57 | |
| 58 | pub fn returns_method_from_str(name: &str) -> Result<ReturnsMethod, AllocError> { |
| 59 | match name.to_lowercase().as_str() { |
nothing calls this directly
no outgoing calls
no test coverage detected