xHasEnoughDiffValues {RVCompare}R Documentation

Check for enough unique values.

Description

This function checks if there are at least minRequiredDiffValues unique values in the introduced vector.

Usage

xHasEnoughDiffValues(X, EPSILON, minRequiredDiffValues)

Arguments

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.

Value

Returns TRUE if the values are OK. FALSE, if there are not enough unique values.

Examples

xHasEnoughDiffValues(c(1,2,2,3,1,5,8,9,67,8.5,4,8.3), 1e-9, 6)

[Package RVCompare version 0.1.2 Index]