iz A. Baccal√°, 2022. 
% See file license.txt in installation directory for licensing terms.

clear; clc; format compact; format short

%% Interaction diagram
%
% <<fig_baccala2001b_model2_variant_graph.png>>
%
% Figure 2a from Baccala & Sameshima. _Biol. Cybern._ *84*:463-474, 2001.

%% Equation
%
% <<fig_baccala2001b_model2_variant_eq.png>>
%

%% Data sample generation

nDiscard = 5000;    % number of points discarded at beginning of simulation
nPoints  = 1000;    % number of analyzed samples points
N=