OrderStatisticsMarginalChecker¶
- class OrderStatisticsMarginalChecker(*args)¶
Compatibility tests of marginals with respect to the order statistics constraint.
- Parameters:
- collsequence of
Distribution
The marginals
which are tested with respect to the order
in the context of the maximum order statistics distribution.
- collsequence of
Methods
Accessor to the partition in independent marginal sets if any.
check
()Give the reasons of uncompatibility of the margins if any.
Accessor to the object's name.
Accessor to the optimization algorithm used for the computation.
Result of the compatibility tests.
setOptimizationAlgorithm
(solver)Accessor to the optimization algorithm used for the computation.
Notes
Three tests are performed. We note
the range of
. The tests are :
Test 1 checks that
and
for all
.
Test 2 discretizes
with
where
is defined in the
ResourceMap
with OSMC-OptimizationEpsilon. By default,. Test 2 checks that:
where
is defined in the
ResourceMap
with OSMC-QuantileIteration. By default,.
Test 3 checks that:
using the TNC algorithm.
Examples
Create the test checker:
>>> import openturns as ot >>> coll = [ot.Uniform(-1.0, 1.0), ot.Uniform(-0.5, 1.5)] >>> testChecker = ot.OrderStatisticsMarginalChecker(coll)
Check the compatibility:
>>> compatibilityResult = testChecker.isCompatible()
- __init__(*args)¶
- buildPartition()¶
Accessor to the partition in independent marginal sets if any.
- Returns:
- indepMarginals
Indices
Indicates the indices that build some independent sets of marginals. If we note
then the sub random vectors
,
and
are independent. This information is automatically used to build the appropriate maximum entropy order statistics distribution.
- indepMarginals
- check()¶
Give the reasons of uncompatibility of the margins if any.
Notes
This method throws an exception in case of compatibility problem with a message indicating the first compatibility problem found.
- getClassName()¶
Accessor to the object’s name.
- Returns:
- class_namestr
The object class name (object.__class__.__name__).
- getOptimizationAlgorithm()¶
Accessor to the optimization algorithm used for the computation.
- Returns:
- algo
OptimizationAlgorithm
Optimization algorithm used for the computation.
- algo
- isCompatible()¶
Result of the compatibility tests.
- Returns:
- resCompatibilitybool
The final result of the 3 compatibility tests with respect to the order constraint.
- setOptimizationAlgorithm(solver)¶
Accessor to the optimization algorithm used for the computation.
- Parameters:
- algo
OptimizationAlgorithm
Optimization algorithm to use for the computation.
- algo