Skip to content

Instantly share code, notes, and snippets.

View germantellezv's full-sized avatar

Germán Téllez Vanegas germantellezv

View GitHub Profile
@germantellezv
germantellezv / temp_hum_fuzzifier_example.py
Created April 7, 2019 08:27 — forked from mvidalgarcia/temp_hum_fuzzifier_example.py
Example of fuzzy logic with skfuzzy library
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)
@germantellezv
germantellezv / prototype.py
Created March 20, 2019 05:15 — forked from ferdef/prototype.py
Prototype Pattern
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