MCPcopy Create free account
hub / github.com/Open-Quant/openquant / calculate_returns

Method calculate_returns

crates/openquant/src/cla.rs:75–81  ·  view source on GitHub ↗
(
        asset_prices: &DMatrix<f64>,
        resample_by: Option<&str>,
    )

Source from the content-addressed store, hash-verified

73 dates: usize,
74 },
75 /// No portfolio satisfies the bounds and the budget: a bound is not finite, an asset's
76 /// lower bound exceeds its upper bound, the lower bounds sum to more than 1, or the
77 /// upper bounds (capped at 1) sum to less than 1.
78 #[error("infeasible weight bounds: {0}")]
79 InfeasibleBounds(&'static str),
80 /// The covariance matrix of the assets free at a step of the walk cannot be inverted,
81 /// e.g. two free assets are perfectly correlated, or there are more assets than
82 /// observations.
83 #[error("covariance of the free assets is singular")]
84 SingularCovariance,

Callers

nothing calls this directly

Calls 1

returns_and_frequencyFunction · 0.85

Tested by

no test coverage detected