Kurtosis: private API
PortfolioOptimisers.calc_moment_target — Method
calc_moment_target(::Kurtosis{<:Any, Nothing, Nothing, ...}, ::Any, x::VecNum)
calc_moment_target(r::Kurtosis{<:Any, <:ObsWeights, Nothing, ...}, ::Any, x::VecNum)
calc_moment_target(r::Kurtosis{<:Any, <:Any, <:VecNum, ...}, w::VecNum, ::Any)
calc_moment_target(r::Kurtosis{<:Any, <:Any, <:VecScalar, ...}, w::VecNum, ::Any)
calc_moment_target(r::Kurtosis{<:Any, <:Any, <:Number, ...}, ::Any, ::Any)Compute the target value for kurtosis moment calculations.
Dispatches on the type of r.w and r.mu to select the appropriate centring target. Follows the same rules as calc_moment_target.
Related
PortfolioOptimisers.calc_deviations_vec — Function
calc_deviations_vec(
r::Kurtosis,
w::AbstractVector{<:Union{var"#s136", var"#s53"} where {var"#s136"<:Number, var"#s53"<:AbstractJuMPScalar}},
X::AbstractMatrix{<:Union{var"#s136", var"#s53"} where {var"#s136"<:Number, var"#s53"<:AbstractJuMPScalar}}
) -> Any
calc_deviations_vec(
r::Kurtosis,
w::AbstractVector{<:Union{var"#s136", var"#s53"} where {var"#s136"<:Number, var"#s53"<:AbstractJuMPScalar}},
X::AbstractMatrix{<:Union{var"#s136", var"#s53"} where {var"#s136"<:Number, var"#s53"<:AbstractJuMPScalar}},
fees::Union{Nothing, Fees}
) -> Any
Compute the vector of deviations from the target value for Kurtosis risk measures.
See calc_deviations_vec for details.
Related
PortfolioOptimisers.calc_deviations_vec — Method
calc_deviations_vec(
r::Kurtosis,
x::AbstractVector{<:Union{var"#s136", var"#s53"} where {var"#s136"<:Number, var"#s53"<:AbstractJuMPScalar}}
) -> Any
Compute the vector of deviations from the target value for a precomputed returns series for Kurtosis.
Single-argument form used by the precomputed-returns functor r(x::VecNum).
Related
PortfolioOptimisers.supports_precomputed_returns — Method
supports_precomputed_returns(r::Kurtosis) -> Any
Return whether Kurtosis r supports precomputed-return evaluation.
Delegates to weight_independent_target on r.mu: true iff the target is Nothing, a Number, or a MedianCenteringFunction; false for per-asset targets.
Related