Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(3)  |  Derive(1)  |  Import(3)

src/t/h/ThinkComplexity-HEAD/code/draw_cas.py   ThinkComplexity(Download)
"""
 
from CA import CA
import CADrawer
 
def figure1(rule=18, n=64):
    ca = CA(rule, n)
    n = int(n)
 
    ca = CA(rule, n)
 
    filename = 'rule-%d-%d' % (rule, n)

src/t/h/ThinkComplexity-HEAD/code/fractal.py   ThinkComplexity(Download)
import numpy
 
from CA import CA
import CADrawer
 
def fractal_dimension(rule=18, n=512, save=False):
    """Estimates the fractal dimension for a given rule and number of steps.
    """
    ca = CA(rule, n)
    ca.start_single()

src/t/h/ThinkComplexity-HEAD/code/CircularCA.py   ThinkComplexity(Download)
 
import CADrawer
from CA import CA
 
 
class CircularCA(CA):