This repository has been archived on 2019-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
s9-mtds-prj-flink/genVectors.py
Geoffrey Frogeye de6a881428 Basic scaffold
Generate, read, means, write all the points
2019-01-23 23:14:35 +01:00

13 lines
233 B
Python
Executable file

#!/usr/bin/env python3
import random
import sys
random.seed(0)
D = int(sys.argv[1]) # Number of dimensions
N = int(sys.argv[2]) # Number of vectors
for _ in range(N):
print(','.join([str(random.random()) for _ in range(D)]))