test
This commit is contained in:
commit
eae8951cf4
2
.idea/.gitignore
vendored
Normal file
2
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Default ignored files
|
||||
/workspace.xml
|
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
Normal 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
7
.idea/misc.xml
Normal 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
8
.idea/modules.xml
Normal 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
11
.idea/teamRating.iml
Normal 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
6
.idea/vcs.xml
Normal 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
21
main.py
Normal 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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user