update_finite_infinity_for_uniform | R Documentation |
lefts
and rights
.Maximum between finite_infinity
and 10 times the max abs value of finite elements in lefts
and rights
.
update_finite_infinity_for_uniform(lefts, rights, finite_infinity)
lefts |
A non-empty vector of numbers (may contain |
rights |
A non-empty vector of numbers (may contain |
finite_infinity |
A finite positive number. |
Since we assume that lefts[i] <= rights[i] <= lefts[j]
for any i < j
, the function takes the maximum between finite_infinity
and 10 times the absolute values of lefts[1]
, lefts[length(lefts)]
, rights[1]
, and rights[length(rights)]
, if they are finite.
A double, larger than or equal to finite_infinity
.
# Does not change since 1000 > 12 * 10
update_finite_infinity_for_uniform(c(-10,-5,0,5,9), c(-8,-3,2,7,12), 1000)
# Changed to 12 * 10
update_finite_infinity_for_uniform(c(-10,-5,0,5,9), c(-8,-3,2,7,12), 10)
# Changed to 12 * 10
update_finite_infinity_for_uniform(c(-Inf,-5,0,5,9), c(-8,-3,2,7,12), 10)
# Changed to 9 * 10
update_finite_infinity_for_uniform(c(-Inf,-5,0,5,9), c(-8,-3,2,7,Inf), 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.