Commit d58115d9 by Stalin Munoz

Fixing module imports

parent 87c57df1
Metadata-Version: 1.0
Name: rb
Version: 0.1.0
Summary: Análisis de Redes booleanas
Home-page: https://git.c3.unam.mx/biosis/rb.git
Author: Stan
Author-email: stalin.munoz@c3.unam.mx
License: LGPL
Description: UNKNOWN
Platform: UNKNOWN
setup.py
rb/__init__.py
rb/dubrova-teslenko.py
rb/dubrova_teslenko.py
rb/nk_rb.py
rb/red_booleana.py
rb/visual_bn.py
rb.egg-info/PKG-INFO
rb.egg-info/SOURCES.txt
rb.egg-info/dependency_links.txt
rb.egg-info/not-zip-safe
rb.egg-info/top_level.txt
\ No newline at end of file
......@@ -6,8 +6,8 @@ Created on Fri Feb 15 09:39:16 2019
@author: stan
"""
from random import randint
from truth_table import TruthTable
from red_booleana import RedBooleana
from boolparse.logic.truth_table import TruthTable
from rb.red_booleana import RedBooleana
from random import sample
class NKRedBooleana(RedBooleana):
......@@ -26,6 +26,7 @@ class NKRedBooleana(RedBooleana):
v:
TruthTable(
sorted(sample(self.variables,self.K)),
[randint(0,1)==1 for i in range(2**self.K)],v)
v,
[randint(0,1)==1 for i in range(2**self.K)])
for v in self.variables}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment