xHasEnoughDiffValues {RVCompare} | R Documentation |
This function checks if there are at least minRequiredDiffValues unique values in the introduced vector.
xHasEnoughDiffValues(X, EPSILON, minRequiredDiffValues)
X |
the array with the values. |
EPSILON |
when will two values be considered different. |
minRequiredDiffValues |
the minimum number of different values required to return TRUE. |
Returns TRUE if the values are OK. FALSE, if there are not enough unique values.
xHasEnoughDiffValues(c(1,2,2,3,1,5,8,9,67,8.5,4,8.3), 1e-9, 6)