compIntForChisqEachSlice: Solve the roots of quadratic polynomials related to truncated...

Description Usage Arguments Details Value

View source: R/trunc_inf.R

Description

This function solves {x^2: Ax^2 + Bx + C ≥ 0}, then returns the complement of the solution set (w.r.t. to \mathbb{R}).

Usage

1

Arguments

coef,

the coefficients (A, B, C) of the quadratic polynomial.

tol,

the tolerance of roots.

Details

The reason we compute the complement instead of the original solution set is that when taking intersection of multiple sets, the strategy of "taking union of complements, then taking comlement" is substantially faster than taking intersections directly based on the intervals package.

Value

This function returns an "Intervals" object.


shuxiaoc/outference documentation built on Dec. 5, 2017, 3:48 a.m.