4. Examples#
Let’s say we want to create the basic list: \((1., 3., 5., 10., 15.)\)
And that we want to refine around the frequency \(3.5\) with the criterion “ABSOLU”.
We write:
lr = DEFI_LIST_FREQ (
DEBUT =1.0,
INTERVALLE =( _F (JUSQU_A =5.0, NOMBRE =2), _F (JUSQU_A =15.0, PAS =5)),
RAFFINEMENT =(
_F (LIST_RAFFINE =3.5, PAS_MINI =0.001, NB_POINTS =0.001, =5, CRITERE =" ABSOLU ", DISPERSION =0.02),
),
)
A list containing the values is then obtained: \((1.0, 3.0, 3.49, 3.495, 3.5, 3.505, 3.51, 5.0, 10.0, 15.0)\)
Using the “RELATIF” criterion for refinement, we can write:
lr = DEFI_LIST_FREQ (
VALE =( 1.0, 3.0, 5.0, 5.0, 10.0, 15.0),
RAFFINEMENT =_F (
LIST_RAFFINE =( 3.5,), PAS_MINI =0.001, NB_POINTS =0.001, =6, CRITERE =" RELATIF ", DISPERSION =0.03
),
)
We then get a listr8 list containing the values: \((1., 3., 3.4475, 3.4685, 3.4895, 3.5105, 3.5315, 3.5525, 5., 10., 15.)\)
The sdld21b test case provides other examples of use.