Tests whether numerical values in x are whole numbers (integers) within
a specified floating-point machine precision tolerance threshold. Used to verify
that the matrix order n derived from upper-triangular pairwise ratings count
\(m = n(n-1)/2\) is a valid integer.
Usage
isWholeNo(x, tolerance = sqrt(.Machine$double.eps))Value
A logical vector or scalar of the same dimensions as x, indicating
TRUE for whole numbers and FALSE otherwise.
References
Yuen, K. K. F. (2024). Inverse Gram Matrix Methods for Prioritization in Analytic Hierarchy Process: Explainability of Weighted Least Squares Optimization Method. arXiv preprint arXiv:2401.01190. https://doi.org/10.48550/arXiv.2401.01190