Search
Preparing search index...
The search index is not available
quantlib.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ql/math/statistics/sequencestatistics"
SequenceStatistics
Class SequenceStatistics
Hierarchy
GenericSequenceStatistics
SequenceStatistics
DiscrepancyStatistics
Index
Constructors
constructor
Properties
S
_dimension
_quadratic
Sum
_results
_stats
Methods
add
average
Shortfall
correlation
covariance
downside
Deviation
downside
Variance
error
Estimate
expected
Shortfall
gaussian
Average
Shortfall
gaussian
Expected
Shortfall
gaussian
Percentile
gaussian
Potential
Upside
gaussian
Shortfall
gaussian
Value
AtRisk
init
kurtosis
max
mean
min
percentile
potential
Upside
regret
reset
samples1
samples2
semi
Deviation
semi
Variance
shortfall
size
skewness
standard
Deviation
value
AtRisk
variance
weight
Sum1
weight
Sum2
Constructors
constructor
new
Sequence
Statistics
(
dimension
?:
Size
)
:
SequenceStatistics
Parameters
Default value
dimension:
Size
= 0
Returns
SequenceStatistics
Properties
S
S
:
any
Protected
_dimension
_dimension
:
Size
Protected
_quadratic
Sum
_quadratic
Sum
:
Matrix
Protected
_results
_results
:
Real
[]
= []
Protected
_stats
_stats
:
any
[]
= []
Methods
add
add
(
sample
:
Real
[]
, weight
?:
Real
)
:
void
Parameters
sample:
Real
[]
Default value
weight:
Real
= 1
Returns
void
average
Shortfall
average
Shortfall
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
correlation
correlation
(
)
:
Matrix
Returns
Matrix
covariance
covariance
(
)
:
Matrix
Returns
Matrix
downside
Deviation
downside
Deviation
(
)
:
Real
[]
Returns
Real
[]
downside
Variance
downside
Variance
(
)
:
Real
[]
Returns
Real
[]
error
Estimate
error
Estimate
(
)
:
Real
[]
Returns
Real
[]
expected
Shortfall
expected
Shortfall
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
gaussian
Average
Shortfall
gaussian
Average
Shortfall
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
gaussian
Expected
Shortfall
gaussian
Expected
Shortfall
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
gaussian
Percentile
gaussian
Percentile
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
gaussian
Potential
Upside
gaussian
Potential
Upside
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
gaussian
Shortfall
gaussian
Shortfall
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
gaussian
Value
AtRisk
gaussian
Value
AtRisk
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
init
init
(
dimension
?:
Size
)
:
GenericSequenceStatistics
Parameters
Default value
dimension:
Size
= 0
Returns
GenericSequenceStatistics
kurtosis
kurtosis
(
)
:
Real
[]
Returns
Real
[]
max
max
(
)
:
Real
[]
Returns
Real
[]
mean
mean
(
)
:
Real
[]
Returns
Real
[]
min
min
(
)
:
Real
[]
Returns
Real
[]
percentile
percentile
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
potential
Upside
potential
Upside
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
regret
regret
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
reset
reset
(
dimension
?:
Size
)
:
void
Parameters
Default value
dimension:
Size
= 0
Returns
void
samples1
samples1
(
)
:
Size
Returns
Size
samples2
samples2
(
inRange
:
any
)
:
Size
Parameters
inRange:
any
Returns
Size
semi
Deviation
semi
Deviation
(
)
:
Real
[]
Returns
Real
[]
semi
Variance
semi
Variance
(
)
:
Real
[]
Returns
Real
[]
shortfall
shortfall
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
size
size
(
)
:
Size
Returns
Size
skewness
skewness
(
)
:
Real
[]
Returns
Real
[]
standard
Deviation
standard
Deviation
(
)
:
Real
[]
Returns
Real
[]
value
AtRisk
value
AtRisk
(
x
:
Real
)
:
Real
[]
Parameters
x:
Real
Returns
Real
[]
variance
variance
(
)
:
Real
[]
Returns
Real
[]
weight
Sum1
weight
Sum1
(
)
:
Real
Returns
Real
weight
Sum2
weight
Sum2
(
inRange
:
any
)
:
Size
Parameters
inRange:
any
Returns
Size
Globals
"ql/math/statistics/sequencestatistics"
Generic
Sequence
Statistics
Sequence
Statistics
constructor
S
_dimension
_quadratic
Sum
_results
_stats
add
average
Shortfall
correlation
covariance
downside
Deviation
downside
Variance
error
Estimate
expected
Shortfall
gaussian
Average
Shortfall
gaussian
Expected
Shortfall
gaussian
Percentile
gaussian
Potential
Upside
gaussian
Shortfall
gaussian
Value
AtRisk
init
kurtosis
max
mean
min
percentile
potential
Upside
regret
reset
samples1
samples2
semi
Deviation
semi
Variance
shortfall
size
skewness
standard
Deviation
value
AtRisk
variance
weight
Sum1
weight
Sum2
Sequence
Statistics
Inc