kmeans Minor Bugfixes

- Added cluster to test generator
- Added sample data to main
This commit is contained in:
2018-06-02 23:30:07 +02:00
parent 7ea392c302
commit 4e3ceac4a9
4 changed files with 62 additions and 6 deletions

View File

@@ -8,8 +8,10 @@ def plzGen(entries):
for i in range(0, int(entries)):
if i < round(entries * 0.4):
plz = generateNumber(plz_lenght, 2)
elif i >= round(entries * 0.4) and i < round(entries * 0.8):
elif i >= round(entries * 0.4) and i < round(entries * 0.6):
plz = generateNumber(plz_lenght, 9)
elif i >= round(entries * 0.6) and i < round(entries * 0.9):
plz = generateNumber(plz_lenght, 4)
else:
plz = generateNumber(plz_lenght, randint(0,9))
dataArray.append(plz)