Range
PortfolioOptimisers.Range Type
julia
struct Range{__T_settings} <: RiskMeasureRepresents the Range risk measure.
Range computes the difference between the maximum and minimum portfolio returns, measuring the full spread of the return distribution. It is a simple measure of the total variability across all scenarios.
Mathematical Definition
Fields
settings: Risk measure configuration.
Constructors
julia
Range(;
settings::RiskMeasureSettings = RiskMeasureSettings()
) -> RangeKeywords correspond to the struct's fields.
Functor
julia
(r::Range)(x::VecNum)Computes the Range of a portfolio returns vector x.
Arguments
x::VecNum: Portfolio returns vector.
Examples
julia
julia> Range()
Range
settings ┼ RiskMeasureSettings
│ scale ┼ Float64: 1.0
│ ub ┼ nothing
│ rke ┴ Bool: trueRelated
source