-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
235 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
1.2610673e+00 8.7850842e-02 | ||
9.4870162e-01 -1.8085079e-02 | ||
8.6185491e-01 1.6224918e-01 | ||
9.5081336e-01 -4.3257720e-01 | ||
1.3874176e+00 -7.7076637e-02 | ||
1.4257554e+00 -2.1140316e-01 | ||
1.0510257e+00 -2.3929085e-01 | ||
8.6430210e-01 2.0747363e-01 | ||
1.0557558e+00 -4.4090904e-02 | ||
9.8515345e-01 -4.5922628e-01 | ||
1.2154257e+00 1.3510720e-01 | ||
1.2889587e+00 2.2091317e-01 | ||
1.3419986e+00 -1.2473362e-01 | ||
6.6064156e-01 2.8451805e-01 | ||
1.2035246e+00 8.0300324e-01 | ||
8.7489386e-01 4.1143334e-01 | ||
1.3307248e+00 -2.2338402e-01 | ||
9.9965170e-01 -2.7229713e-01 | ||
8.0970832e-01 -1.8176388e-01 | ||
1.1561395e+00 3.1659399e-01 | ||
9.6945682e-01 -1.8446872e-02 | ||
1.1501202e+00 1.1455769e-01 | ||
8.9451168e-01 3.9948466e-01 | ||
7.4866926e-01 6.2512980e-03 | ||
1.4240451e+00 -5.1108909e-02 | ||
9.5394331e-01 3.5143469e-01 | ||
8.5480809e-01 -1.4734469e-01 | ||
9.3359112e-01 -9.1376048e-02 | ||
9.3737253e-01 9.2936169e-02 | ||
7.7042668e-01 -7.7022002e-02 | ||
1.0234778e+00 -2.9261726e-01 | ||
1.3611381e+00 2.0925376e-01 | ||
6.5553227e-01 -4.0112295e-01 | ||
9.1105658e-01 -4.8095323e-01 | ||
1.1521568e+00 -2.3549257e-01 | ||
8.6928331e-01 4.8344866e-02 | ||
1.1996496e+00 5.3552165e-01 | ||
8.5463939e-01 9.0363593e-02 | ||
1.0673105e+00 -2.2429837e-02 | ||
1.3079029e+00 6.1442130e-01 | ||
1.1532697e+00 2.4437677e-01 | ||
5.1063739e-01 5.5802326e-02 | ||
1.1043312e+00 1.0781936e-01 | ||
1.2285890e+00 -4.1432114e-02 | ||
6.3112986e-01 6.9896014e-02 | ||
9.1630523e-01 -2.2843712e-01 | ||
9.3854954e-01 3.8855984e-02 | ||
1.1032298e+00 -1.4304489e-01 | ||
1.0082623e+00 8.2076036e-02 | ||
1.3657724e+00 -9.5120396e-02 | ||
1.6112417e-01 9.3146135e-01 | ||
1.2744314e-02 7.1172188e-01 | ||
-1.0664676e-01 1.3752386e+00 | ||
-8.9814343e-02 6.2681146e-01 | ||
-4.4419760e-01 6.8385513e-01 | ||
-2.0725695e-01 7.0481888e-01 | ||
2.3524013e-02 1.0151033e+00 | ||
1.3890694e-01 8.7296951e-01 | ||
-3.1440981e-01 1.0613184e+00 | ||
-1.3083182e-01 1.3129298e+00 | ||
1.3539111e-01 1.1399145e+00 | ||
-9.8466091e-02 1.3231128e+00 | ||
-4.4501379e-01 8.2839910e-01 | ||
5.9267664e-01 3.5780148e-01 | ||
2.5489893e-01 6.6979484e-01 | ||
-2.0199882e-01 1.0335235e+00 | ||
-4.2885576e-01 1.0911313e+00 | ||
1.0322712e-01 5.9400205e-01 | ||
-1.9723433e-01 1.3403960e+00 | ||
-1.1353115e-01 6.7319187e-01 | ||
4.0688787e-01 9.8696848e-01 | ||
-4.6796045e-02 6.6406917e-01 | ||
3.2124189e-01 1.3173497e+00 | ||
5.1243938e-03 9.1821940e-01 | ||
2.8407226e-01 1.0560155e+00 | ||
9.4868475e-02 9.3456735e-01 | ||
-9.5926837e-02 1.0247360e+00 | ||
4.0200412e-01 1.2523789e+00 | ||
2.4620030e-01 1.0425304e+00 | ||
2.0865607e-01 1.5049251e+00 | ||
-2.8119147e-01 1.2229519e+00 | ||
1.1669107e-01 1.2967161e+00 | ||
1.2690337e-01 9.1158256e-01 | ||
2.2537798e-01 1.1935403e+00 | ||
-9.9160040e-02 1.1949584e+00 | ||
-1.6107908e-01 8.4973897e-01 | ||
2.6860421e-01 9.4216399e-01 | ||
3.0917642e-01 9.6035139e-01 | ||
1.9981889e-03 1.1045532e+00 | ||
-1.7998092e-01 6.0799009e-01 | ||
4.0607064e-01 1.1784296e+00 | ||
2.2849174e-01 1.3944892e+00 | ||
-2.7332032e-01 1.3102919e+00 | ||
-4.0823356e-01 1.1200681e+00 | ||
-2.0742396e-01 1.3783053e+00 | ||
-1.6515944e-01 1.0489970e+00 | ||
-4.4035092e-01 1.6121930e+00 | ||
3.0303782e-01 1.0023180e+00 | ||
1.1252761e-02 5.4663902e-01 | ||
-4.0678274e-01 1.0435023e+00 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
1.2610673e+00 8.7850842e-02 | ||
9.4870162e-01 -1.8085079e-02 | ||
8.6185491e-01 1.6224918e-01 | ||
9.5081336e-01 -4.3257720e-01 | ||
1.3874176e+00 -7.7076637e-02 | ||
1.4257554e+00 -2.1140316e-01 | ||
1.0510257e+00 -2.3929085e-01 | ||
8.6430210e-01 2.0747363e-01 | ||
1.0557558e+00 -4.4090904e-02 | ||
9.8515345e-01 -4.5922628e-01 | ||
1.2154257e+00 1.3510720e-01 | ||
1.2889587e+00 2.2091317e-01 | ||
1.3419986e+00 -1.2473362e-01 | ||
6.6064156e-01 2.8451805e-01 | ||
1.2035246e+00 8.0300324e-01 | ||
8.7489386e-01 4.1143334e-01 | ||
1.3307248e+00 -2.2338402e-01 | ||
9.9965170e-01 -2.7229713e-01 | ||
8.0970832e-01 -1.8176388e-01 | ||
1.1561395e+00 3.1659399e-01 | ||
9.6945682e-01 -1.8446872e-02 | ||
1.1501202e+00 1.1455769e-01 | ||
8.9451168e-01 3.9948466e-01 | ||
7.4866926e-01 6.2512980e-03 | ||
1.4240451e+00 -5.1108909e-02 | ||
9.5394331e-01 3.5143469e-01 | ||
8.5480809e-01 -1.4734469e-01 | ||
9.3359112e-01 -9.1376048e-02 | ||
9.3737253e-01 9.2936169e-02 | ||
7.7042668e-01 -7.7022002e-02 | ||
1.0234778e+00 -2.9261726e-01 | ||
1.3611381e+00 2.0925376e-01 | ||
6.5553227e-01 -4.0112295e-01 | ||
9.1105658e-01 -4.8095323e-01 | ||
1.1521568e+00 -2.3549257e-01 | ||
8.6928331e-01 4.8344866e-02 | ||
1.1996496e+00 5.3552165e-01 | ||
8.5463939e-01 9.0363593e-02 | ||
1.0673105e+00 -2.2429837e-02 | ||
1.3079029e+00 6.1442130e-01 | ||
1.1532697e+00 2.4437677e-01 | ||
5.1063739e-01 5.5802326e-02 | ||
1.1043312e+00 1.0781936e-01 | ||
1.2285890e+00 -4.1432114e-02 | ||
6.3112986e-01 6.9896014e-02 | ||
9.1630523e-01 -2.2843712e-01 | ||
9.3854954e-01 3.8855984e-02 | ||
1.1032298e+00 -1.4304489e-01 | ||
1.0082623e+00 8.2076036e-02 | ||
1.3657724e+00 -9.5120396e-02 | ||
1.6112417e-01 9.3146135e-01 | ||
1.2744314e-02 7.1172188e-01 | ||
-1.0664676e-01 1.3752386e+00 | ||
-8.9814343e-02 6.2681146e-01 | ||
-4.4419760e-01 6.8385513e-01 | ||
-2.0725695e-01 7.0481888e-01 | ||
2.3524013e-02 1.0151033e+00 | ||
1.3890694e-01 8.7296951e-01 | ||
-3.1440981e-01 1.0613184e+00 | ||
-1.3083182e-01 1.3129298e+00 | ||
1.3539111e-01 1.1399145e+00 | ||
-9.8466091e-02 1.3231128e+00 | ||
-4.4501379e-01 8.2839910e-01 | ||
5.9267664e-01 3.5780148e-01 | ||
2.5489893e-01 6.6979484e-01 | ||
-2.0199882e-01 1.0335235e+00 | ||
-4.2885576e-01 1.0911313e+00 | ||
1.0322712e-01 5.9400205e-01 | ||
-1.9723433e-01 1.3403960e+00 | ||
-1.1353115e-01 6.7319187e-01 | ||
4.0688787e-01 9.8696848e-01 | ||
-4.6796045e-02 6.6406917e-01 | ||
3.2124189e-01 1.3173497e+00 | ||
5.1243938e-03 9.1821940e-01 | ||
2.8407226e-01 1.0560155e+00 | ||
9.4868475e-02 9.3456735e-01 | ||
-9.5926837e-02 1.0247360e+00 | ||
4.0200412e-01 1.2523789e+00 | ||
2.4620030e-01 1.0425304e+00 | ||
2.0865607e-01 1.5049251e+00 | ||
-2.8119147e-01 1.2229519e+00 | ||
1.1669107e-01 1.2967161e+00 | ||
1.2690337e-01 9.1158256e-01 | ||
2.2537798e-01 1.1935403e+00 | ||
-9.9160040e-02 1.1949584e+00 | ||
-1.6107908e-01 8.4973897e-01 | ||
2.6860421e-01 9.4216399e-01 | ||
3.0917642e-01 9.6035139e-01 | ||
1.9981889e-03 1.1045532e+00 | ||
-1.7998092e-01 6.0799009e-01 | ||
4.0607064e-01 1.1784296e+00 | ||
2.2849174e-01 1.3944892e+00 | ||
-2.7332032e-01 1.3102919e+00 | ||
-4.0823356e-01 1.1200681e+00 | ||
-2.0742396e-01 1.3783053e+00 | ||
-1.6515944e-01 1.0489970e+00 | ||
-4.4035092e-01 1.6121930e+00 | ||
3.0303782e-01 1.0023180e+00 | ||
1.1252761e-02 5.4663902e-01 | ||
-4.0678274e-01 1.0435023e+00 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function vtrace = c7p1sub(M,beta,h,vinit,eta,iters) | ||
%vtrace = c7p1sub(M,beta,h,vinit,eta,iters) | ||
% | ||
%This function simulates a Hopfield network using simple Euler integration. | ||
% | ||
% M is the connection matrix (should be symmetric) | ||
% beta is the gain of the activation function (tanh by befault) | ||
% h is the bias | ||
% vinit is the initial condition vector for the v's | ||
% eta is the timestep for the Euler integration | ||
% iters is the number of iterations to simulate | ||
% | ||
% vtrace is the v vector state of the network over time, | ||
% one column per timestep in the simulation | ||
|
||
N = size(M,1); | ||
vtrace = zeros(N,iters); | ||
|
||
vtrace(:,1) = vinit(:); | ||
|
||
for i=2:iters | ||
vtrace(:,i)=vtrace(:,i-1) + eta*(-vtrace(:,i-1) + ... | ||
beta*max(M*vtrace(:,i-1) + h,0)); | ||
end | ||
|
||
plot(vtrace(1,:),vtrace(2,:),'o',vtrace(1,:),vtrace(2,:)); | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.