This commit is contained in:
Bartosz Szukała 2020-05-04 21:20:24 +02:00
commit eae8951cf4
7 changed files with 61 additions and 0 deletions

2
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Default ignored files
/workspace.xml

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

7
.idea/misc.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6.5 (C:\Users\akuma\AppData\Local\Programs\Python\Python36\python.exe)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/teamRating.iml" filepath="$PROJECT_DIR$/.idea/teamRating.iml" />
</modules>
</component>
</project>

11
.idea/teamRating.iml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Nosetests" />
</component>
</module>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

21
main.py Normal file
View File

@ -0,0 +1,21 @@
import numpy as np
import skfuzzy as fuzz
import matplotlib.pyplot as plt
xPrevPlace = np.arange(0, 17, 1)
prevPlaceLow = fuzz.trimf(xPrevPlace, [10,16,16])
prevPlaceMid = fuzz.trimf(xPrevPlace, [4,8,12])
prevPlaceHigh = fuzz.trimf(xPrevPlace, [0,0,6])
fig, ax0 = plt.subplots(figsize=(5, 3))
ax0.plot(xPrevPlace, prevPlaceLow, 'b', linewidth=1.5, label='Low')
ax0.plot(xPrevPlace, prevPlaceMid, 'g', linewidth=1.5, label='Medium')
ax0.plot(xPrevPlace, prevPlaceHigh, 'r', linewidth=1.5, label='High')
ax0.set_title('Previous place')
ax0.legend()
plt.show(block=True)