This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import skfuzzy as fuzz | |
CURRENT_TEMP = 15 | |
CURRENT_HUM = 50 | |
x_temp = np.arange(-20, 41, 1) | |
x_hum = np.arange(0, 101, 1) | |
x_sys = np.arange(12, 36, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from copy import deepcopy | |
class Prototype: | |
def __init__(self): | |
self._objects = {} | |
def register_object(self, name, obj): | |
'''Store an object so it can be cloned later''' | |
self._objects[name] = obj |