abstract type CustomExpectedReturnsValueAlgorithm <: AbstractCustomValueAbstract supertype for the custom expected returns value algorithms.
struct CustomValueExpectedReturns{__T_val} <: AbstractExpectedReturnsEstimatorReturns a caller-supplied value for each asset instead of estimating one from the data.
port_opt_view(
me::CustomValueExpectedReturns{<:VecNum},
i,
args...
) -> CustomValueExpectedReturnsThe port_opt_view method for the per-asset vector shape of CustomValueExpectedReturns.
mean(
me::CustomValueExpectedReturns{<:AbstractVector{<:Union{Number, AbstractJuMPScalar}}},
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}};
dims,
kwargs...
) -> AnyThe vector method of mean(me::CustomValueExpectedReturns, X::MatNum; dims::Int = 1, kwargs...).
Statistics.mean(me::CustomValueExpectedReturns, X::MatNum;
dims::Int = 1, kwargs...)Compute expected returns as custom values.
mean(
me::CustomValueExpectedReturns{<:Union{Function, CustomExpectedReturnsValueAlgorithm}},
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}};
dims,
kwargs...
) -> AnyThe callable method of mean(me::CustomValueExpectedReturns, X::MatNum; dims::Int = 1, kwargs...).
const MatNum = AbstractMatrix{<:Union{Number, JuMP.AbstractJuMPScalar}}Alias for an abstract matrix of numeric types or JuMP scalar types.
const VecNum = AbstractVector{<:Union{Number, JuMP.AbstractJuMPScalar}}Alias for an abstract vector of numeric types or JuMP scalar types.
const CER_Func_Num_VecNum = Union{CustomExpectedReturnsValueAlgorithm,Func_Num_VecNum}Alias for the types that the val field of CustomValueExpectedReturns accepts.
port_opt_view(
x::SampleBufferState,
i,
args...
) -> SampleBufferStateSlices a SampleBufferState to the selected assets.
port_opt_view(x::AbstractVector{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm, AbstractResult}}, i, args...; kwargs...) -> VectorGeneric vector method for port_opt_view: view each element of x at the index selection i.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(pnl::AssetPanel, i) -> AssetPanel
port_opt_view(pnl::AssetPanel, i, j, nx::Option{<:VecStr} = nothing) -> AssetPanelReturn a view of the AssetPanel over the observations i and the assets j.
port_opt_view(
pr::PricesResult,
_::Colon,
_::Colon
) -> PricesResultReturn the PricesResult on the observation window i and the assets j of the asset price series X.
port_opt_view(rd::ReturnsResult, i) -> ReturnsResultReturn a view of the ReturnsResult object for the assets at indices i.
port_opt_view(
x::ReturnsBufferState,
i,
args...
) -> ReturnsBufferStateSlices a ReturnsBufferState to the selected assets.
port_opt_view(
sets::UniverseSets,
i,
args...
) -> UniverseSets{var"#s185", var"#s1851", var"#s1852", var"#s1853", var"#s1854", var"#s1855", var"#s1856", <:AbstractDict{var"#s3886", var"#s3885"}} where {var"#s185"<:AbstractString, var"#s1851"<:AbstractString, var"#s1852"<:AbstractString, var"#s1853"<:AbstractString, var"#s1854"<:AbstractString, var"#s1855"<:AbstractString, var"#s1856"<:AbstractString, var"#s3886"<:AbstractString, var"#s3885"}Return a view of a UniverseSets restricted to the assets at index i.
port_opt_view(lc::LinearConstraint, i, args...) -> LinearConstraintReturn a precomputed LinearConstraint unchanged under an asset sub-selection.
port_opt_view(smtx::MatNum, i, args...; kwargs...)
port_opt_view(smtx::VecMatNum_ASetMatE, i, args...; kwargs...)
port_opt_view(smtx::AbstractVector{<:AssetSetsMatrixEstimator}, i, args...; kwargs...)Take an asset view of an asset-group membership matrix, or of a vector of matrices and estimators.
port_opt_view(ece::ExposureConstraintEstimator, i, args...) -> ExposureConstraintEstimatorReturn a copy of an ExposureConstraintEstimator over the selected assets.
port_opt_view(space::FactorSpace, i, args...) -> FactorSpaceReturn a copy of a FactorSpace over the selected assets.
port_opt_view(
pr::HighOrderPrior,
i,
args...
) -> HighOrderPriorReturn a view of a HighOrderPrior restricted to the assets at index i, with every moment matrix cut to match.
port_opt_view(
pr::LowOrderPrior,
i,
args...
) -> Union{LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Nothing, Nothing, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}, LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, <:AbstractReturnsSource, Nothing, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}, LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Nothing, <:AbstractVector{Bool}, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}, LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, <:AbstractReturnsSource, <:AbstractVector{Bool}, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}}Return a view of a LowOrderPrior restricted to assets at index i.
port_opt_view(pr::Option{<:AbstractPriorEstimator}, ::Any, args...; kwargs...)
port_opt_view(pr::AbstractVector{<:Union{AbstractPriorResult, AbstractPriorEstimator}},
i, args...; kwargs...)Pass a prior estimator through a view unchanged, or view each member of a vector of priors.
port_opt_view(
x::PriorCarryState,
i,
args...
) -> PriorCarryState{_A, Set{Int64}} where _ASlices a PriorCarryState to the selected assets.
Statistics.mean(me::PriorExpectedReturns, X::MatNum; dims::Int = 1, kwargs...)
Statistics.mean(me::PriorExpectedReturns, X::MatNum, pnl::Option{<:AssetPanel}; dims::Int = 1, kwargs...)
Statistics.mean(me::PriorExpectedReturns; kwargs...)Fits the prior on X with no factor returns and returns the prior's mu as a matrix.
port_opt_view(_::CrossSectionalCarryState, i, args...)Refuses a view of a CrossSectionalCarryState on a subset of the assets.
port_opt_view(
risk_ucs::BoxUncertaintySet{<:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}},
i,
args...
) -> Union{BoxUncertaintySet{var"#s185", <:AbstractArray{var"#s166", N}, Nothing} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}, BoxUncertaintySet{var"#s185", var"#s1851", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s1851"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a matrix BoxUncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::BoxUncertaintySet{<:AbstractVector{<:Union{Number, AbstractJuMPScalar}}, <:AbstractVector{<:Union{Number, AbstractJuMPScalar}}},
i,
args...
) -> Union{BoxUncertaintySet{var"#s185", <:AbstractArray{var"#s166", N}, Nothing} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}, BoxUncertaintySet{var"#s185", var"#s1851", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s1851"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a vector BoxUncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::EllipsoidalUncertaintySet{<:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:MuUncertaintySetClass},
i,
args...
) -> Union{EllipsoidalUncertaintySet{<:AbstractMatrix{var"#s166"}, <:Number, <:AbstractUncertaintySetClass, Nothing} where var"#s166"<:Union{Number, AbstractJuMPScalar}, EllipsoidalUncertaintySet{var"#s185", var"#s1851", var"#s1852", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s185"<:AbstractMatrix{var"#s166"}, var"#s1851"<:Number, var"#s1852"<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a mean EllipsoidalUncertaintySet restricted to the assets at the index i.
port_opt_view(
risk_ucs::EllipsoidalUncertaintySet{<:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:SigmaUncertaintySetClass},
i,
args...
) -> Union{EllipsoidalUncertaintySet{<:AbstractMatrix{var"#s166"}, <:Number, <:AbstractUncertaintySetClass, Nothing} where var"#s166"<:Union{Number, AbstractJuMPScalar}, EllipsoidalUncertaintySet{var"#s185", var"#s1851", var"#s1852", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s185"<:AbstractMatrix{var"#s166"}, var"#s1851"<:Number, var"#s1852"<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a covariance EllipsoidalUncertaintySet restricted to the assets at the index i.
port_opt_view(risk_ucs::Option{<:AbstractUncertaintySetEstimator}, i, args...)Returns an uncertainty set estimator unchanged, because an estimator has no asset axis to restrict.
port_opt_view(
risk_ucs::L1UncertaintySet,
i,
args...
) -> L1UncertaintySetReturn a view of an L1UncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::SignedL1UncertaintySet,
i,
args...
) -> SignedL1UncertaintySetReturn a view of a SignedL1UncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::CompactCovarianceUncertaintySet,
i,
args...
) -> Union{CompactCovarianceUncertaintySet{var"#s185", var"#s1851", var"#s1852", <:AbstractMatrix{var"#s166"}, Nothing} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractVector{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1852"<:AbstractMatrix{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}}, CompactCovarianceUncertaintySet{var"#s185", var"#s1851", var"#s1852", var"#s1853", <:AbstractMatrix{var"#s166"}} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractVector{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1852"<:AbstractMatrix{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1853"<:AbstractMatrix{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}}}Return a view of a CompactCovarianceUncertaintySet restricted to the asset indices i, as the projection of the set onto the selected assets and not as a refit.
port_opt_view(
risk_ucs::NormBallUncertaintySet{<:Any, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:MuUncertaintySetClass},
i,
args...
) -> Union{NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, Nothing} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass}, NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, <:AbstractArray{var"#s166", N}} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Return a view of a mean NormBallUncertaintySet restricted to assets at index i.
port_opt_view(
risk_ucs::NormBallUncertaintySet{<:Any, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:SigmaUncertaintySetClass},
i,
args...
) -> Union{NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, Nothing} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass}, NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, <:AbstractArray{var"#s166", N}} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Return a view of a covariance NormBallUncertaintySet restricted to assets at index i, mapping the map's row index through the fourth-moment index generator.
port_opt_view(tn::VecTnE_Tn, i, args...)View each entry of a vector of turnover constraints or estimators at a subset of the assets.
port_opt_view(fees::Fees, i, X::MatNum, args...)
port_opt_view(fees::FeesEstimator, i, X::MatNum, args...)
port_opt_view(fees::FeesE_Fees, i, args...)Sub-select a fee to the assets an optimisation keeps, on both of its axes.
port_opt_view(rs, i, X)Get a view or subset of a risk measure for asset cluster index i.
port_opt_view(
r::HighOrderMoment,
i,
args...
) -> HighOrderMoment{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:HighOrderMomentMeasureAlgorithm} where {__T_scale, __T_ub, __T_rke, _A, _B}Return a HighOrderMoment restricted to the assets i.
port_opt_view(
r::LowOrderMoment,
i,
args...
) -> LowOrderMoment{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:LowOrderMomentMeasureAlgorithm} where {__T_scale, __T_ub, __T_rke, _A, _B}Return a LowOrderMoment restricted to the assets i.
port_opt_view(r::Kurtosis, i, args...) -> KurtosisReturn a view of Kurtosis r sliced to asset indices i.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)
port_opt_view(r::ValueatRiskFormulation, i, args...) -> ValueatRiskFormulationSelect the assets i of an estimator, a result or an algorithm.
port_opt_view(r::ValueatRiskFormulation, i, args...) -> ValueatRiskFormulationReturn the Value-at-Risk formulation r unchanged for the asset selection i.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(::Nothing, ::Any; kwargs...) -> nothing
port_opt_view(::Nothing, ::Any, args...; kwargs...) -> nothingFallback of port_opt_view for an absent value.
port_opt_view(
tr::RiskTrackingError,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RiskTrackingError{WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:Number, <:VariableTracking} where {__T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingError restricted to the assets at the indices i.
port_opt_view(
r::RiskTrackingRiskMeasure,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RiskTrackingRiskMeasure{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:VariableTracking} where {__T_scale, __T_ub, __T_rke, __T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingRiskMeasure restricted to the assets at the indices i.
port_opt_view(r::Skewness, i, args...) -> SkewnessReturn Skewness r unchanged, because its sk holds no matrix to slice.
port_opt_view(
r::Skewness{<:Any, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}},
i,
args...
) -> SkewnessReturn a view of Skewness r sliced to asset indices i, with a view of its coskewness matrix sk.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(opt::AbstractOptimisationEstimator, i, args...) -> AbstractOptimisationEstimatorReturn an optimisation estimator unchanged under an asset-subset view.
port_opt_view(
res::NonFiniteAllocationOptimisationResult,
_::Colon,
args...
) -> NonFiniteAllocationOptimisationResultA precomputed optimisation result cannot be restricted to an asset subset.
port_opt_view(
hrp::HierarchicalRiskParity,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> HierarchicalRiskParity{HierarchicalOptimiser{__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}} where {__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}Return a view of HierarchicalRiskParity hrp sliced to asset indices i.
port_opt_view(
sh::SchurComplementHierarchicalRiskParity,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> SchurComplementHierarchicalRiskParity{HierarchicalOptimiser{__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}} where {__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}Return a view of SchurComplementHierarchicalRiskParity sh sliced to asset indices i.
port_opt_view(sp::SchurComplementParams, i, X::MatNum, args...) -> SchurComplementParamsReturn the view of a Schur complement bundle on the assets i.
port_opt_view(
hec::HierarchicalEqualRiskContribution,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> HierarchicalEqualRiskContribution{HierarchicalOptimiser{__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}, _A, _B, _C, _D, <:Transducers.Executor} where {__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache, _A, _B, _C, _D}Return a view of HierarchicalEqualRiskContribution hec sliced to asset indices i.
port_opt_view(
cbe::ConstraintBlock,
i,
args...
) -> ConstraintBlock{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, _Z1, _Z2, _Z3, _Z4, _Z5, Bool} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, _Z1, _Z2, _Z3, _Z4, _Z5}Returns a copy of cbe restricted to the assets at the indices i.
port_opt_view(
opt::JuMPOptimiser,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> JuMPOptimiserReturns a copy of opt restricted to the assets at the indices i.
port_opt_view(
mr::MeanRisk,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> MeanRisk{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}Return the view of a MeanRisk at the assets i.
port_opt_view(
frc::FactorRiskContribution,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> FactorRiskContribution{__T_opt, __T_re, __T_r, __T_obj, __T_frc_ple, __T_sets, __T_wi, Bool} where {__T_opt, __T_re, __T_r, __T_obj, __T_frc_ple, __T_sets, __T_wi}Return the view of a FactorRiskContribution at the assets i, for the returns matrix X.
port_opt_view(
noc::NearOptimalCentering,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> NearOptimalCenteringReturn a copy of NearOptimalCentering for the assets i.
port_opt_view(alg::LogRiskBudgeting{<:VecInt}, i, args...) -> LogRiskBudgetingReturn a LogRiskBudgeting whose orthant vector is the view of alg.z at the assets i.
port_opt_view(
rb::RiskBudgeting,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}Return the view of a RiskBudgeting at the assets i.
port_opt_view(
rrb::RelaxedRiskBudgeting,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Return the view of a RelaxedRiskBudgeting at the assets i.
port_opt_view(
nco::NestedClustered,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> NestedClustered{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185", _K, Bool, <:AbstractPanelCollapseAlgorithm} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185"<:Transducers.Executor, _K}Return a copy of a NestedClustered viewed onto the assets i, with the returns matrix X.
port_opt_view(
st::Stacking,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> Stacking{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185", _K, Bool, <:AbstractPanelCollapseAlgorithm} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185"<:Transducers.Executor, _K}Return a view of the Stacking st sliced to the asset indices i.
port_opt_view(
sr::SubsetResampling,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> SubsetResampling{_A, _B, _C, _D, _E, _F, var"#s185", _G, _H, var"#s1851", var"#s1852", _I, _J, Bool} where {_A, _B, _C, _D, _E, _F, var"#s185"<:Transducers.Executor, _G, _H, var"#s1851"<:Integer, var"#s1852"<:AbstractRNG, _I, _J}Return a copy of a SubsetResampling on the assets i.
port_opt_view(
x::OnlinePortfolioSelectionState,
i,
args...
) -> OnlinePortfolioSelectionState{var"#s185", <:AbstractVector{T}} where {var"#s185"<:Integer, T}Slices an OnlinePortfolioSelectionState to the selected assets, giving the state of the same observations over those assets.
port_opt_view(opt::OnlinePortfolioSelection, i, args...)Slices the head to the selected assets.
port_opt_view(pipe::AbstractPipelineEstimator, i, args...; kwargs...)Refuse an asset view of a Pipeline, or of any other AbstractPipelineEstimator.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)
port_opt_view(pipe::AbstractPipelineEstimator, i, args...; kwargs...)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(
alg::AbstractExpectedReturnsAlgorithm,
_,
args...
) -> AbstractExpectedReturnsAlgorithmReturns the asset view of an expected returns algorithm, which is the algorithm unchanged.
port_opt_view(
me::AbstractExpectedReturnsEstimator,
_,
args...
) -> PriorExpectedReturns{<:AbstractPriorEstimator}Returns the asset view of an expected returns estimator, which is the estimator unchanged.
port_opt_view(
ce::CovarianceEstimator,
_,
args...
) -> Union{RankOneCovariance{<:Real, Nothing}, RankOneCovariance{<:Real, <:AbstractPartialFitState}}Returns the asset view of a covariance estimator, which is the estimator unchanged.
mean(
me::AbstractExpectedReturnsEstimator,
state::SampleBufferState
) -> AnyComputes the expected returns from the observations of a SampleBufferState with the batch verb.
port_opt_view(
x::SimpleExpectedReturnsState,
i,
args...
) -> Union{SimpleExpectedReturnsState{_A, _B, Nothing} where {_A, _B}, SimpleExpectedReturnsState{_A, _B, __T_cvg} where {_A, _B, __T_cvg<:CoverageCounts}}Slices a SimpleExpectedReturnsState to the selected assets.
Statistics.mean(
me::SimpleExpectedReturns,
X::MatNum;
dims::Int = 1,
kwargs...
) -> ArrNumCompute the mean of the asset returns with a SimpleExpectedReturns estimator.
Statistics.mean(
me::SimpleExpectedReturns,
state::SimpleExpectedReturnsState
) -> VecNum
Statistics.mean(
me::SimpleExpectedReturns
) -> VecNumRead the mean of an incremental fit from a SimpleExpectedReturnsState.
port_opt_view(
x::CovarianceState,
i,
args...
) -> Union{CovarianceState{_A, _B, _C, Nothing} where {_A, _B, _C}, CovarianceState{_A, _B, _C, __T_cvg} where {_A, _B, _C, __T_cvg<:CoverageCounts}}Slices a CovarianceState to the selected assets.
port_opt_view(
x::SimpleVarianceState,
i,
args...
) -> Union{SimpleVarianceState{_A, _B, _C, Nothing} where {_A, _B, _C}, SimpleVarianceState{_A, _B, _C, __T_cvg} where {_A, _B, _C, __T_cvg<:CoverageCounts}}Slices a SimpleVarianceState to the selected assets.
mean(
me::ShrunkExpectedReturns{<:Any, <:Any, <:BayesStein},
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}};
dims,
kwargs...
) -> AnyBayesStein overload of mean(me::ShrunkExpectedReturns, X::MatNum; dims::Int = 1, kwargs...).
mean(
me::ShrunkExpectedReturns{<:Any, <:Any, <:BodnarOkhrinParolya},
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}};
dims,
kwargs...
) -> AnyBodnarOkhrinParolya overload of mean(me::ShrunkExpectedReturns, X::MatNum; dims::Int = 1, kwargs...).
Statistics.mean(me::ShrunkExpectedReturns, X::MatNum; dims::Int = 1, kwargs...)Compute the shrunk expected returns of the estimator me.
Statistics.mean(me::EquilibriumExpectedReturns, X::MatNum; dims::Int = 1, kwargs...)Compute equilibrium expected returns from a covariance estimator, weights, and risk aversion.
Statistics.mean(me::ExcessExpectedReturns, X::MatNum; dims::Int = 1, kwargs...)Compute excess expected returns by subtracting the risk-free rate.
port_opt_view(re::Regression, i)Return a view of a Regression result that keeps the assets that i selects.
Statistics.mean(me::StandardDeviationExpectedReturns, X::MatNum;
dims::Int = 1, kwargs...)Compute expected returns as the standard deviation of each asset.
Statistics.mean(me::VarianceExpectedReturns, X::MatNum;
dims::Int = 1, kwargs...)Compute expected returns as the variance of each asset.
Statistics.mean(me::WindowedExpectedReturns, X::MatNum; dims::Int = 1, iv::Option{<:MatNum} = nothing, kwargs...)Compute Statistics.mean over a rolling or indexed window of observations, for a matrix input.
mean(
me::MedianExpectedReturns{<:Union{DynamicAbstractWeights, AbstractWeights}},
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}};
dims,
kwargs...
) -> AnyThe weighted-median method of mean(me::MedianExpectedReturns, X::MatNum; dims::Int = 1, kwargs...).
Statistics.mean(me::MedianExpectedReturns, X::MatNum;
dims::Int = 1, kwargs...)Compute expected returns as the median of each asset.
Statistics.mean(
me::ExpWeightedExpectedReturns,
X::MatNum;
dims::Int = 1,
active_mask::Option{<:AbstractMatrix{<:Bool}} = nothing,
kwargs...
) -> Vector{<:Number}Compute the exponentially weighted expected returns of each asset.
Statistics.mean(
me::ExpWeightedExpectedReturns,
state::ExpWeightedExpectedReturnsState;
kwargs...
) -> Vector{<:Number}Read the exponentially weighted expected returns out of a state the caller holds.
port_opt_view(
x::CokurtosisPartialFitState,
i,
args...
) -> CokurtosisPartialFitStateSlices a CokurtosisPartialFitState to the selected assets.
port_opt_view(
x::CoskewnessPartialFitState,
i,
args...
) -> CoskewnessPartialFitStateSlices a CoskewnessPartialFitState to the selected assets.
port_opt_view(csr::CrossSectionalRegression, i, args...)Return a view of a CrossSectionalRegression result, selecting only the assets indexed by i.
port_opt_view(csfm::CrossSectionalFactorModel, i, args...)Return a view of a CrossSectionalFactorModel result, selecting only the assets indexed by i.
port_opt_view(r::FactorDiagnosticResult, i, args...)Return a view of a FactorDiagnosticResult that keeps only the factors that i selects.
port_opt_view(rf::CustomValueReturnForecastResult, i, args...)Return a view of a CustomValueReturnForecastResult, selecting only the assets indexed by i.
port_opt_view(rf::FixedWeightedReturnForecastResult, i, args...)Return a view of a FixedWeightedReturnForecastResult, selecting only the assets indexed by i.
port_opt_view(fs::FactorSummaryResult, i, args...)Return a view of a FactorSummaryResult that keeps only the factors that i selects.
port_opt_view(s::ExposureICSummaryResult, i, args...)Return a view of an ExposureICSummaryResult that keeps only the factors that i selects.
Statistics.mean(me::PriceLevelExpectedReturns, X::MatNum; dims::Int = 1,
active_mask::Option{<:AbstractMatrix{<:Bool}} = nothing, kwargs...)Computes the expected return as the ratio of a price-level statistic to the last price level, minus one.
port_opt_view(ce::GeodesicShrinkageCovariance, i, args...) -> GeodesicShrinkageCovarianceRestricts a GeodesicShrinkageCovariance to the assets i.