The OpenD Programming Language

flexIntervals

Calculate the intervals for the Flex algorithm for a T_c family given its density function, the first two derivatives and a valid start partitioning. The Flex algorithm will try to split the intervals until a chosen efficiency rho is reached.

static if(is(typeof( )))
flexIntervals
(
S
F0
F1
F2
)
(
in F0 f0
,
in F1 f1
,
in F2 f2
,
in S[] cs
,
in S[] points
,
in S rho = 1.1
,
in int maxApproxPoints = 1_000
)

Parameters

f0 F0

probability density function of the distribution

f1 F1

first derivative of f0

f1 F1

second derivative of f0

cs S[]

T_c family (single value or array)

points S[]

non-overlapping partitioning with at most one inflection point per interval

rho S

efficiency of the Flex algorithm

maxApproxPoints int

maximal number of splitting points before Flex is aborted

Return Value

Type: FlexInterval!S[]

Array of FlexInterval's.

Meta