The number of points depend on the number of unique values in the input. Since the input vector has only 2 unique values, the function gives correct output.
The number of points depend on the number of unique values in the input. Since the input vector has only 2 unique values, the function gives correct output.