allequal_o_ {QuantileGH} | R Documentation |
Test if Two double Vectors are Element-Wise (Nearly) Equal
Description
Test if two double vectors are element-wise (nearly) equal.
Usage
allequal_o_(target, current, tolerance = sqrt(.Machine$double.eps), ...)
Arguments
target |
length- |
current |
length- |
tolerance |
positive double scalar, default |
... |
potential parameters, currently not in use |
Details
Function allequal_o_()
is different from all.equal.numeric, such that
element-wise comparison is performed, in a fashion similar to function outer
a logical scalar is always returned for each element-wise comparison.
Value
Function allequal_o_()
returns an n_t\times n_c
logical matrix
indicating whether the length-n_c
vector current
is element-wise near-equal to
the length-n_t
vector target
within the pre-specified tolerance
.
Examples
allequal_o_(target = c(.3, 0), current = c(.3, 1-.7, 0, .Machine$double.eps))
[Package QuantileGH version 0.1.8 Index]