Download ebooks file Signal Processing for Neuroscientists A Companion Volume Advanced Topics Nonlinear Techniques and Multi Channel Analysis Elsevier Insights 1st Edition Drongelen all chapters
Download ebooks file Signal Processing for Neuroscientists A Companion Volume Advanced Topics Nonlinear Techniques and Multi Channel Analysis Elsevier Insights 1st Edition Drongelen all chapters
com
https://ebookultra.com/download/signal-processing-for-
neuroscientists-1st-edition-wim-van-drongelen/
ebookultra.com
https://ebookultra.com/download/statistical-techniques-for-
neuroscientists-1st-edition-young-k-truong/
ebookultra.com
https://ebookultra.com/download/time-frequency-signal-analysis-and-
processing-a-comprehensive-reference-1st-edition-boualem-boashash/
ebookultra.com
Digital Signal Processing Techniques and Applications in
Radar Image Processing 1st Edition Bu-Chin Wang
https://ebookultra.com/download/digital-signal-processing-techniques-
and-applications-in-radar-image-processing-1st-edition-bu-chin-wang/
ebookultra.com
https://ebookultra.com/download/wavelet-analysis-and-transient-signal-
processing-applications-for-power-systems-1st-edition-zhengyou-he/
ebookultra.com
https://ebookultra.com/download/signal-processing-for-digital-
communications-artech-house-signal-processing-library-george-j-miao/
ebookultra.com
https://ebookultra.com/download/multi-platinum-pro-tools-advanced-
editing-pocketing-and-autotuning-techniques-nathan-adam/
ebookultra.com
Av = λv
P(a, b, f, tn)= a cos(2πftn) + b sin(2πftn)
dy
x = RC— + y
dt
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording, or any information storage and retrieval system, without
permission in writing from the publisher. Details on how to seek permission, further information about
the Publisher’s permissions policies and our arrangement with organizations such as the Copyright
Clearance Center and the Copyright Licensing Agency, can be found at our website: www.elsevier.com/
permissions
This book and the individual contributions contained in it are protected under copyright by the Publisher
(other than as may be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and experience
broaden our understanding, changes in research methods, professional practices, or medical treatment
may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in evaluating and
using any information, methods, compounds, or experiments described herein. In using such information
or methods they should be mindful of their own safety and the safety of others, including parties for
whom they have a professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume
any liability for any injury and/or damage to persons or property as a matter of products liability,
negligence or otherwise, or from any use or operation of any methods, products, instructions, or ideas
contained in the material herein.
This book has been manufactured using Print On Demand technology. Each copy is produced to order
and is limited to black ink. The online version of this book will show color figures where appropriate.
Preface
This text is based on a course I teach at the University of Chicago for students
in Computational Neuroscience. It is a continuation of the previously published
text Signal Processing for Neuroscientists: An Introduction to the Analysis of
Physiological Signals and includes some of the more advanced topics of linear and
nonlinear systems analysis and multichannel analysis. In the following, it is assumed
that the reader is familiar with the basic concepts that are covered in the introductory
text and, to help the student, multiple references to the basics are included.
The popularity of signal processing in neuroscience is increasing, and with the
current availability and development of computer hardware and software it may be
anticipated that the current growth will continue. Because electrode fabrication has
improved and measurement equipment is getting less expensive, electrophysiologi-
cal measurements with large numbers of channels are now very common. In addi-
tion, neuroscience has entered the age of light, and fluorescence measurements are
fully integrated into the researcher’s toolkit. Because each image in a movie con-
tains multiple pixels, these measurements are multichannel by nature. Furthermore,
the availability of both generic and specialized software packages for data analysis
has altered the neuroscientist’s attitude toward some of the more complex analysis
techniques. Interestingly, the increased accessibility of hardware and software may
lead to a rediscovery of analysis procedures that were initially described decades
ago. At the time when these procedures were developed, only few researchers had
access to the required instrumentation, but now most scientists can access both the
necessary equipment and modern computer hardware and software to perform com-
plex experiments and analyses.
The considerations given above have provided a strong motivation for the devel-
opment of this text, where we discuss several advanced techniques, rediscover
methods to describe nonlinear systems, and examine the analysis of multichannel
recordings. The first chapter describes two very specialized algorithms: Lomb’s
algorithm to analyze unevenly sampled data sets and the Hilbert transform to detect
instantaneous phase and amplitude of a signal. The remainder of the text can be
divided into two main components: (I) modeling systems (Chapter 2) and the anal-
ysis of nonlinear systems with the Volterra and Wiener series (Chapters 3 5) and
(II) the analysis of multichannel measurements using a statistical approach
(Chapter 6) and examination of causal relationships (Chapter 7). Throughout this
text, we adopt an informal approach to the development of algorithms and we
include practical examples implemented in MATLAB. (All the MATLAB scripts
used in this text can be obtained via http://www.elsevierdirect.com/companions/
9780123849151)
viii Preface
1.1 Introduction
This first chapter describes two of the more advanced techniques in signal proces-
sing: Lomb’s algorithm and the Hilbert transform. Throughout this chapter (and the
remainder of this text) we assume that you have a basic understanding of signal
processing procedures; for those needing to refresh these skills, we include multiple
references to van Drongelen (2007).
In the 1970s, the astrophysicist Lomb developed an algorithm for spectral analy-
sis to deal with signals consisting of unevenly sampled data. You might comment
that in astrophysics considering uneven sampling is highly relevant (you cannot
observe the stars on a cloudy day), but in neuroscience data are always evenly sam-
pled. Although this is true, one can consider the action potential (or its extracellular
recorded equivalent, the spike) or neuronal burst as events that represent or sample
an underlying continuous process. Since these events occur unevenly, the sampling
of the underlying process is also uneven. In this context we will explore how to
obtain spectral information from unevenly distributed events.
The second part of this chapter introduces the Hilbert transform that allows one
to compute the instantaneous phase and amplitude of a signal. The fact that one
can determine these two metrics in an instantaneous fashion is unique because usu-
ally this type of parameter can only be associated with an interval of the signal. For
example, in spectral analysis the spectrum is computed for an epoch and the spec-
tral resolution is determined by epoch length. Being able to determine parameters
such as the phase instantaneously is especially useful if one wants to determine
relationships between multiple signals generated within a neuronal network.
2007) or time series representing heart rate (van Drongelen et al., 2009) are two
such examples; in these cases one may consider the spike or the heartbeat to repre-
sent events that sample an underlying process that is invisible to the experimenter
(Fig. 1.1A).
The heart rate signal is usually determined by measuring the intervals between
peaks in the QRS complexes. The inverse value of the interval between pairs of
subsequent QRS complexes can be considered a measure of the instantaneous rate
(Fig. 1.1B). This rate value can be positioned in a time series at the instant of either
the first or second QRS complex of the pair and, because the heartbeats do occur at
slightly irregular intervals, the time series is sampled unevenly. This example for
the heartbeat could be repeated, in a similar fashion, for determining the firing rate
associated with a spike train.
When a signal is unevenly sampled, many algorithms that are based on a fixed
sample interval (such as the direct Fourier transform [DFT] or fast Fourier transform
[FFT]) cannot be applied. In principle there are several solutions to this problem:
(1) An evenly sampled time series can be constructed from the unevenly sampled one by
using interpolation. In this approach the original signal is resampled at evenly spaced
intervals. The interpolation technique (e.g., linear, cubic, spline) may vary with the
application. In MATLAB resampling may be accomplished with the interp1 command
or any of the other related functions. After resampling the time series one can use stan-
dard Fourier analysis methods. The disadvantage is that the interpolation algorithm may
introduce frequency components that are not related to the underlying process.
(2) The measurements can be represented as the number of events in a binned trace; now
our time series is a sequence of numbers, with one number for each bin. Since the bins
are equally spaced, the standard DFT/FFT can be applied. In case of low-frequency
activity, the bins must be relatively wide to avoid an overrepresentation of empty bins.
Figure 1.1 The QRS complexes in the ECG or extracellularly recorded spike trains can be
considered as a series of events such as shown in (A). The rate of events can be depicted as
the inverse of the interval between the events (B); here the inverse of the interval between
each pair of events is plotted at the instant of the second event of the pair. The signal in (B)
is unevenly sampled because the rate measure is available only at the occurrence of the
events; the dashed line is a linear interpolation between these measures.
Lomb’s Algorithm and the Hilbert Transform 3
The disadvantage of this is that wide bins are associated with a low sample rate and thus
a low Nyquist frequency, which limits the bandwidth of the spectral analysis.
(3) The most elegant solution is to use Lomb’s algorithm for estimating the spectrum. This
algorithm is specially designed to deal with unevenly sampled time series directly with-
out the assumptions demanded by interpolation and resampling techniques (Lomb, 1976;
Press et al., 1992; Scargle, 1982; van Drongelen et al., 2009). The background and appli-
cation of this algorithm will be further described in Sections 1.2.1 and 1.2.2.
Coefficients a and b are unknown and must be obtained from the fitting procedure.
For example, we can fit P to signal x by minimizing the squared difference between
P
N21
them over all samples: that is, minimize ε2 5 ½P 2 XðnÞ2 : We repeat this
n50
minimization for each frequency f. To accomplish this, we follow the same proce-
dure for developing the Fourier series (chapter 5 in van Drongelen, 2007) and set
the partial derivative for each coefficient to zero to find the minimum of the error,
that is:
and
For convenience, in the following we use a shorthand notation in addition to the full
notation. In the shorthand notation: C 5 cosð2πftn Þ; S 5 sinð2πftn Þ; and X 5 xðnÞ:
For the condition in Equation (1.2a) we get:
X @½P 2 xðnÞ X
@ε2 =@a 5 2½P 2 xðnÞ 5 2ðaC 1 bS 2 XÞC
@a
2 3
X
N 21
5 24a cosð2πftn Þ 1 b sinð2πftn Þ 2 xðnÞ5 cosð2πftn Þ 5 0
n50
|fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl} |fflfflfflfflfflfflffl{zfflfflfflfflfflfflffl}
P @½P 2 xðnÞ=@a
4 Signal Processing for Neuroscientists, A Companion Volume
This and a similar expression obtained from the condition in Equation (1.2b) results
in the following two equations:
X X X
XC 5 a C2 1 b CS
X
N 21 X
N 21 X
N 21 ð1:3aÞ
XðnÞcosð2πftn Þ 5 a cos2 ð2πftn Þ 1 b cosð2πftn Þsinð2πftn Þ
n50 n50 n50
and
X X X
XS 5 a CS 1 b S2
X
N 21 X
N 21 X
N 21 ð1:3bÞ
XðnÞsinð2πftn Þ 5 a cosð2πftn Þsinð2πftn Þ 1 b sin2 ð2πftn Þ
n50 n50 n50
Thus far the procedure is similar to the standard Fourier analysis described in chapter 5
in van Drongelen (2007). The special feature in Lomb’s algorithm is that for each
frequency f, the sample times tn are now shifted by an amount τ (Fig. 1.2). Thus,
in Equations (1.3a) and (1.3b), tn becomes tn2τ. The critical step is that for each
frequency
P f, we select an optimal time shift τ so that the cosinesine cross-terms
( CS) disappear, that is:
X X
N 21
CS 5 cosð2πf ðtn 2 τÞÞsinð2πf ðtn 2 τÞÞ 5 0 ð1:4Þ
n50
Using the trigonometric identity cosðAÞsinðBÞ 5 12½sinðA 2 BÞ 2 sinðA 1 BÞ; this can
be simplified into:
2 3
X
N 21 X
N 21
14 5
sinð0Þ 2 sinð4πf ðt 2 τÞÞ 5 0- sinð4πf ðtn 2 τÞÞ 5 0
2
n50
|fflfflffl{zfflfflffl} n
n50
0
X
N21 X
N21
sinð4πftn Þcosð4πf τÞ 2 cosð4πftn Þsinð4πf τÞ
n50 n50
X
N 21 X
N 21
5 cosð4πf τÞ sinð4πftn Þ 2 sinð4πf τÞ cosð4πftn Þ 5 0
n50 n50
X
N 21 NX
21
sinð4πf τÞ=cosð4πf τÞ 5 tanð4πf τÞ 5 sinð4πftn Þ cosð4πftn Þ
n50 n50
X
N 21 X
N 21
XðnÞcosð2πf ðtn 2 τÞÞ 5 a cos2 ð2πf ðtn 2 τÞÞ
n50 n50 ð1:6aÞ
X X X
N 21 NX
21
- a5 XC= C2 5 xðnÞcosð2πf ðtn 2 τÞÞ cos2 ð2πf ðtn 2 τÞÞ
n50 n50
and
X X
XS 5 b S2
X
N 21 X
N 21
xðnÞsinð2πf ðtn 2 τÞÞ 5 b sin2 ð2πf ðtn 2 τÞÞ
n50 n50 ð1:6bÞ
X X X
N 21 X
N 21
- b5 XS= S2 5 xðnÞsinð2πf ðtn 2 τÞÞ sin2 ð2πf ðtn 2 τÞÞ
n50 n50
6 Signal Processing for Neuroscientists, A Companion Volume
Now we can compute the sum of P2 ða; b; f; tn Þ—that is, the sum of squares of the
sinusoidal signal in Equation (1.1) for all tn—in order to obtain an expression that
is proportional with the power spectrum S of x(n) as a function of f:
cross-terms
X
N 21 X X zfflfflffl}|fflfflffl{
Sðf; a; bÞ 5 P ða; b; f; tn Þ 5
2
ðaC 1 bSÞ 5 2
a C 1 b S 1 2abCS
2 2 2 2
n50
2 3
X
N 21
5 4a cos ð2πf ðtn 2 τÞÞ 1 b sin ð2πf ðtn 2 τÞÞ 1 cross-terms 5
2 2 2 2
|fflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflffl}
n50 0
ð1:7Þ
X 2 X 2
XC X XS X
Sðf Þ 5 X 2 C 2 1 X 2 S2
2 2
C S
" #2
X
N 21
xðnÞcosð2πf ðtn 2 τÞÞ N21
n50
X
5 " #2 cos2 ð2πf ðtn 2 τÞÞ
X
N 21
n50
cos2 ð2πf ðtn 2 τÞÞ
"n50 #2
X
N21
xðnÞsinð2πf ðtn 2 τÞÞ
n50
X
N 21
1 " #2 sin2 ð2πf ðtn 2 τÞÞ
X
N 21
n50
sin2 ð2πf ðtn 2 τÞÞ
n50
X 2 X 2
XC XS
Sðf Þ 5 X 1 X
C2 S2
" #2 " #2
X
N 21 X
N 21
ð1:8Þ
xðnÞcosð2πf ðtn 2 τÞÞ xðnÞsinð2πf ðtn 2 τÞÞ
n50 n50
5 1
X
N 21 X
N 21
cos2 ð2πf ðtn 2 τÞÞ sin2 ð2πf ðtn 2 τÞÞ
n50 n50
Lomb’s Algorithm and the Hilbert Transform 7
The expression for the power spectrum in Equation (1.8) is sometimes divided by 2
(to make it equal to the standard power spectrum based on the Fourier transform;
see Appendix 1.1), or by 2σ2 (σ2—variance of x) for the determination of the statis-
tical significance of spectral peaks. (Some of the background for this normalization
is described in Appendix 1.1; for more details, see Scargle, 1982.) By applying the
normalization we finally get:
8" #2 " #2 9
>
> X
N 21 X
N 21 >
>
>
> ðt 2 τÞÞ ðt 2 τÞÞ >
>
>
< xðnÞcosð2πf n xðnÞsinð2πf n >
=
1 n50 n50
Sðf Þ 5 2 1
2σ >
> X
N 21 X
N 21 >
>
>
> cos2 ð2πf ðtn 2 τÞÞ sin2 ð2πf ðtn 2 τÞÞ > >
>
: >
;
n50 n50
ð1:9Þ
From the above derivation, we can see that Lomb’s procedure allows (but does
not require) unevenly sampled data. Note that in Equations (1.7) and (1.8) we did not
compute power as the square of the cosine and sine coefficients, a and b, as we
would do in the standard Fourier transform; this is because in Lomb’s approach the
sinusoidal signals are not required to have a complete period within the epoch deter-
mined by the samples x(n). Because we do not have this requirement, the frequency f
is essentially a continuous variable and the spectral estimate we obtain by this
approach is therefore not limited by frequency resolution (in the DFT/FFT, the fre-
quency resolution is determined by the total epoch of the sampled data) and range
(in the DFT/FFT, the maximum frequency is determined by the Nyquist frequency).
However, to avoid misinterpretation, it is common practice to limit the bandwidth of
the Lomb spectrum to less than or equal to half the average sample rate. Similarly,
the commonly employed frequency resolution is the inverse of the signal’s epoch.
% Pr1_1.m
% Application of Lomb Spectrum
clear;
t=rand(2000,1); t=sort(t); % An array of 2000 random sample intervals
f=[1:500]; % The desired frequency scale
% frequencies same as pr7_1.m in van Drongelen (2007)
f1=50;
f2=130;
% data plus noise as in pr7_1.m in van Drongelen (2007)
x=sin(2*pi*f1*t)+sin(2*pi*f2*t);
x=x+randn(length(t),1);
var=(std(x))^2; % The signal’s variance
% Main Loop
for i=1:length(f)
h1=4*pi*f(i)*t;
%Equation (1.5)
tau=atan2(sum(sin(h1)), sum(cos(h1)))/(4*pi*f(i));
h2=2*pi*f(i)*(t-tau);
%Equation (1.8)
Pxx(i)=(sum(x.*cos(h2)).^2)/sum(cos(h2).^2)+. . .
(sum(x.*sin(h2)).^2)/sum(sin(h2).^2);
end;
% Normalize; Equation (1.9)
Pxx=Pxx/(2*var);
% Plot the Results
figure;
subplot(2,1,1), plot(t,x,‘.2’)
title(‘Irregularly Sampled Signal (USE ZOOM TO INSPECT UNEVEN
SAMPLING)’)
xlabel(‘Time (s)’);ylabel(‘Amplitude’)
subplot(2,1,2),plot(f,Pxx);
title(‘Lomb Spectrum’)
xlabel(‘Frequency (Hz)’);ylabel(‘Normalized Power’)
In this example we consider the first term in Equation (1.10), f ðtÞ 5 A cosðωtÞ; as
the signal under investigation. This signal is ideal to demonstrate the Hilbert trans-
form application because in this example we can see that the amplitude of f ðtÞ is A,
and its instantaneous phase φ is ωt. The terminology for the Hilbert transform is as
follows: the imaginary component, the second term, in Equation (1.10)
f~ðtÞ 5 A sinðωtÞ is defined as the Hilbert transform of f ðtÞ (we will discuss further
details in Sections 1.3.1 and 1.3.2 below), and the sum of both the signal and its
Hilbert transform multiplied by j generates a complex signal:
Imaginary axis
Hilbert transform
ωt
Real axis
~
fa(t) = A sin(ωt)
Instantaneous phase = ωt
A j π δ (ω +ω0) − j sgn(ω)
− ω0 ω0 ω
− ω0 ω0
Frequency domain
Figure 1.3 The signal amplitude A and instantaneous phase ωt of point * of the cosine
function (B, f ðtÞ; blue) can be determined with the so-called analytic signal (A). The analytic
signal consists of a real part equal to the signal under investigation (the cosine) and an
imaginary component (the sine). The imaginary component (red) is defined as the Hilbert
transform f~ðtÞ of the signal f ðtÞ: The frequency domain equivalents of the cosine wave, the
sine wave, the Hilbert transform procedure, and the analytic signal are shown in (C). See
text for further explanation.
Again, in this example we did not need the analytic signal to determine phase and
amplitude for our simple cosine signal, but our finding may be generalized to other
signals where such a determination is not trivial.
(A)
~
f (t ) Hilbert Transformer f (t )
Phase Shift by -π /2 rad
(B) (C)
Imaginary Axis
Imaginary Axis
z = a + jb
*
-π/2
Real Axis Real Axis
*
-π /2 *
e − j (π / 2 ) = − j * ~
z = b − ja
Figure 1.4 (A) The Hilbert transform can be represented as the operation of an LTI system
(the Hilbert transformer). Input f ðtÞ is transformed into f~ðtÞ by shifting it by 2π/2 rad
(290 ). (B) The Hilbert transform operation in the frequency domain can be represented as
a multiplication with e2jðπ=2Þ 5 2j (orange arrow). (C) Example of the Hilbert transform in
the frequency domain—that is, multiplication of a complex number z 5 a 1 jb with 2j. The
result is z~ 5 b 2 ja: As can be seen, the result is a 290 rotation. Note in this panel that 90
angles are indicated by M and that the angles indicated by and * add up to 90 .G
Hilbert transformer as a phase-shifting (linear time invariant, LTI) system that gen-
erates the Hilbert transform of its input (Fig. 1.4A). The generalization of this prop-
erty associated with the cosine is not too far of a stretch if you recall that, with the
real Fourier series, any periodic signal can be written as the sum of sinusoidal sig-
nals (the cosine and sine waves in equation (5.1) in van Drongelen, 2007) and that
our above results can be applied to each of these sinusoidal components.
To further define the shifting property of the Hilbert transformer (see Fig.
1.4A), we begin to explore this operation in the frequency domain, because here
the procedure of shifting the phase of a signal by 2π/2 rad is relatively easy
to define as a multiplication by e2jðπ=2Þ 5 2j (Fig. 1.4B). If this is not obvious
to you, consider the effect of this multiplication for any complex number
z 5 ejφ (representing phase φ) that can also be written as the sum of its real and
imaginary parts z 5 a 1 jb: Multiplication by 2j gives its Hilbert transform
z~ 5 2jða 1 jbÞ 5 b 2 ja; indeed corresponding to a 290 rotation of z (see
Fig. 1.4C). Although the multiplication with 2j is correct for the positive frequen-
cies, a 290 shift for the negative frequencies in the Fourier transform (due to the
negative values of ω) corresponds to multiplication with ejðπ=2Þ 5 j: Therefore, the
operation of the Hilbert transform in the frequency domain can be summarized as:
Here we use the so-called signum function sgn (Appendix 1.2, Fig. A2.1)
defined as:
8
< 21 for ω , 0
sgnðωÞ 0 for ω 5 0 ð1:12Þ
:
1 for ω . 0
Let us go back to our phase-shifting system depicted in Fig. 1.4A and define its
unit impulse response as h(t) and its associated frequency response as H(ω). Within
this approach, the Hilbert transform is the convolution of input f(t) with h(t). Using
our knowledge about convolution (if you need to review this, see section 8.3.2 in
van Drongelen, 2007), we can also represent the Hilbert transform in the frequency
domain as the product of F(ω)—the Fourier transform of f(t)—and H(ω). This is
very convenient because we just determined above that the Hilbert transform in the
frequency domain corresponds to a multiplication with 2j sgnðωÞ: To summarize,
we now have the following three Fourier transform pairs:
Using these relationships and Equation (1.11), we may state that the Fourier trans-
form of the unit impulse response (i.e., the frequency response) of the Hilbert trans-
former is:
We can use the expression we found for H(ω) to examine the above example of
Euler’s equation
Analytical signal
zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl}|fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{
Ae jω0 t
5 A cosðω0 tÞ 1 j A sinðω0 tÞ
|fflfflfflfflfflfflffl{zfflfflfflfflfflfflffl} |fflfflfflfflfflfflffl{zfflfflfflfflfflfflffl}
Signal Hilbert transform
in the frequency domain. The Fourier transform of the cosine term (using equation
(6.13) in van Drongelen, 2007) is:
Now, according to Equation (1.13), the Fourier transform of the cosine’s Hilbert
transform is the product of the Fourier transform of the input signal (the cosine)
and the frequency response of the Hilbert transformer H(ω), that is:
Because δðω 1 ω0 Þ is only nonzero for ω 5 2ω0 and δðω 2 ω0 Þ is only nonzero for
ω 5 ω0 ; we may rewrite the 2j sgn(ω) factors in Equation (1.16) and we get:
fa ðtÞ3Fa ðωÞ
f ðtÞ 3FðωÞ
f~ðtÞ 3FðωÞ
~
the above expressions can be combined in the following Fourier transform pair:
In the above equation we substitute the expressions for FðωÞ from Equation (1.15)
~
and FðωÞ from Equation (1.17) and get:
~
Fa ðωÞ 5 FðωÞ 1 jFðωÞ
Fourier transform of analytical signal
zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl}|fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{
5 Aπ½δðω 1 ω0 Þ 1 δðω 2 ω0 Þ 1 j Ajπ½δðω 1 ω0 Þ 2δðω 2 ω0 Þ
|fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl} |fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl}
Fourier transform of signal Fourier transform of Hilbert transform
~
Fa ðωÞ 5 FðωÞ 1 jFðωÞ 5 2πAδðω 2 ω0 Þ ð1:18Þ
This interesting finding shows that the Fourier transform of the analytic signal has
zero energy at negative frequencies and only a peak at 1 ω0 : The peak’s amplitude
at 1 ω0 is double the size of the corresponding peak in FðωÞ (Fig. 1.3C). This find-
ing may be generalized as: “The Fourier transform of the analytic signal Fa ðωÞ has
14 Signal Processing for Neuroscientists, A Companion Volume
Applying this to our signum function (see also Appendix 1.2), we can define the
inverse Fourier transform of sgnðωÞ:
2 2
sgnðtÞ3 ; therefore 32π sgnð2ωÞ ð1:19bÞ
jω jt |fflfflfflfflffl{zfflfflfflfflffl}
2sgnðωÞ
Note that we can substitute 2sgnðωÞ 5 sgnð2ωÞ because the signum function
(Fig. A2.1) has odd symmetry (defined in Appendix 5.2 in van Drongelen, 2007).
Using the result from applying the duality property in Equation (1.19b), we can
determine the inverse Fourier transform for the frequency response of the Hilbert
transformer HðωÞ 5 2j sgnðωÞ and find the corresponding unit impulse response
hðtÞ: Because 2π and j are both constants, we can multiply both sides with j and
divide by 2π; this generates the following Fourier transform pair:
1
hðtÞ 5 3Hð jωÞ 5 2j sgnðωÞ ð1:20Þ
πt
In Equation (1.14) we found that the frequency response of the Hilbert transformer
is 2j sgnðωÞ: Because we know that multiplication in the frequency domain is
equivalent to convolution in the time domain (chapter 8 in van Drongelen, 2007),
we can use the result in Equation (1.20) to define the Hilbert transform f~ðtÞ of sig-
nal f ðtÞ in both the time and frequency domains. We define the following Fourier
transform pairs:
Using the above pairs and Equation (1.20), the Hilbert transform and its frequency
domain equivalent are:
ð
N
1 f ðtÞ
f~ðtÞ 5 f ðtÞ hðtÞ 5 ~
dτ3FðωÞ 5 FðωÞHðωÞ ð1:21Þ
|ffl{zffl} π t2τ
1 2N
πt
There is, however, a problem with our finding for the Hilbert transform expression
in Equation (1.21), which is that there is a pole for f ðtÞ=ðt 2 τÞ within the integration
limits at t 5 τ: The solution to this problem is to define the Hilbert transform as:
ð
N
1 f ðtÞ
f~ðtÞ 5 CPV dτ ð1:22Þ
π t2τ
2N
in which CPV indicates the Cauchy principal value of the integral. The CPV is a
mathematical tool to evaluate integrals that include poles within the integration
limits. An example of such an application is given in Appendix 1.3. For those inter-
ested in the CPV procedure, we refer to a general mathematics text such as Boas
(1966).
1.3.3 Examples
The Hilbert transform is available in MATLAB via the hilbert command. Note
that this command produces the analytic signal f ðtÞ 1 j f~ðtÞ and not the Hilbert
transform itself; the Hilbert transform is the imaginary component of the output.
You can evaluate the example from Equation (1.10) by computing the Hilbert
transform for the cosine and plot the amplitude and phase. Type the following in
the MATLAB command window:
You will obtain a graph of a 4-Hz cosine function with an indication of its amplitude
(a constant) in red, its instantaneous phase in green (note that we use the atan2
MATLAB command in the above example because we want to obtain phase angles
between 2π and 1π), and the frequency as the derivative of the phase in magenta.
You can now check both frequency characteristics we discussed by computing
the Fourier transforms and plotting these in the same graph.
If you use the zoom function of the graph to study the peaks in the plot you will
see that the peaks for the positive frequencies (far-left part of the graph) show a
difference of a factor two between the Fourier transform of the analytic signal and
the Fourier transform of the signal. The negative component (in the discrete version
of the Fourier transform this is the far-right part of the graph) shows only a peak in
the Fourier transform of the signal. Both observations are as expected from the the-
oretical considerations in Section 1.3.1.
Another property to look at is the phase shift between the signal and its Hilbert
transform. This can be accomplished by typing the following lines:
figure; hold;
plot(t,imag(xa),‘r’); % the imaginary part of the analytic signal=
% the Hilbert transform
plot(t,x,‘k.’) % the signal
plot(t,real(xa),‘y’) % real part of the analytic signal=signal
Now you will get a figure with the signal (4-Hz cosine wave) in both black (thick
line) and yellow (thin line); the Hilbert transform (the 4-Hz sine wave) is plotted
in red.
Finally we will apply these techniques to an example in which we have two neu-
ral signals, one signal generated by a single neuron and one signal generated by the
network in which the neuron is embedded. Our question here is how the phases of
these two signals relate. First, the raw extracellular trace is rectified and sent
through a low-pass filter with a 50-ms time constant (this technique of using the
analytic signal to find the instantaneous phase usually works better with signals
composed of a small band of frequencies and, in our case, we are only interested in
the low-frequency behavior; see Pikovsky et al., 2001, for more details). For the
cellular activity, we create a raster plot of the spike times and send it through the
same low-pass filter. We now have two signals representing the low-pass-filtered
spiking behavior of the cell and network (see Fig. 1.5Aiii). We can use the Hilbert
Lomb’s Algorithm and the Hilbert Transform 17
Cell activity
Network
activity
–π
–π
π
–π –π π
Figure 1.5 (A) Processing of a cellular and network activity (i) into a low-frequency index
of spiking activity (iii) (see text for details). (B) The low-pass-filtered signals of (A) were
transformed using the analytic signal technique to find the instantaneous phase over time (i).
The relationship between the two signals was investigated by finding the difference between the
phases over time (ii) and plotting these phase differences in a histogram (iii). In this example we
observe that the overall effect is that the network activity leads and the cell activity lags—that is,
the histogram (iii) of network activity phase minus cell activity phase is predominantly positive.
(From A. Martell, unpublished results, with permission.)
transform technique to find the instantaneous phase of each signal (Fig. 1.5Bi). For
our case, we are interested in how the phases of the cellular and network signals
are related. To find this relationship, we calculate the difference between the two
instantaneous phase signals at each point in time and then use this information to
generate a histogram (see Fig. 1.5Biiiii). This method has been used to compare
how the phases of cellular and network signals are related for different types of cel-
lular behavior (Martell et al., 2008).
Appendix 1.1
In the case of the standard power spectrum we have S 5 XX*/N (equation (7.1)
in van Drongelen, 2007). The normalization by 1/N ensures that Parseval’s conser-
vation of energy theorem is satisfied (this theorem states that the sum of squares
in the time domain and the sum of all elements in the power spectrum are equal; see
Table 7.1 and Appendix 7.1 in van Drongelen, 2007). In the case of Lomb’s algo-
rithm we compute the sum of squares for each frequency by using the expression in
18 Signal Processing for Neuroscientists, A Companion Volume
Power spectrum
based on
Lomb’s algorithm Power spectrum
based on the
Fourier transform
Figure A1.1 Spectral analysis of a 1-s epoch of a 50-Hz signal sampled at 1000 Hz. The
graph depicts the superimposed results from a standard power spectrum (red) based on the
Fourier transform and the power spectrum obtained with Lomb’s algorithm (dark blue). Note
that the total energy in both cases is identical. This figure can be created with Pr1_2.m .
Equation (1.8), which is based on Equation (1.7). Our expectation is therefore that
Lomb’s spectrum will also satisfy Parseval’s theorem. However, there is a slight dif-
ference. In the standard Fourier transform the positive and negative frequencies
each contain half the energy. Basically, this is due to the fact that the Fourier trans-
form is based on the complex Fourier series, which includes negative frequencies.
In contrast, if we compute the Lomb spectrum only up to the Nyquist frequency, we
have all energy in the positive frequencies, and therefore its values are twice as large
as compared to the standard power spectrum. An example for a single frequency is
shown in Figure A1.1. This figure is based on a standard power spectrum and Lomb
spectrum computed for the same input, a sine wave of 50 Hz. Thus, if we want the
Lomb spectrum to have the same amplitudes as the standard power spectrum, we
need to divide by two. Furthermore, if we want to normalize by the total power, we
can divide by the variance σ2. This normalization by 2σ2 is exactly the normalization
commonly applied for Lomb’s spectrum (see Equation (1.9) and Pr1_1.m ).
Appendix 1.2
This appendix describes the signum function sgnðtÞ; its derivative, and Fourier
transform. The signum function is 1 for positive t and 21 for negative t
(Fig. A2.1). Similar to the derivative of the unit step function U(t) (section 2.2.2,
fig. 2.4A in van Drongelen, 2007), the derivative of this function is only nonzero at
t 5 0. The only difference is that for sgnðtÞ the function increases by 2 units (from
21 to 1) instead of 1 unit (from 0 to 1) in U(t). Since the derivative of the unit step
is δðtÞ; the derivative of the signum function would be twice as large, that is:
d½sgnðtÞ
5 2δðtÞ ðA1:2:1Þ
dt
The Fourier transform of the derivative of a function is equal to the Fourier trans-
form of that function multiplied with jω. This property is similar to the relationship
of the Laplace transform of a derivative of a function and the Laplace transform of
the function itself (see section 9.3, equation (9.3) in van Drongelen, 2007). If we
Lomb’s Algorithm and the Hilbert Transform 19
now use this property and define the Fourier transform of sgnðtÞ as S(ω), we can
apply the Fourier transform to both sides of Equation (A1.2.1):
jωSðωÞ 5 2 ðA1:2:2Þ
Recall that the Fourier transform of the unit impulse is 1 (see section 6.2.1, equa-
tion (6.9) in van Drongelen, 2007). Therefore, the Fourier transform pair for the
signum function is:
2
sgnðtÞ3SðωÞ 5 ðA1:2:3Þ
jω
Appendix 1.3
In Equation (1.22) we use the Cauchy principal value, CPV. This technique is used
to approach integration of a function that includes a pole within the integration lim-
its. We will not go into the mathematical details (for more on this subject please
see a mathematics textbook such as Boas, 1966), but we will give an example to
Ðd
show the principle. For example, consider the integral ð1=xÞdx: The function 1=x
2d
in this integral has a pole (is unbounded) at x 5 0: The Cauchy principal value tech-
nique approximates the integral as the sum of two separate integral:
ðd ð
2ε ðd
1 1 1
dx dx 1 dx
x x x
2d 2d ε
where ε is a small positive value approaching zero. In this case the two integrals
Ðd
cancel and approach ð1=xÞdx: Our final result can be summarized as:
2d
2 2ε 3
ðd ð ðd
1 1 1 5
CPV dx 5 lim 4 dx 1 dx 5 0
x ε-0 x x
2d 2d ε
Here the Cauchy principal value is indicated by CPV; in other texts you may also
find PV or P.
2 Modeling
2.1 Introduction
Signal analysis is frequently used to characterize systems. In van Drongelen
(2007), chapter 8, we described linear systems and associated techniques that allow
us determine system characteristics. In the last chapter of van Drongelen (2007)
(section 17.3) we showed how these linear methods, such as cross-correlation, fail
to characterize signals with a nonlinear component. To address this shortcoming,
we used metrics such as correlation dimension, the Lyapunov exponent, or
Kolmogorov entropy to characterize nonlinear signal properties.
The goal of this chapter is to introduce basics for modeling systems, with an
emphasis on techniques used to characterize nonlinear systems and their signals. In
this context, this chapter will also provide an introduction to the application of the
Volterra series, which forms the basis for the identification of dynamical nonlinear
systems, and which we will go over in more detail in Chapter 3. The systems that
we will introduce in this chapter are considered higher-order systems, since they
include operators beyond the (linear) first-order one. Useful references on the char-
acterization of nonlinear systems are the seminal text by Marmarelis and
Marmarelis (1978) and the reprint edition of a text from the 1980s by Schetzen
(2006). For more recent overviews, see Westwick and Kearney (2003) and
Marmarelis (2004).
for discrete time systems (for details see chapter 8 in van Drongelen, 2007). If one
of the terms in a differential or difference equation is of a higher order, we have a
nonlinear dynamical system. For example, y 2 4ðdy=dtÞ2 5 2x represents a second-
order dynamical system.
Time invariance is a critical condition for the development of the convolution
formalism (see section 8.3.1.1 in van Drongelen, 2007). This property allows us to
state that a system’s response to identical stimuli at different points in time is
always the same (provided that the system is in the same state, of course). Just as
we have linear time invariant systems, we also have nonlinear time invariant sys-
tems (usually abbreviated as LTI or NLTI systems).
Models of real systems can be generated according to two major methodological
approaches. One might follow a deductive path and start from (physical) assump-
tions about the system, generating a hypothetical model to create predictions that
can be empirically tested. These empirical measurements can be used to establish
the parameters of the hypothetical model, and therefore this type of representation
is often called a parametric model. An alternative to this procedure, the inductive
path, is followed if one starts from the measurements of a system’s input and out-
put. This data-driven method uses measurements, rather than assumptions about the
system, to mathematically relate input and output. Here, we can consider the sys-
tem as a black box, modeled by a mathematical relationship that transforms input
into output. This type of model is often referred to as nonparametric (note, how-
ever, that nonparametric does not refer to the absence of parameters; in many cases,
Modeling 23
these models will have more parameters than parametric models). The method of
induction is appropriate when dealing with complex systems that resist a reduction
to a simpler parametric model. It can also be a starting point in which a system is
first characterized as a black box and in subsequent steps parts with physical mean-
ing replace pieces of the black box. In this combined approach, parts of the model
may still be part of the black box, whereas other parts may be associated with a
physical interpretation. In this case, the distinction between parametric and non-
parametric models may become a bit fuzzy.
Note: See van Drongelen (2007) for further details about determining these
parameters from measurements: in section 11.2.1 it is shown how RC can be
obtained from the filter’s unit step response (equation (11.8)), and in section
12.3, RC is determined from the 3 dB point of the filter’s frequency charac-
teristic (equation (12.5)).
d
d
IC + INa + IK + IL = 0
RL
IC INa
RNA
IK
RK
IL –
Na
EK EL
Figure 2.1 (A) Example of a parametric model of a dynamical linear system (a low-pass
filter) and its input and output (x and y respectively). (B) The black box, nonparametric
equivalent of the same system is the white curve representing the (sampled) unit impulse
response (UIR). Both models permit us to predict the output resulting from an arbitrary input
such as the unit step function. The parametric model has two parameters (R and C) with
physical meaning. The nonparametric model consists of many parameters (the samples
making up the UIR) without a direct physical meaning. (C) Hodgkin and Huxley’s electronic
equivalent circuit for the biomembrane. The model consists of the membrane capacitance
(C) and three parallel ion channels: one for sodium, one for potassium, and a leakage
channel. According to Kirchhoff’s first law the sum of all currents at the node (arrow) must
be zero. (D) Model for gating variable m in the Hodgkin and Huxley formalism.
Hodgkin and Huxley’s model relates all these variables in an equivalent circuit
of the excitable biomembrane (Fig. 2.1C) by setting the sum of all membrane cur-
rents equal to zero according to Kirchhoff’s first law (see appendix 1.1 in van
Drongelen, 2007). By applying this law to the node indicated with the arrow in the
membrane model in Fig. 2.1C we obtain:
dV V 2 ENa V 2 EK
C 1 1 1 IL 5 0 ð2:1Þ
dt R RK |{z}
|fflffl{zfflffl} |fflfflfflfflffl{zfflfflfflfflffl}
Na
|fflfflfflfflffl{zfflfflfflffl
ffl}
Leak
Capacitive Sodium Potassium
current
current current current
5 IC 5 INa 5 IK
are the equilibrium potentials for sodium and potassium ions computed with the
Nernst equation (appendix 1.1 in van Drongelen, 2007); and IL is a constant leak-
age current attributed to Cl2 ions. The sodium and potassium currents are deter-
mined with Ohm’s law (appendix 1.1 in van Drongelen, 2007): each ion species
experiences a potential drop equal to the difference between the membrane poten-
tial V and its equilibrium potential (e.g., for sodium: V 2 ENa ), and this potential
drop divided by the resistance is the ion current (e.g., for sodium the current is
ðV 2 ENa Þ=RNa ). In addition to Equation (2.1), Hodgkin and Huxley (1952)
described the dynamics for RNa and RK with the nonlinear relationships
m3 h and gK 5 1=RK 5 gK n4 ; where gNa
gNa 5 1=RNa 5 gNa and gK are the maximum
conductivity values for sodium and potassium. Furthermore, the gating variable m
is modeled by a reversible process between the open (m) and closed (1m) states
(Fig. 2.1D), which can be represented by the following ODE:
dm
5 αm ðVÞð1 2 mÞ 2 β m ðVÞm ð2:2Þ
dt
The rate parameters αm and β m that govern this process depend on the membrane
potential V in a nonlinear fashion. The two other gating variables h and n follow
the same formalism with membrane potential-dependent rate constants αh, β h, αn,
and β n. Hodgkin and Huxley determined these nonlinear relationships between the
rate parameters and membrane potential from voltage clamp experiments.
Over time, other ion channels were introduced into the model using the same
formalism as for the sodium and potassium channels. Since the development of
computer technology, the Hodgkin and Huxley formalism has been widely used in
simulations of neural systems ranging from very detailed models of single neurons
(e.g., De Schutter and Bower, 1994a, b) to large-scale networks of neocortex (e.g.,
Traub et al., 2005; van Drongelen et al., 2006).
Although Hodgkin and Huxley’s model only contains four variables (V, m, h, n),
it is still too complex to approach analytically. Several authors solved this problem
by reducing the 4D model to a 2D one; the FitzhughNagumo model (Fitzhugh,
1961) is an example of such a reduction. In these models, the gating variable m of
the Hodgkin and Huxley model is removed by considering sodium activation to be
instantaneous; subsequently, h and n are combined into a single recovery variable w.
Fitzhugh used the following pair of coupled differential equations:
dV dw
5 Vða 2 VÞðV 2 1Þ 2 w 1 I and 5 bV 2 cw ð2:3Þ
dt dt
2.4 Polynomials
For static systems, both linear and nonlinear, one can use algebraic expressions to
describe their inputoutput characteristic, and polynomials are often used for this
purpose. Polynomials are sums of monomials, which are expressions that consist of
a constant multiplied by one or more variables; the exponent of the variable is its
degree. For example, zðtÞ 5 axðtÞ4 yðtÞ3 is a monomial with a constant (parameter) a
and a degree of 4 for x and 3 for y. We can see that this expression represents a static
process because at any time t, output z depends only on the present values of inputs
x and y. It is important to note that although the relationship between z and x, y is
nonlinear, the expression can be considered a linear function of the parameter a.
X
N
yðtÞ 5 a0 1 a1 xðtÞ 1 a2 xðtÞ2 1 a3 xðtÞ3 1 ? 1 ai xðtÞi 1 ? 5 ai xðtÞi ð2:4Þ
i50
In principle, power series are infinite; however, in our applications they will always
consist of a finite number of monomials. The fact that Equation (2.4) is linear with
respect to its parameters ai can be used to fit the series by using a technique
called least squares minimization. Using this approach of fitting polynomials to
recorded data sets is often called regression analysis. This procedure works as fol-
lows. Suppose we have two sets of N measurements: a system’s input xn and asso-
ciated output yn. If we model our system as a second-order static system, we can
Modeling 27
truncate the expression in Equation (2.4) above the second power and estimate the
output y as a0 1 a1 xn 1 a2 x2n : Subsequently we can define the error of our estimate
ε2 as:
X
N
ε2 5 ½yn 2 ða0 1 a1 xn 1 a2 x2n Þ 2 ð2:5Þ
n51
By following the same approach we used to find the coefficients in Lomb’s algo-
rithm (Section 1.2.1), we can find the minimum associated with the best choice for
parameters a0, a1, and a2 by setting the partial derivatives of ε2 (with respect to
these three parameters a0, a1, and a2 ) equal to zero:
@ε2 XN
5 2 2 ½yn 2 a0 2 a1 xn 2 a2 x2n 5 0
@a0 n51
X
N X
N X
N
N 1 a1
-a0 |{z} x n 1 a2 x2n 5 yn
n51 n51 n51
X
N
1
n51
@ε2 XN
5 2 2 ½yn 2 a0 2 a1 xn 2 a2 x2n xn 5 0
@a1 n51
X
N X
N X
N X
N
-a0 xn 1 a1 x2n 1 a2 x3n 5 yn xn
n51 n51 n51 n51
@ε 2 X
N
5 2 2 ½yn 2 a0 2 a1 xn 2 a2 x2n x2n 5 0
@a2 n51
X
N X
N X
N X
N
-a0 x2n 1 a1 x3n 1 a2 x4n 5 yn x2n ð2:6bÞ
n51 n51 n51 n51
Note that in Equation (2.6b) all summation (Σ) expressions are numbers that can
be computed from the observations; therefore, there are three linear equations with
three unknown parameters a0, a1, and a2 to compute (this should be no problem
provided, of course, that the set of equations can be solved). Note that if we had
truncated Equation (2.4) at a1, the normal equations that we would have obtained
would have been the well-known equations for linear regression.
28 Signal Processing for Neuroscientists, A Companion Volume
It is a bit tedious to solve the three equations in (2.6b); therefore, one might prefer
to solve the coefficients by using the matrix notation XA 5 Y for the three equations:
2 3 2 3
X
N XN X N
6 N xn 2
xn 7 2 3 6 yn 7
6 7 a0 6 n51 7
6 n51 n51 7 6 7 6 7
6X X X 7 6 7
6 7 6X
N N N N
6 37 6 7 7
6 xn xn2
xn 7 6 7a 1 5 6 y n xn 7 ð2:6cÞ
6 n51 7 4 5 6 7
6 n51 n51 7 6 n51 7
6X N X N XN 7 6X N 7
4 2 3 45 a2 4 25
xn xn xn |fflfflffl{zfflfflffl} y x
n n
n51 n51 n51 A n51
|fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl} |fflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflffl}
X Y
X
N
f ðtÞ 5 et 5 a0 1 a1 t 1 a2 t2 1 a3 t3 1 ? 1 ai ti 1 ? 5 ai t i ð2:7Þ
i50
Modeling 29
The task at hand is to determine the values of the coefficients ai for function et. We
can use the following approach to perform this task. First we determine the deriva-
tives of f.
f ðtÞ 5 et 5 a0 1 a1 t 1 a2 t2 1 a3 t3 1 ? 1 ai ti 1 ?
df ðtÞ
5 et 5 a1 1 2a2 t 1 3a3 t2 1 ? 1 iai ti21 1 ?
dt
d2 f ðtÞ ð2:8Þ
5 et 5 2a2 1 ð2 3 3Þa3 t 1 ? 1 ði 3 ði 2 1ÞÞai ti22 1 ?
dt2
d3 f ðtÞ
5 et 5 ð2 3 3Þa3 1 ? 1 ði 3 ði 2 1Þ 3 ði 2 2ÞÞai ti23 1 ?
dt3
^
The second step is to consider f(t) 5 et about the origin. As we approach the origin
(i.e., t becomes 0), Equation (2.8) simplifies to:
With the results obtained in Equation (2.9), we can see that for the function, the
values for the coefficients ai are:
1
ai 5 ð2:10Þ
i!
Combining this result in Equation (2.10) with Equation (2.7), we have found the
well-known power series expansion of the exponential function:
1 1 1 1 XN
1 i
f ðtÞ 5 et 5 1 1 t 1 t2 1 t3 1 ? 1 ti 1 ? 5 t ð2:11Þ
1! 2! 3! i! i50
i!
30 Signal Processing for Neuroscientists, A Companion Volume
P
N
In the last expression ð1=i!Þ ti ; we use the definition 0! 1. Note that by using
i50
this approach, we include only values of t—there are no previous or future values
(t6τ) included in the power series; therefore, this approach is static (or memory-
less). An example of this approximation is implemented in MATLAB script Pr2_1.m
(http://www.elsevierdirect.com/companions/9780123849151).
In the above example we used the exponential exp(t) for f(t); if we consider the
development of Equation (2.4) for any function that can be differentiated, we get:
Here the notation f 0 ð0Þ; f 00 ð0Þ; f 000 ð0Þ; . . . are not functions but represent the numbers
computed as the value of the 1st, 2nd, 3rd, . . . derivatives of f at t 5 0. From this more
general notation we obtain the expression for the so-called Maclaurin series of f(t):
1 0 1 1
f ðtÞ 5 f ð0Þ 1 t f ð0Þ 1 t2 f 00 ð0Þ 1 t3 f 000 ð0Þ 1 ? ð2:13Þ
1! 2! 3!
We will now use a similar approach for the development of this series about α as
we used in the Maclaurin series about the origin—except in this case we set t 5 α
Modeling 31
(instead of t 5 0) so that all terms in Equation (2.14) with ðt2αÞi vanish. By fol-
lowing this procedure we get:
5 a0 -a0 5 f ðαÞ
df ðαÞ
5 ½a1 1 2a2 ðt2αÞ 1 3a3 ðt2αÞ2 1? 1 iai ðt2αÞi21 1 ?t 5α
dt
5 a1 -a1 5 f 0 ðαÞ
d f ðαÞ
2
5 ½2a2 1 ð2 33Þa3 ðt2αÞ 1 ?1ði3 ði21ÞÞai ðt2αÞi22 1 ?t 5 α
dt2 ð2:15Þ
f 00 ðαÞ
5 2a2 -a2 5
2
d3 f ðαÞ
5 ½ð23 3Þa3 1?1 ði3 ði21Þ 3 ði22ÞÞai ðt2αÞi23 1 ?t 5 0
dt3
f 000 ðαÞ
5 ð2 3 3Þa3 -a3 5
ð23 3Þ
^
Similar to the notation used in the previous section, the notation f 0 ðαÞ; f 00 ðαÞ;
f 000 ðαÞ; . . . does not refer to functions, but represents the numbers computed as the
value of the 1st, 2nd, 3rd, . . . derivatives of f at t 5 α. Substituting the findings in
Equation (2.15) into Equation (2.14) we obtain the Taylor series about t 5 α:
1 1 1
f ðtÞ 5 f ðαÞ 1 ðt 2 αÞf 0 ðαÞ 1 ðt2αÞ2 f 00 ðαÞ 1 ðt2αÞ3 f 000 ðαÞ 1 ? ð2:16Þ
1! 2! 3!
Comparing Equations (2.13) and (2.16), we can establish that the Maclaurin series is
the same as a Taylor series computed about the origin (i.e., α 5 0). This approach can
be extended to higher-dimensional systems with multiple inputs; see Appendix 2.1
for examples of the 2D case. It must be noted that in many texts the distinction
between Maclaurin and Taylor series is not always made and it is not uncommon to
use the term Taylor series for both, a habit we will adopt in the following.
The number of terms in a Taylor series may be infinite. However, if we evaluate
a system close to an equilibrium at the origin or α, the value of t or (t2α) is a
small number {1; therefore, one can ignore higher-order terms in the power series
tn or (t2α)n because they become increasingly smaller. Thus, in general we can
approximate any function close to α with a linear expression obtained from a
Taylor series in which higher-order terms are ignored f ðtÞ f ðαÞ 1 ðt 2 αÞf 0 ðαÞ; or,
in the case where we evaluate the expression about the origin, we obtain the
approximation f ðtÞ f ð0Þ 1 tf 0 ð0Þ: This technique of linearizing a nonlinear func-
tion plays an important role in the analysis of nonlinear systems. A system’s
32 Signal Processing for Neuroscientists, A Companion Volume
t2 t3
sinðtÞ 5 sinð0Þ 1 t cosð0Þ 2 sinð0Þ 2 cosð0Þ 1 ?
|fflfflffl{zfflfflffl} |fflfflffl{zfflfflffl} 2 |fflfflffl{zfflfflffl} 6 |fflfflffl{zfflfflffl}
0 1 0 1
For small values of t (around 0) we may ignore all higher-order terms and we find
that sinðtÞ t: In general, such an approach may be useful if one studies a system
close to an equilibrium. For example, if one examines a neuron’s subthreshold
behavior, one must describe the membrane potential close to the resting potential; in
this case it makes sense to linearize the nonlinear equations that govern the cell’s
electrical activity around resting potential. An example of this approach, where the
nonlinear Hodgkin and Huxley equations are linearized, can be found in Chapter 10
in Koch (1999).
When fitting a truncated power series to an analytic function, one could truncate
the Taylor series at the desired order. However, due to the error introduced by trunca-
tion, one may actually obtain a better fit by using a linear regression approach. An
example is if one wants to approximate et with a second-order power function over a
limited interval. The truncated Taylor series (see Equation (2.11)) is 1 1 t 1 0:5t2 ; but
with a regression approach over the interval [1,1] one obtains a better fit with
0:9963 1 1:1037t 1 0:5368t2 : This can be seen by running MATLAB script Pr2_1
(available on http://www.elsevierdirect.com/companions/9780123849151) where the
original exponential function (red), the Taylor series (blue), and the regression result
(black) are superimposed. The regression approach for obtaining a power series
approximation is also a valid solution if the Taylor series cannot be applied, as in the
case of a function that is nonanalytic, such as y 5 jxj (no [unique] derivative at x 5 0).
y 5 f ðxÞ ð2:19aÞ
we can link two time series x(t) and y(t) with an operator F:
Do not be intimidated by this first appearance of the expression for the Volterra
series. In the following text and Chapter 3 we will discuss and explain the different
components of this representation. At this point it is worthwhile to mention that the
Volterra series is essentially the convolution integral extended to nonlinear sys-
tems. We could simplify the notation in Equation (2.20) with the commonly used
symbol for convolution (chapter 8 in van Drongelen, 2007), and we get:
y 5 h0 1 h1 x 1 h2 x x 1 ? 1 hn x ffl{zfflfflfflfflfflfflfflfflffl
|fflfflfflfflfflfflfflfflffl ? xffl}
n copies of x
34 Signal Processing for Neuroscientists, A Companion Volume
In the Volterra series (Equation 2.20), input function x(t) determines the output
function y(t). The expression is analogous to the Taylor series except that the dif-
ferentials of the Taylor series are replaced by integrals. The symbols h0, h1, h2, and
hn represent the so-called Volterra kernels. The term “kernel” is uniquely defined
for this type of series and should not be confused with the use of this term in com-
puter science or other areas in mathematics. Note that the first-order component
Ð
N
h1 ðτ 1 Þxðt 2 τ 1 Þdτ 1 in the Volterra series is the convolution integral (see section
2N
8.3.1.1 in van Drongelen, 2007) and the higher-order components in Equation
(2.20) are convolution-like integrals. Thus for a linear system, kernel h1 is the UIR.
Representations that utilize Volterra series are usually nonparametric—that is, one
can predict system output when the input is known, but one cannot necessarily
intuit the system’s components or underlying mechanisms. In the following we will
examine examples of the relationship between Volterra and Taylor series. See also
Chapter 3 for further details on the Volterra series.
Despite the similarities between the Taylor series in Equation (2.17) and the
Volterra series in Equation (2.20) discussed above, it may not be immediately obvi-
ous that they are related. Therefore, we will discuss the similarities for a simple
dynamical nonlinear system, which we will subsequently transform into a static
nonlinear one. Let us consider a dynamical second-order system that consists of
a cascade of a dynamical linear component and a static nonlinear module
(Fig. 2.2A). Such a cascade approach with the dynamics in the linear component
combined with static nonlinearities is frequently applied in dynamical nonlinear
system analysis. In this example, we have the linear component’s UIR h(t) and the
static second-order nonlinear component a0 1 a1 y 1 a2 y2 (Equation (2.18)). From
Fig. 2.2A we can establish that the output y of the linear module can be obtained
from the convolution of the input x and the linear module’s UIR h:
ð
N
Second-order static
nonlinearity
Modeling 35
The cascade’s final output z can be obtained from the static nonlinearity character-
istic by substituting the output of the linear component (Equation (2.21)) into the
input of the static nonlinearity (Equation (2.18)):
2 32
ð
N ð
N
ð
N
This expression can be rearranged in the form of the Volterra series shown in
Equation (2.20):
Equation (2.24) shows that the system in Fig. 2.2A can be characterized by a
Volterra series for a second-order system with Volterra kernels h0, h1, and h2.
To demonstrate that the Taylor series is the static equivalent of the Volterra
series, we show the equivalence of Equation (2.24) to the power series in Equation
(2.18). To accomplish this, we consider the case where our dynamical component
in the cascade becomes static; the linear component is now replaced by the static
function yðtÞ 5 xðtÞ: In other words, the linear module’s UIR is the unit impulse δ
36 Signal Processing for Neuroscientists, A Companion Volume
itself, indicating that for this linear component output equals input (Fig. 2.2B).
Therefore, we can substitute δ(t) for h(t) in Equation (2.24):
ð
N
5 a0 1 a1 xðtÞ 1 a2 xðtÞ2
Thus, in the static case, we can use the Volterra series to recover
zðtÞ 5 a0 1 a1 xðtÞ 1 a2 xðtÞ2 ; which is the original expression of the power series in
Equation (2.18).
Note: The integrals in Equation (2.25) are evaluated using the property of the
Ð
N
unit impulse δ (see section 2.2.2 in van Drongelen, 2007): xðτÞδðτÞdτ 5
NÐ 2N
xð0Þ and accordingly xðt 2 τÞδðτÞdτ 5 xðtÞ:
2N
Appendix 2.1
Taylor Series for a 2D Function
We can extend the Taylor series in Equation (2.16) to a function f ðτ; σÞ of two
variables τ and σ. In the case where we can subdivide the function into two sepa-
rate ones (e.g., f ðτ; σÞ 5 f ðτÞ 1 f ðσÞ or f ðτ; σÞ 5 f ðτÞf ðσÞ), we can compute the
Taylor series for each function f ðτÞ and f ðσÞ and add or multiply the individual
series to obtain the expression for f ðτ; σÞ: Such an approach would work if, for
example, f ðτ; σÞ 5 eτ sinðσÞ:
Alternatively, one can approach the development of a 2D Taylor series more
generally, and consider f about point α, β.
Using a similar approach as the one for the single-variable Taylor series, we set τ
and σ to α and β and find f ðα; βÞ 5 a00 : To find the other coefficients we use par-
tial differentiation of f at point α, β:
This technique can be used to obtain the full power series of f. In most applications
we are interested in the linear approximation of the 2D series:
@f ðα; βÞ @f ðα; βÞ
f ðτ; σÞ f ðα; βÞ 1 ðτ 2 αÞ 1 ðσ 2 βÞ ðA2:1:3aÞ
@τ @σ
The higher-order nonlinear terms are often not considered because we assume that
we only look at f closely around point α, β; therefore, τ2α and σ2β are very
small numbers, and higher powers of these small contributions are even smaller. In
other words, when f is in the neighborhood of point α, β, the function can be
approximated with the linear terms in Equation (A2.13a). In many cases, especially
in physics literature, you may encounter an alternative notation for the linear
approximation of a nonlinear system. The small fluctuations τ2α and σ2β around
α, β are indicated as perturbations δτ and δσ; and the notation for f ðα; βÞ;
ð@f ðα; βÞÞ=@τ; and ð@f ðα; βÞÞ=@σ is changed to ½f α;β ; ½@f=@τα;β ; and ½@f=@σα;β :
2 3 2 3
@f @f
f ðτ; σÞ ½f α;β 1 4 5 δτ 1 4 5 δσ ðA2:1:3bÞ
@τ @σ
α;β α;β
Again, recall that in this notation ½f α;β ; ½@f=@τα;β ; and ½@ f=@σα;β represent the
coefficients in the equation. They are numbers and not functions, since these repre-
sent the function and its derivatives when evaluated at point α, β. An example of
an application that linearizes the nonlinear Hodgkin and Huxley equations can be
found in Chapter 10 of Koch (1999).
3 Volterra Series
3.1 Introduction
Most physiological systems cannot be modeled successfully as linear systems. At
best, a linear model can be considered an approximation of physiological activity
in cases where the output of a physiological system behaves (almost) linearly over
a limited range of the input. In the following, we extend the convolution integral
that describes the behavior of linear devices to the convolution-like Volterra series,
which can be used to represent nonlinear systems. Because the expressions for
higher-order nonlinear terms require significant computational resources and
become very complex to deal with, we will demonstrate the general principles for
second-order systems. See Schetzen (2006) if you are interested in details of higher-
order systems.
In a linear time invariant (LTI) system, the convolution integral links output y(t)
and input x(t) by means of its weighting function h(t) (Fig. 3.1) (Chapter 8 in van
Drongelen, 2007):
ð
N
Here symbolizes the convolution operation and the system’s weighting func-
tion h(t) is its unit impulse response (UIR). This role of h(t) can be verified by
using a unit impulse δ(t) as the input. In this case we obtain (using the sifting
property):
ð
N
Note: In the following we will use the sifting property of the unit impulse
repeatedly (for a discussion, see section 2.2.2 in van Drongelen, 2007). The sift-
ing property is defined as:
ð
N ð
N
The unit impulse δ has properties of a function with even symmetry; there-
fore, the evaluation of the integral above is the same for δðt 2 τÞ and δðτ 2 tÞ:
You can also see that this must be the case since the outcome is δð0Þ for t 5 τ
in both cases, δðt 2 τÞ and δðτ 2 tÞ:
Such an LTI system shows superposition and scaling properties. For instance, if we
introduce a scaled delta function Cδ(t) (C—constant) at the input, we get a scaled
UIR function Ch(t) at the output:
ð
N ð
N
h(t) d
h2(τ1,τ2)
Figure 3.1 Example of LTI and NLTI systems. (A) A linear system. (B) A second-order
system and (C) a combined nth order system. The output of the first-order components is
determined by the convolution integral, and the output of higher-order components is
obtained from convolution-like integrals. The output of the nth order system is represented
by a Volterra series consisting of the sum of the individual components, each determined by
a convolution-like expression.
Volterra Series 41
ð
N ð
N
Unlike the convolution in Equation (3.1), this system works on two copies of input
x(t) instead of only one. As we discussed in Section 2.5, such a system is an exam-
ple of a so-called second-order Volterra system. Note that the double integral in
Equation (3.4) is identical to the last term in the expression in Equation (2.24). If
we determine the UIR for the system in Equation (3.4), we get:
ð
N ð
N
Here we applied the sifting property twice: once for each of the delays τ 1 and τ 2.
The result h2(t,t) is the diagonal of kernel h2.
Note: You can see that in a second-order Volterra system, the UIR h2(t,t) does
not fully characterize the system (unlike the situation in an LTI system).
Instead it only characterizes the 2D function h2 ðτ 1 ; τ 2 Þ along the diagonal
τ 1 5 τ 2 in the τ 1 ; τ 2 plane. As we will see in Section 3.3 we need sets of
paired impulses to fully characterize h2.
The system in Equation (3.4) is nonlinear because scaling does not hold. For exam-
ple, the response to a scaled delta function Cδ(t) at the input is:
ð
N ð
N
2N 2N
By comparing Equations (3.5) and (3.6) we can see that in this system the UIR
h2(t,t) scales with C2 instead of C. As we will show in Section 3.2.1, superposition
does not hold for this system either, but showing that scaling does not hold is suffi-
cient to negate linearity of the system. In the remainder of this chapter we will con-
tinue our introduction of Section 2.5 by studying the properties of the Volterra
series and applying it for the characterization of higher-order systems.
42 Signal Processing for Neuroscientists, A Companion Volume
Note: We can refer to h1 as the UIR only if we deal with a first-order Volterra
system without a DC term—that is, a (linear) system where h1 is the only
term of y(t). In all other cases, the UIR is determined by the contributions of
all of the system’s Volterra kernels and not just by h1.
X
N
yðtÞ 5 Hn ½xðtÞ ð3:9aÞ
n51
Other documents randomly have
different content
"H—m," chuckled Hora, glancing at a print hung upon the wall
opposite him, "that Morland would have been a cheap investment,
even if it had been a fake. As it is——"
"As it is," laughed Guy, "your capital has returned to you more
than a thousandfold. Still I can't help marvelling at your wonderful
eye for detail. You could not have been in Flurscheim's house more
than an hour, and yet I found every wire, every lock, every catch,
exactly where you told me I should find them. Some of the doors and
windows you could never have seen? How could you know?"
"It was not through any capacity for seeing through brick walls,"
said Hora drily. "But merely a deduction from what Flurscheim
himself did not tell me. He was very proud of a system of alarm
designed by himself for the protection of his treasures. He told me
that it was impossible for a window sash to be lifted or an outer door
to be unlatched without setting off the alarm—I observed from
outside that the attics were fitted with swing casements and I drew
my own conclusions."
"You omitted to inform me that the servants slept in those attics,"
remarked Guy. "I nearly stepped on the bed of one of them when I
entered the window."
"So that is why you left by the front door, was it?" enquired Hora.
"It was a little bit risky, wasn't it?"
"No," said the young man. "I calculated that I should get a
minute's start, and thirty seconds was quite enough. As a matter of
fact, I had a clear minute. I looked out into the street from a window
and saw that the coast was clear and the brougham was waiting.
There were two or three parties just leaving Lady Greyston's and I
calculated upon being able to join them without exciting observation.
The street was very much in shadow, and just between lights, after a
dance, you know, no one observes very clearly."
"Still it was a risk," observed Hora. "I should have returned by
the way I had gone."
"I still think I took the lesser evil," replied Guy. "Besides the
chance of finding Flurscheim's servants awake, there was the
possibility of being seen from the street as I passed along the
parapet back to the window of the Greyston's house. Then suppose I
had met someone on the stairs at the Greyston's. The function was
practically over. There was every likelihood that some of the servants
would be going to their quarters—it would have been deuced
unpleasant to have had to explain what I was doing there."
"At all events," remarked Hora, "you ought to have cut off the
alarm. Did you forget how to do it?"
A smile flickered across the young man's face.
"No," he said, "I left it in position on purpose. I thought I should
like to give Flurscheim a sporting chance of getting his own back.
There were just two flights of stairs and a bedroom door between us.
I thought that if that were not sufficient to enable me to get away I
should deserve to be captured."
Myra, who had been listening to the conversation in silence, half
uttered an exclamation. But she checked it so that only Hora's keen
ears heard. He smiled, but said nothing. Guy continued lazily: "You
see that I did not misjudge the conditions. I am here." Then he
repeated the words he had used a few hours previously. "You must
set me a more difficult task next time, Commandatore."
"What an enthusiast you are," remarked Hora. "If you go on at
this rate, there will be nothing left for you to do."
"I hate being idle," remarked the young man.
"Never fear, never fear," said Hora, "I have no doubt you will
manage to amuse yourself. You did so last night, did you not?"
Although the question was asked carelessly, the young man
flushed slightly as he answered: "Tolerably well."
"Only tolerably well?" asked Hora, "and yet you postponed your
enterprise until almost too late, for only 'tolerable' amusement."
"Admitted, Commandatore," answered Guy gaily, "the adverb is
not sufficient. To tell the truth, I met some very pleasant people, and
the time passed swiftly."
Myra sprung the next question.
"Who were they, Guy? Anyone I have met?"
"No," he answered. "A Captain and Mrs. Marven and——"
He did not get to the end of his sentence. Lynton Hora had risen
from his chair and interrupted him: "Who did you say? Say the name
again," he cried hoarsely.
Both Myra and Guy looked at him in amazement. Hora was not
given to showing emotion, and there could be no doubt but that he
was deeply moved. His lips were drawn closely together, beads of
perspiration broke out on his forehead, every line in his face
deepened.
"What's the matter, Commandatore—father?" cried Guy in
alarm, as he sprung to Hora's side and laid his hand on the elder
man's arm.
Hora shook off the touch roughly.
"Say the name again," he repeated.
"Marven," repeated Guy, "Captain Marven."
Gradually Hora regained control of himself. His features
resumed their normal air of petulant acquiescence with the world, but
there was a gleam in his eyes which revealed a very different spirit
within him. Presently he spoke.
"You are surprised to see me so much moved by the mention of
a name. You would not be if you knew what reason I have to hate
the possessor of it. So you found Captain Marven very good
company, eh, Guy?" He laughed sardonically.
"Why, yes," replied the young man.
"I wonder," he mused, "if you would have thought him as
entertaining if you knew the part he has played in my life."
"In your life?" queried Myra and Guy in the same breath.
"In my life," repeated Hora with deliberation. Then he continued
in accents which showed how deeply memories of the past rankled:
"That is the man, Guy, to whose actions my quarrel with the world is
due. Owing to him I found every man's hand raised against me.
Owing to him I was compelled in self-defence to raise my hand
against every man. Owing to him I became another Ishmael—thrust
out into the world, branded, a mark for every man's scorn and every
woman's jeers. Oh, I have taken my revenge upon the scorners," he
laughed harshly, "but not upon him—not upon him—yet."
He paused, and once more, it was only with an effort that he
regained control of himself. He did not again trust himself to speech.
He turned on his heel abruptly. At the door he paused.
"You have given me much to think about, Guy," he said. "At
present I am unable to think calmly. Some other time I will discuss
the matter with you."
He left the room swiftly and the firm step of his sound leg and
the following shuffle as he dragged the other foot along after it was
the only sound to be heard until the closing of another door told Myra
and Guy that he had shut himself in his own apartment.
CHAPTER III
THE MAKING OF A CRIMINAL
The philosophy of Lynton Hora had for once given way under
the stress of a deep emotion. There could be no doubt about that,
and no doubt either that the emotion which had strained the
philosophy to breaking point was the emotion of hate.
Never before had Guy seen him so wrought upon. Often he had
regretted that the man he called father should have been of so calm
a temperament—regretted even while he admired. Himself of an
impulsive, even ardent nature, he had longed to express his feelings
to the one being who had been his sole companion from infancy,
who had treated him with unfailing and unvarying kindness, but who
chilled, with what appeared to be temperamental coldness, any
expression of affection.
Guy was thrilled with the discovery that a deep sea of passion
underlay Hora's cold exterior. If Hora hated, of necessity he must
love.
He must love him, Guy Hora, his son. Did not every action in his
life show it?
The thought awakened Guy's memory actively. His earliest
memories were of the Commandatore. He had no knowledge of a
mother, or but shadowy recollections, and those might merely be the
offspring of his own imagination. Lynton Hora had been father and
mother both. Guy could recall Hora's face bending over his bed in
the days of his babyhood. He had one vivid recollection of being
parted from his father when he himself was about seven years old.
He had been left in the charge of some dark-haired, swarthy-faced
people, and they had neglected him—had beaten him. How he had
cried for his father, and when his father had returned, he
remembered running to him and sobbing out his tale of misery. He
remembered how Hora had told him that men never cried when they
were hurt, and that he, stricken with shame, had answered that it
was not the beating but the loneliness which had brought the tears to
his eyes.
Hora had smiled and had left him alone for a few minutes. He
had smiled still more when he had returned. Guy remembered
seeing the man who had beaten him later that same day with a
bruised face and an arm hanging helpless in a sling from his neck.
But that was not his most vivid memory of Hora's return. Chiefly
it was a conversation that took place when Hora had taken the boy's
hand and led him up into the mountains. Often the boy had recalled
the words which had been spoken to him. He could never see a pine
tree without their being fresh spoken to his ear, for they had been
uttered beneath the pine woods, on the edge of a translucent
mountain lake, which mirrored the snowy peaks above it so perfectly
that it seemed strange that the pebbles at the bottom could not be
counted.
Hora had taken the boy's tears as his text.
"Women weep when they are hurt," he said. "Men strike back.
Remember that, Guy; remember too that if you cannot strike with the
arm, there are other ways of driving the blow home."
Though Guy had understood the meaning of Hora's words but
dimly then, he had remembered them, and later he understood. Hora
had often given him practical illustration of his precepts. He never
forgot an injury or a slight, and Guy was often allowed to see how
Hora avenged either. Memory has no chronological exactitude, and
as Guy allowed his thoughts to drift, an instance occurred to him
which had happened some years later. They had been travelling in
France together and had been hurrying on to Italy. The one other
traveller in the same compartment had been a blusterous
Englishman of the most unpleasantly self-assertive type. Hora had
attempted to engage him in conversation and had met with a surly
repulse. When the frontier was reached, the assertive person was
asleep. Hora had dexterously possessed himself of the man's watch
and when the custom's official made his appearance had transferred,
with equal dexterity, the watch to his pocket, leaving a portion of the
chain visible. When awakened, the Englishman discovered his loss
almost immediately. The official was before him asking him in a
language he did not comprehend, whether he had any dutiable
articles to declare. The visible piece of chain caught the eye of the
excited passenger. He made a grab at the presumed thief. The
official, thinking he was being attacked by a madman, made a wild
dive for the door and reached the platform. The Englishman followed
in pursuit and captured his man. There was a wild melée, from which
the victim did not emerge victorious. When the train moved on, Hora
was gratified by seeing their late companion ineffectually struggling
in the grasp of half-a-dozen stalwart carabinieri.
Guy was fifteen years old when this event had happened, and
long before then he had imbibed from his father ideas of morality
which were directly at variance with those generally accepted. Guy
could never remember a time when Hora had bade him restrain any
desire. How well he recalled a day, he could not have been more
than six, when they had passed a shop wherein a basket of golden
oranges were displayed. "Buy me one," he had cried. Hora had
stopped. There was no one in the shop. "I'll teach you a new game,"
he said. "Go and fetch a couple, Guy. Mind you choose the best," he
said.
Guy had obeyed and Hora had praised him. As Guy ate the
oranges he thought the game the best he had ever heard of. Next
day they had passed the shop and Guy was about to repeat the
foray, but Hora had restrained him.
"Look, Guy," he said. "There is somebody there now; when you
want oranges or anything else without paying you must be quite sure
there is no one about, or you will lose the game."
Guy remembered the precept and acted upon it. It was a
delightful new game for anyone to play, if you were only clever
enough to play it properly. He used to beg Hora to take him out for a
day's stealing, and sometimes, as a reward for perseverance in his
studies, Hora would accede to the boy's request. He had no notion
that he was doing anything wrong, though he had been taught that
there were things he must not do. He knew that he must not tell his
father a lie; he knew too that he was to be silent when bidden.
Of course a time had eventually arrived when he had become
conscious that there was some lack of harmony between the life he
and his father led and the lives of those upon whom they preyed.
Hora had taken the boy to see a big penal establishment and his
curiosity had been stirred as to the reason of this gathering of men in
mud-coloured garb, marked all over with broad arrows. "Why are
they all dressed alike? Why do their masters carry guns?" he asked.
Hora had silenced him with a sign at the time, but later, when
they were alone, he had explained.
"They are all men who have been trying to play the game of
stealing and have lost," he said. "If you were to get caught, you
would be taken away and shut up at night in a cell all alone, and
dressed in ugly clothes, and when you went out men with guns
would be set to watch you so that they should shoot you if you tried
to run away."
"Have you ever been caught, father?" Guy asked.
Hora had never replied to that question. His face had grown so
dark that Guy had forborne to press for an answer, and the memory
of the singular expression which had passed over his countenance
had been sufficient to prevent Guy ever repeating the enquiry.
After the visit to the convict establishment, Guy had been
timorous at playing his new game, but Hora had chaffed him,
advised him, stood beside him, protected him, until he became
exceedingly dexterous in a variety of forms of petty larceny. He was
never allowed at this time to mix with other boys. Hora had him
always under his own eye, educating him according to a system
which was a fair sample of the average boy's education as regards
matter, but differing vastly from the average boy's education as
regards the application of the knowledge imparted to him.
Cæsar was never to him a mere handbook by which the
intricacies of a dead language were revealed, but a wonderful history
of a man who played the game of stealing in a great way. Hora made
quite clear to the boy's mind that there was only a difference in
degree between the stealing of oranges and the stealing of
kingdoms, but that if one wanted to steal kingdoms it was just as well
to begin early and learn the principles of the art by stealing oranges.
He explained, too, that the world looked with very different eyes
upon the theft of a crown and the theft of an orange or an apple. The
man who annexed an empire was an emperor whom men acclaimed
and set on a throne in a garb of purple, while the man who stole a
loaf of bread to assuage his hunger was a petty thief at whom the
world hurled opprobrium and thrust into a prison, garbed in mud-
coloured clothes and covered over with broad arrows.
Guy began to comprehend what Hora intended him to
comprehend, that there was something mean about petty theft, and
he no longer found pleasure in his game, but turned instead to the
weaving of romances of magnificent depredations.
Even the fiction which was supplied by Hora for the boy's
amusement was insidiously utilised for the inculcation of the same
perverted morality. With Robinson Crusoe, for instance, it was easy
for a man of Hora's equipment to make fun of Crusoe's naïve
dependence upon Providence and his exhibition of piety in moments
of stress. Hora pointed out that Crusoe's prayers were mere
expression of the terror of an uneducated mind when confronted with
personal danger—of a mind which had been trained in youth to rely
upon supernatural agencies for relief and comfort. He pointed out
that Crusoe really secured his own safety through the exercise of his
own constructive and observatory powers, and through no other
agency.
As Guy grew older, Hora sedulously built upon the foundation of
disbelief which he laid down as the basis of the boy's education. Guy
was taught that religion was merely the means by which a
priestarchy levied toll upon the body corporate by playing upon
inherited superstitions—while history supplied him with plenty of
illustrations. History supplied him, too, with plenty of examples to
point the arguments with which he supported what was in effect a
complete criminal philosophy. Guy was not taught only that atheism
was the hope of humanity. Hora had read much of Nietzsche, and he
skilfully adopted the Nietzschean philosophy to his purpose. A
particular appeal to Guy's mind was to be found in Hora's definition
of virtue, as a thirst for danger and courage for the forbidden. As
translated by Hora, both in precept and in practice, the highest virtue
was to be found in the breaking of laws. He imbibed the doctrines
with avidity, for Hora had a persuasive tongue. He learned at the
same time to keep them to himself, for, as Hora explained, if sheep
knew as much as men, men would have no mutton.
Until eighteen, Guy's education progressed under his father's
tuition, and then, feeling sure of him, Hora thought it time to launch
him on the world. Guy went to Oxbridge to make acquaintance with
his fellows, to survey the flock of sheep which were to supply him
with mutton in the future. The time then passed pleasantly enough,
and plenty of active exercise supplied him with a vent for his
energies. He did not shear any of the sheep, for Hora had bidden
him stay his hand. A blameless university career would, he knew, be
of great value in the future.
When Guy came down from the University it was with the
reputation of being one of its wildest spirits. Great things were
predicted of him. Others might excel him in individual efforts in the
field and the schools, but none could excel him in fearlessness of
demeanour. Besides, Hora's education had supplied him with a
serene belief in himself, which had been communicated to those with
whom he came in contact. He had been the leader of a set, the
model for the freshman, the autocrat of his time. Like most autocrats,
he cherished a profound contempt for those who bowed down before
him. He was to them as his father was to him, something so much
greater than they that their tribute became merely a thing of no
account. He understood why his father had no affection for him. How
could anyone love the thing beneath; the moth could love the star,
but the star could not love the moth—and——
Guy awoke from the reverie into which he had been betrayed by
his father's emotion on hearing the name of Captain Marven
mentioned. He was quite alone. Myra had left the room after vainly
trying to engage his attention. His hand unconsciously sought his
pocket, and, when he drew it out, he held in his palm the snuff-box
he had reserved for himself from the booty he had brought home on
the previous night. He gazed earnestly at the miniature set in the lid.
"So Captain Marven is father's enemy," he muttered, "and this—
this must be a portrait of Captain Marven's daughter."
His face grew troubled. His brow puckered. He thrust the box
back into his pocket and rose impatiently from his seat.
"Bah!" he said, "what says the Commandatore? Man is trained
for war, and woman for the relaxation of the warrior; all else is folly."
CHAPTER IV
THE REFLECTIONS OF LYNTON HORA
"We are getting near the end of our resources, Guy," remarked
Hora quietly, as he held a glass of port up to the light, sipped the
wine, nodded his head approvingly, and set the glass down gently.
It was the evening of the second day after Hora's exhibition of
emotion upon hearing the name of Marven. He had not referred
again to the object of his hatred, and neither Myra nor Guy, who sat
with him at the table, had prompted his memory.
Guy looked round the room before he answered. He had been
well trained in the observance of caution. But the servants had
retired, the door was closed. The three were alone.
"All London offers replenishment of our empty coffers," he
answered light-heartedly. "Who is to have the honour?" He turned to
Myra. "Shall I peel a peach for you?" he asked.
The woman seemed not to hear the question. She was looking
at Hora, with an appeal in her glance.
Hora answered her glance. "Myra is tired of London," he
remarked. "What do you say, Guy? Shall we finish the campaign
now, strike our tents and retire like contented bourgeoisie to our
vineyard to watch the grapes ripen?"
Guy's eyebrows arched in surprise. "Retire empty-handed?" he
asked incredulously. "Why, what has come upon you,
Commandatore?"
"Myra is tired," he answered briefly.
Guy looked, smilingly, at her. She flushed slightly. "Not a bit of
it," he answered. "I am quite sure she does not desire to exchange
the delights of a London season, even for the dolce far niente of an
Italian summer."
"I should not mind," she answered. "London is a beastly place.
The Commandatore is right. I am sick of the sight and sound of
people, and of the perpetual menace of our life—I——"
Hora checked her speech with a gesture. The door opened and
a servant entered with coffee, and while he was present the
conversation passed lightly over topics of the day.
"I don't like that man," said Guy, as the servant withdrew. "I
caught him prying about amongst my belongings the other day when
I returned to the flat unexpectedly."
"All servants do that," murmured Hora indifferently. "Curiosity is
the mental badge of servitude. The servant is never happy until he
has surprised one of his master's secrets. It would be just as well,
Guy, if you were to supply him with a few facts to exercise his
imagination upon. Get some girl to write you a few love letters and
hide them where he can find them. He will never be at a loss then to
supply a reason for any erratic movement of yours."
Guy laughed. "Not a bad suggestion," he agreed. "Do you adopt
the same plan to protect yourself?"
Hora shrugged his shoulders. "I carefully built up my own
reputation in advance," he remarked. "Haven't I told you? I suppose
not, for you were both too young when I first located myself here."
He looked round the pleasant dining-room complacently. "I've had
the place for ten years now, and for one's name to be for ten years in
the London directory, at the same address, is a certificate of
respectability which is not easily discredited."
"Still I wonder that you did not seek greater privacy," remarked
Guy, as he lit a cigarette.
Hora smiled. "A decision for privacy always awakens suspicion,
and thus in our profession privacy de facto is perhaps the one luxury
we cannot afford. Nevertheless a greater degree of privacy is
possible in the midst of a crowd than would be possible anywhere
else in the wide world. This is not such a paradoxical statement as it
sounds. In the crowd no one is intent on the doings of his
neighbours. Put a ring-fence round a man, and every eye would be
fixed upon him. Thus you see my reason for selecting a residential
flat for my London residence. The servants are not mine. Each of
them has half a dozen other objects of curiosity. When they have
attended to our requirements they disappear."
"But, nevertheless, they must be curious concerning the
contents of the art gallery?"
The allusion was to a portion of the abode into which the
servants were not supposed to enter. Though situated on the eighth
story, Hora's flat at Westminster Mansions was not the ultimate
achievement of the builder. Above were attics to which a narrow
staircase gave entrance. The stairs were shut off by a door, and the
door was always locked.
"When I see any signs of curiosity I always take an early
opportunity of gratifying it," said Hora. "Every one of the servants
who has ever waited upon me has had the privilege of inspecting
that chamber, and not one of them has ever been sufficiently
interested to enter it a second time, except at my especial request.
You see they are all aware why I took possession of the attic. They
think it is the fad of a nervous invalid. Those attics were entered from
another staircase when first I took the flat, and some of the servants
slept there. I complained of the noise, continually. Half a dozen of the
poor devils must have been dismissed at one time or another for
purely imaginary offences in consequence. Then I declared I could
stay no longer, and I gave notice to leave. The agent for the landlord
was apologetic, and asked if there was no way in which he would not
be able to meet me. I offered to rent the place, saying that I would
make it into a storeroom for the books and trifles which I am
continually accumulating. He jumped at the offer I made, and I know
he thought me a fool." Hora chuckled. "How surprised he would be to
learn that the proceeds of many a rich haul have been stored there
for months. But I have drifted away from my original point. I was
telling you of the manner in which I built up my original reputation for
eccentricity, the safest cloak a man may wear. It was a simple
matter. I merely answered for myself the references I gave to my
landlord. I described myself as an unfavourable tenant from every
point of view, but the pecuniary one. My habits I described as
irregular, my requirements exacting to a degree, my manner brusque
and overbearing, and my disposition faddy and changeable, and
further said I was given to making continual requests for structural
alterations in any dwelling place that I occupied in order to make
accommodation for any new collecting craze which seized me."
"I wonder any landlord ventured to accept you," laughed Myra.
"The London landlord has a high opinion of his capability for
withstanding the demands of his tenants," said Hora drily. "He is a
man lavish of promises, but meagre of fulfilments, and possessed of
a genius for extracting the uttermost farthing of his rent. Moreover,
he would take Satan himself as a tenant if he offered to pay six
months' rent in advance. Naturally I proved acceptable, and not
turning out to be the terror I depicted myself I am now looked upon
as the best tenant in the whole building. I am free to do as I like. My
treasure-house ceases to excite curiosity, and I believe if I were to
place the crown jewels upon one of the tables up there they would
be undisturbed, so long as my rent was paid regularly, until they
were hidden beneath the accumulated dust of ages."
The allusion gave Guy an idea.
"Do you contemplate an imitation of Colonel Blood's exploit for
the replenishment of our empty exchequer?" he said, smiling.
"I have often envied Blood's opportunities," answered Hora
thoughtfully, "but at the present day there are much greater
difficulties in the way than Blood had to contend with. Some day,
perhaps, but just now I have another scheme in my mind." He rose
from the table. "I have something to tell you," he remarked. "You will
excuse me for a minute."
He left the room. As the door closed on Hora, Myra turned
eagerly to her companion. She felt that, despite her promise to Hora,
she must give utterance to the fears which once again possessed
her mind.
"Guy," she said, "I wish you would persuade the Commandatore
to leave London for a while. He would listen to any wish of yours."
"Do you think so?" he asked. "I don't think that any expression
of mine would turn him from any purpose he has in view."
"But can you not try?" she persisted. "For my sake, Guy."
"Why, whatever is the matter with you, Myra?" asked the young
man, his attention captured by the obvious anxiety in her voice.
"Surely you are not becoming afraid?"
"Becoming afraid?" she repeated after him mechanically. "No, I
am not becoming afraid. I learned what fear was long ago, when first
I ventured to put my own desires in opposition to the will of the
Commandatore. I have always been afraid since then." She fell to
silence.
"There's no reason to fear the Commandatore," answered Guy
cheerfully. "You are growing morbid, Myra."
She paid no heed to his comment. "It is not fear now, or at least
not what is generally understood by fear. There is an oppression in
the air, the weight of something unseen and unknown presses on
me."
"But there is nothing for you to fear. Whatever were to happen
you would be quite safe," argued Guy.
"Myself? It is not myself I am thinking about," she cried
passionately. "Whatever impends does not threaten me. It is you,
Guy, I fear for. Ever since the night of Lady Greyston's dance I have
felt it. I thought you would never return that evening, but you came
back, and for a while I could laugh at my fears. But, now the
Commandatore has some other proposal to make, my dread has
returned. I shall not have a moment's rest."
"Why this is sheer hysteria, if not madness," said Guy in great
concern.
"Call it what you like," she replied earnestly, "but listen to what I
say—promise me!"
She heard Hora's lagging footstep in the passage outside, and
she ceased speaking suddenly. "Not a word of this to the
Commandatore," she said hastily, as the door opened, and Hora re-
entered.
If the elder man observed that his re-entry had broken in upon a
confidence from which he was excluded, he gave no signs of having
done so. Myra breathed more freely when he seated himself again at
the table, and spread out a newspaper he had brought with him on
the table.
"There are three items of news in this evening's paper," he
remarked quietly, "which supply the data from which may be
deduced the means whereby an enterprising man may build a
fortune."
Guy was all attention on the instant, and Myra, viewing his keen
face, let her head droop upon her hand.
"Those items are?" queried the young man, as Hora paused.
"You will find the first in the Court News," was the reply. "The Rt.
Hon. Sir Gadsby Dimbleby, who is the minister in attendance upon
His Majesty the King, arrived at Sandringham last night."
"The Minister of Foreign Affairs, is he not?" asked Guy.
Hora nodded, and turned to another page from which he read:
"Just before the close all markets sagged badly on selling orders
from Berlin. A variety of rumours were afloat as to the reason, but no
definite information which would supply justification for a bear raid on
the market was forthcoming from any well-informed quarter. In the
street, afterwards, prices were put up again generally, though
fluctuations were considerable."
"Yes," said Guy, beginning to look puzzled.
"The third item is a mere addition to the Reuter's telegram from
Australia, giving particulars of the cricket match between the English
and Australian teams. The result is placed in the space left for late
news, and over it are the words "delayed in transmission.""
Hora ceased speaking.
"If the rehabilitation of our fortunes depends upon translating
that puzzle we shall end our days in the workhouse yet," said Guy.
"Yet, there is much wealth for the man who can piece together
those scraps of information, and will act promptly on the knowledge,"
answered Hora.
"How? By speculation on the Stock Exchange?" asked Guy. "I
thought, Commandatore, that you eschewed all forms of gambling."
"I do," said Hora drily. "But to buy and sell on a certainty has
nothing of the gambling element about it. I feel inclined to make
either the bulls or the bears contribute to our maintenance. But
action must be prompt if it is to succeed. There is work for you to do
to-night, Guy, if you care about it."
"Care about it?" The young man sprang to his feet, every fibre of
his frame quivering for action.
Hora laughed good-naturedly. "There—there, Guy, take matters
a bit easily. There's plenty of time before you yet, if you decide to go
on with the job. It's more risky than the last."
"The greater the risk, the better I shall be pleased," exclaimed
Guy, as he dropped again into his chair, "though how you are going
to evolve anything of a risky nature from those paragraphs you have
just read, I entirely fail to understand."
"You'll understand soon enough," remarked Hora quietly, "and
you will then be surprised that the meaning of these three items of
news should have conveyed so little to you. Let me reverse the order
and read into these three facts my own conclusions. What can be
the reason for the delay in the transmission of the cable containing
the cricket result? Either the cable had broken down, or it was
monopolised for more important work. The former theory is
untenable, for if you take the trouble to compare the time of the
insertion of the news with the time when it should have been
inserted, you will find a delay of three or four hours only has to be
accounted for. Thus I arrive at the decision that the cable was fully
occupied by someone with a prior claim for its use. Who could that
be? Here again the choice is between two possibilities. Either some
big financier or body of financiers or the Government. Again the
indications point to one conclusion. The City was merely uneasy by
reason of German selling, which could not be accounted for, and not
because of information which had come over the wires. Therefore,
the wires must have been occupied by important despatches to the
British Government. I think," said Hora, "that if the knowledge of
what has passed over the cable is in my possession by to-morrow
morning, we shall be in a position to spoil the Egyptians of
Throgmorton Street to some purpose."
Guy looked at Hora with admiration. Some idea of his
companion's purpose dawned upon him—but only faintly. He asked
eagerly for further guidance.
"As to the nature of the despatch which has been received at
the Foreign Office, I have no more idea than yourself," he continued,
"though it probably affects Germany, and it is hardly worth while
troubling to guess. I am only concerned with times, places, and
people. As I calculate, the cable was not clear for ordinary business
until close upon six o'clock. Six would, therefore, be very near the
time when the end of the message was delivered at the Foreign
Office. Of course it would have been cabled in the official cypher. By
the time the message would be de-coded there is only one train by
which a special messenger could take the de-coded despatch to his
chief, who happens to be the minister in attendance upon His
Majesty at Sandringham."
Hora looked up at the clock. "That train starts from St. Pancras
at 9.50. It proceeds as far as Lynn, where the messenger carrying
the despatch will probably be met by a motor-car. It is just nine
o'clock now, Guy, so there is plenty of time for you to decide whether
it is worth while making an effort to obtain the information which will
be in his despatch box."
Guy's eyes sparkled. "It's worth while trying any way,
Commandatore." He turned to the young woman. "Wish me luck,
Myra," he said.
CHAPTER VI
WHEREIN A KING'S MESSENGER IS DESPOILED
OF HIS DESPATCHES
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com