RE_UPLOAD-REBUILD-RESTART
Browse files- utils/get_unique_values.py +13 -0
utils/get_unique_values.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
|
| 3 |
+
def get_unique_values(start, end, count):
|
| 4 |
+
'''
|
| 5 |
+
Returns a list of unique countinous values between start and end
|
| 6 |
+
Args:
|
| 7 |
+
start: int - less than end
|
| 8 |
+
end: int - greater than start
|
| 9 |
+
count: int - number of values to return
|
| 10 |
+
Returns:
|
| 11 |
+
List[int]
|
| 12 |
+
'''
|
| 13 |
+
return np.arange(start, end, (end - start)/count)[:count]
|