In [1]:
import numpy as np
from matplotlib import pyplot as plt
from __future__ import division
from CAs import *
from Local_Complexity import *
from Spacetime_Information import *
%matplotlib inline
import pickle
In [2]:
test = np.random.rand(20)
In [3]:
print test
In [4]:
pickle.dump( test, open( "pickle_test.p", "wb" ) )
In [5]:
next_test = pickle.load(open( "pickle_test.p", "rb" ) )
In [6]:
print next_test
In [ ]:
In [2]:
test_CA = ECA(110, random_state(500,2))
test_CA.evolve(500)
test_CA.diagram()
In [3]:
ee_test = local_excess_entropy(test_CA.get_spacetime(),5)
ee_test.estimate_states(3,1)
In [4]:
print ee_test.C_plus()
print np.mean(ee_test.C_plus_field())
In [5]:
print ee_test.C_minus()
print np.mean(ee_test.C_minus_field())
In [7]:
diagram(ee_test.C_plus_field(), size = 20, colorbar = True)
In [6]:
diagram(ee_test.C_minus_field(), size = 20, colorbar = True)
In [ ]: