The document describes a discrete-time Kalman filter implemented in Matlab to estimate the position and velocity of an underwater target. It defines the state vector, system model, and measurement model. Process and measurement noise are added through the Q and R matrices. Simulation results show the position error converges initially and remains small by the end.
First-order cosmological perturbations produced by point-like masses: all sca...Maxim Eingorn
This presentation based on the paper http://arxiv.org/abs/1509.03835 was made at Institute of Cosmology, Tufts University, on November 12, 2015. The abstract follows:
In the framework of the concordance cosmological model the first-order scalar and vector perturbations of the homogeneous background are derived without any supplementary approximations in addition to the weak gravitational field limit. The sources of these perturbations (inhomogeneities) are presented in the discrete form of a system of separate point-like gravitating masses. The obtained expressions for the metric corrections are valid at all (sub-horizon and super-horizon) scales and converge in all points except the locations of the sources, and their average values are zero (thus, first-order backreaction effects are absent). Both the Minkowski background limit and the Newtonian cosmological approximation are reached under certain well-defined conditions. An important feature of the velocity-independent part of the scalar perturbation is revealed: up to an additive constant it represents a sum of Yukawa potentials produced by inhomogeneities with the same finite time-dependent Yukawa interaction range. The suggesting itself connection between this range and the homogeneity scale is briefly discussed along with other possible physical implications.
Exact Bound State Solution of Qdeformed Woods-Saxon Plus Modified Coulomb Pot...ijrap
In this work, we obtained an exact solution to Schrodinger equation using q-deformed Woods-Saxon plus modified Coulomb potential Using conventional Nikiforov-Uvarov method. We also obtained the energy eigen value and its associated total wave function . This potential with some suitable conditions reduces to two well known potentials namely: the Yukawa and coulomb potential. Finally, we obtained the numerical results for energy eigen value with different values of q as dimensionless parameter. The result shows that the values of the energies for different quantum number(n) is negative(bound state condition) and increases with an increase in the value of the dimensionless parameter(arbitrary constant). The graph in figure (1) shows the different energy levels for a particular quantum number.
First-order cosmological perturbations produced by point-like masses: all sca...Maxim Eingorn
This presentation based on the paper http://arxiv.org/abs/1509.03835 was made at Institute of Cosmology, Tufts University, on November 12, 2015. The abstract follows:
In the framework of the concordance cosmological model the first-order scalar and vector perturbations of the homogeneous background are derived without any supplementary approximations in addition to the weak gravitational field limit. The sources of these perturbations (inhomogeneities) are presented in the discrete form of a system of separate point-like gravitating masses. The obtained expressions for the metric corrections are valid at all (sub-horizon and super-horizon) scales and converge in all points except the locations of the sources, and their average values are zero (thus, first-order backreaction effects are absent). Both the Minkowski background limit and the Newtonian cosmological approximation are reached under certain well-defined conditions. An important feature of the velocity-independent part of the scalar perturbation is revealed: up to an additive constant it represents a sum of Yukawa potentials produced by inhomogeneities with the same finite time-dependent Yukawa interaction range. The suggesting itself connection between this range and the homogeneity scale is briefly discussed along with other possible physical implications.
Exact Bound State Solution of Qdeformed Woods-Saxon Plus Modified Coulomb Pot...ijrap
In this work, we obtained an exact solution to Schrodinger equation using q-deformed Woods-Saxon plus modified Coulomb potential Using conventional Nikiforov-Uvarov method. We also obtained the energy eigen value and its associated total wave function . This potential with some suitable conditions reduces to two well known potentials namely: the Yukawa and coulomb potential. Finally, we obtained the numerical results for energy eigen value with different values of q as dimensionless parameter. The result shows that the values of the energies for different quantum number(n) is negative(bound state condition) and increases with an increase in the value of the dimensionless parameter(arbitrary constant). The graph in figure (1) shows the different energy levels for a particular quantum number.
ALL-SCALE cosmological perturbations and SCREENING OF GRAVITY in inhomogeneou...Maxim Eingorn
M. Eingorn, First-order cosmological perturbations engendered by point-like masses, ApJ 825 (2016) 84: http://iopscience.iop.org/article/10.3847/0004-637X/825/2/84
In the framework of the concordance cosmological model, the first-order scalar and vector perturbations of the homogeneous background are derived in the weak gravitational field limit without any supplementary approximations. The sources of these perturbations (inhomogeneities) are presented in the discrete form of a system of separate point-like gravitating masses. The expressions found for the metric corrections are valid at all (sub-horizon and super-horizon) scales and converge at all points except at the locations of the sources. The average values of these metric corrections are zero (thus, first-order backreaction effects are absent). Both the Minkowski background limit and the Newtonian cosmological approximation are reached under certain well-defined conditions. An important feature of the velocity-independent part of the scalar perturbation is revealed: up to an additive constant, this part represents a sum of Yukawa potentials produced by inhomogeneities with the same finite time-dependent Yukawa interaction range. The suggested connection between this range and the homogeneity scale is briefly discussed along with other possible physical implications.
D. Mladenov - On Integrable Systems in CosmologySEENET-MTP
Lecture by Prof. Dr. Dimitar Mladenov (Theoretical Physics Department, Faculty of Physics, Sofia University, Bulgaria) on December 7, 2011 at the Faculty of Science and Mathematics, Nis, Serbia.
Bound State Solution of the Klein–Gordon Equation for the Modified Screened C...BRNSS Publication Hub
We present solution of the Klein–Gordon equation for the modified screened Coulomb potential (Yukawa) plus inversely quadratic Yukawa potential through formula method. The conventional formula method which constitutes a simple formula for finding bound state solution of any quantum mechanical wave equation, which is simplified to the form; 2122233()()''()'()()0(1)(1)kksAsBscsssskssks−++ψ+ψ+ψ=−−. The bound state energy eigenvalues and its corresponding wave function obtained with its efficiency in spectroscopy.
Key words: Bound state, inversely quadratic Yukawa, Klein–Gordon, modified screened coulomb (Yukawa), quantum wave equation
A Characterization of the Zero-Inflated Logarithmic Series Distributioninventionjournals
In this paper, we introduce a characterization of the zero-inflated logarithmic series distributions through a linear differential equation of its probability generating function.
ALL-SCALE cosmological perturbations and SCREENING OF GRAVITY in inhomogeneou...Maxim Eingorn
M. Eingorn, First-order cosmological perturbations engendered by point-like masses, ApJ 825 (2016) 84: http://iopscience.iop.org/article/10.3847/0004-637X/825/2/84
In the framework of the concordance cosmological model, the first-order scalar and vector perturbations of the homogeneous background are derived in the weak gravitational field limit without any supplementary approximations. The sources of these perturbations (inhomogeneities) are presented in the discrete form of a system of separate point-like gravitating masses. The expressions found for the metric corrections are valid at all (sub-horizon and super-horizon) scales and converge at all points except at the locations of the sources. The average values of these metric corrections are zero (thus, first-order backreaction effects are absent). Both the Minkowski background limit and the Newtonian cosmological approximation are reached under certain well-defined conditions. An important feature of the velocity-independent part of the scalar perturbation is revealed: up to an additive constant, this part represents a sum of Yukawa potentials produced by inhomogeneities with the same finite time-dependent Yukawa interaction range. The suggested connection between this range and the homogeneity scale is briefly discussed along with other possible physical implications.
D. Mladenov - On Integrable Systems in CosmologySEENET-MTP
Lecture by Prof. Dr. Dimitar Mladenov (Theoretical Physics Department, Faculty of Physics, Sofia University, Bulgaria) on December 7, 2011 at the Faculty of Science and Mathematics, Nis, Serbia.
Bound State Solution of the Klein–Gordon Equation for the Modified Screened C...BRNSS Publication Hub
We present solution of the Klein–Gordon equation for the modified screened Coulomb potential (Yukawa) plus inversely quadratic Yukawa potential through formula method. The conventional formula method which constitutes a simple formula for finding bound state solution of any quantum mechanical wave equation, which is simplified to the form; 2122233()()''()'()()0(1)(1)kksAsBscsssskssks−++ψ+ψ+ψ=−−. The bound state energy eigenvalues and its corresponding wave function obtained with its efficiency in spectroscopy.
Key words: Bound state, inversely quadratic Yukawa, Klein–Gordon, modified screened coulomb (Yukawa), quantum wave equation
A Characterization of the Zero-Inflated Logarithmic Series Distributioninventionjournals
In this paper, we introduce a characterization of the zero-inflated logarithmic series distributions through a linear differential equation of its probability generating function.
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...ijrap
Exact quasi-classical asymptotic beyondWKB-theory and beyondMaslov canonical operatorto
theColombeau solutions of the-dimensional Schrodinger equationis presented. Quantum jumps nature is
considered successfully. We pointed out that an explanation ofquantum jumps can be found to result from
Colombeausolutions of the Schrödinger equation alone without additional postulates.
1. Discrete-time Kalman Filter
NUNO GUERREIRO DE SOUSA⇤
University of Macau
nunoguerreirodesousa@gmail.com
July 2016
Abstract
A dicrete-time linear time-varying Kalman filter was implemented in Matlab in order to estimate the position
and velocity of a moving underwater target given its velocity relative to the fluid in addition to its direction
with respect to the origin of the inertial frame. All the steps taken while approaching the final system
design and important considerations are analyzed in this report. Simulation results are also presented and
discussed.
I. INTRODUCTION
Consider the generic discrete-time linear time-varying (LTV) system
(
x[k + 1] = A[k]x[k] + B[k]u[k] + w[k]
y[k + 1] = C[k + 1]x[k + 1] + n[k + 1]
, (1)
where x[k] 2 Rn
is the state vector, y[k] 2 Rn
is the outputs vector and u[k] 2 Rp
is the inputs vector. The
dynamics matrix A[k] 2 Rn⇥n
relates how the current state affects the state change. Matrix B[k] 2 Rn⇥p
is
called the control matrix and determines how the system’s input affects the state change. C[k] 2 Rm⇥n
is
the output matrix and determines the relationship between the system state and the system output. Finally,
w[k] 2 Rn
and n[k] 2 Rn
denote additive uncorrelated zero-mean Gaussian noise sequences. The structure
of all these vectors and matrices will be discussed and defined along the next sections.
II. SYSTEM MODELING
From (1), the first step is to define x[k], y[k], A[k], B[k], C[k] and u[k]. At first, since both the position and
the velocity in three dimensions are being estimated, the states were assumed to be the following:
s[k]
vR[k]
=
2
6
6
6
6
6
6
4
sx[k]
sy[k]
sz[k]
vRx[k]
vRy[k]
vRz[k]
3
7
7
7
7
7
7
5
, (2)
where s[k] 2 R3
and vR[k] 2 R3
represent the position and velocity in each of the coordinates at time k,
respectively, according to the inertial frame.
⇤A big thank you to Prof. Carlos Silvestre, Prof. Rui Martins and Eng. Joel Reis for the opportunity of working in the Sensor-based
Cooperative Robotics Laboratory under their guidance. Also to Dr. David Cabecinhas, Eng. Daniel Viegas and Eng. Wei Xie for all the
knowledge and help provided.
1
2. The term vR[k] stands for the real velocity, which may differ from the velocity the body perceives.
For example, suppose the body is traveling at a certain speed and there is a current with opposite direction
and same speed that makes the body stay in the same position, although it is still using its engines to move.
What happens is that the real velocity vR[k] = 0, while the velocity perceived by the body is vB[k] 6= 0. We
assume that the difference between vR[k] and vB[k] is constant and we define it as
b[k] := vR[k] vB[k] 2 R3
. (3)
The body velocity vB[k] and the direction of the body d[k] are measured at all instants. The direction
d[k] is a unit vector, and it is given by
d[k] =
s[k]
||s[k]||
=
s[k]
r[k]
, (4)
where ||s[k]|| is the Euclidean norm of the position, which we will denote by r[k]. Basically, d[k] is a
normalization of s[k].
The array u[k] has dimensions [3x1] and contains vB[k] as input of the system. The vector vB[k]
could be included in the output array y[k] as the velocities are already known for all instants, so they could be
considered measurements from the target. It turns out to be useful to have u[k] defined this way, as we will
see later in this section, while defining the elements in the first equation of (1).
To compute the position s[k + 1] we note that, under certain conditions,
s[k + 1] = s[k] + vR[k]T, (5)
where T is the sampling time between two consecutive iterations and is assumed constant.
At this point, looking at (3) and knowing the body velocity vB[k], we should replace vR[k] by b[k] in
(2). Although estimating either vR[k] or b[k] yields the same result, it is easier for the filter to estimate b[k]
because it is constant. So, for now our states become
s[k]
b[k]
=
2
6
6
6
6
6
6
4
sx[k]
sy[k]
sz[k]
bx[k]
by[k]
bz[k]
3
7
7
7
7
7
7
5
. (6)
Recalling the measurements equation in (1), we should use d[k] as y[k], but by doing so, a problem
arises. Given
d[k] =
s[k]
r[k]
=
s[k]
q
s2
x[k] + s2
y[k] + s2
z[k]
, (7)
An implicit non-linearity prevents the measurements expression in (1) to be written as C[k]x[k]. We can go
around the non-linearity by noticing that (4) is equivalent to
0 = s[k] d[k]r[k]. (8)
Therefore we include r[k] as a state (the system remains observable). We can finally define our x[k] as
x[k] :=
2
4
s[k]
b[k]
r[k]
3
5 =
2
6
6
6
6
6
6
6
6
4
sx[k]
sy[k]
sz[k]
bx[k]
by[k]
bz[k]
r[k]
3
7
7
7
7
7
7
7
7
5
2 R7
. (9)
2
3. Moreover, if we consider that y[k] is a [3x1] array of zeros, we can write:
C[k] =
⇥
I 0 d[k]
⇤
. (10)
The measurements equation in (1) is settled. Now that we have defined x[k] and u[k], we can move
on to defining the matrices in the first equation of (1). We start by writing r[k + 1] in terms of the states
expressed in (9). First, we write (4) as
d[k + 1] =
s[k + 1]
r[k + 1]
, (11)
and since d[k + 1] is a unit vector and r[k + 1] is a scalar we can re-write (11) as
r[k + 1] = dT
[k + 1]s[k + 1], (12)
which, together with (3) and (5) yields
r[k + 1] = dT
[k + 1](s[k] + vB[k]T + bT)
= dT
[k + 1](r[k]d[k] + vB[k]T + bT)
(13)
Now, from (13) and (5) we easily write
A[k] =
2
6
6
6
6
6
6
6
6
4
1 0 0 T 0 0 0
0 1 0 0 T 0 0
0 0 1 0 0 T 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 0 0 1 0
0 0 0 dx[k + 1]T dy[k + 1]T dz[k + 1]T dT
[k + 1]d[k]
3
7
7
7
7
7
7
7
7
5
2 R7⇥7
(14)
and
B[k] =
2
6
6
6
6
6
6
6
6
4
T 0 0
0 T 0
0 0 T
0 0 0
0 0 0
0 0 0
dx[k + 1]T dy[k + 1]T dz[k + 1]T
3
7
7
7
7
7
7
7
7
5
2 R7⇥3
. (15)
Hence we have defined all the variables in (1), except for w[k] and n[k], which will be discussed in Section
IV.
III. TRAJECTORY
A rich trajectory described by the body is presented in this section. Initially, a combination of three sinusoidal
functions was used (one for each of the x, y and z coordinates). This was later changed because despite
being a combination of three sines, the trajectory ended up presenting a strong periodic behavior, whereby all
directions were not sufficiently excited in order for the filter to achieve a good performance (the filter needs
information to be able to estimate more accurately).
A more complicated approach could have been moving the observer over time and force these
variations, but Eng. Joel Reis provided with a trajectory designed by him that is rich enough in terms of
variations to be suitable for testing. This trajectory is shown in Figure 1.
3
4. 0
100
10
100
Z
0
20
Y
0
X
30
-100 -100
-200 -200
Figure 1: Trajectory of the body’s movement.
IV. KALMAN FILTER IMPLEMENTATION
i. Kalman filter equations
The Kalman filter implementation is as follows:
¯x[k] = A[k 1]ˆx[k 1] + B[k 1]u[k 1] (16)
P [k] = A[k 1]P[k 1]AT
[k 1] + Q (17)
K[k] = P [k]CT
[k] C[k]P [k]CT
[k] + R
1
(18)
¯x[k] = ˆx[k] + K[k](y[k] C[k]ˆx[k]) (19)
P[k] = (I K[k]C[k])P [k], (20)
where the first two equations, (16) and (17) refer to the model forecast step, and the second three, (18), (19)
and (20), refer to the data assimilation step. These equations run in loop for 1000 iterations in this particular
case.
ii. Variables and simulation parameters
The data from the trajectory described in Section III was stored in a variable. From then on it was possible
to compute vB[k], d[k] and r[k] for all moments, based on equations (7) and on the definition of derivative,
approximated as
vB[k] =
s[k + 1] s[k]
T
. (21)
The initial position was set to:
s[0] =
2
4
100
50
0
3
5 (22)
4
5. and the initial estimate was set to:
ˆx[0] =
2
6
6
6
6
6
6
6
6
4
100
100
0
0
0
0
100
3
7
7
7
7
7
7
7
7
5
. (23)
The number of k iterations was set to 1000 and T was set to 1s. All the other variables have been discussed
earlier.
iii. Error and Noise
The only topic left discussing concerns the matrices P, Q and R. P is the a priori estimate error covariance,
P is the a posteriori estimate error covariance. P is initially set as a diagonal matrix, and it expresses the
uncertainty between the estimated state and the predicted state. From then on P is computed (equation
(17)), and then it enters the loop.
Q is the process noise and it represents the uncertainty in the process model. Sometimes a very poor
model can be used simply by "injecting" enough uncertainty via the parameters of this matrix.
R is the measurement error covariance matrix which, as the name says, represents the noise over the
measurements. Just like Q, if the measurements are known to be poor, the solution is to introduce larger
values in matrix R.
The white noises w and n that are shown in the system equations in (1), and that so far have not been
discussed, are compensated through the matrices Q and R.
All these matrices were manually adjusted in order for the filter to produce better results, which means
for the predicted values to be as close as possible from the real values. In the end they were initialized, or set,
as:
P[0] =
2
6
6
6
6
6
6
6
6
4
104
0 0 0 0 0 0
0 104
0 0 0 0 0
0 0 104
0 0 0 0
0 0 0 10 0 0 0
0 0 0 0 10 0 0
0 0 0 0 0 10 0
0 0 0 0 0 0 104
3
7
7
7
7
7
7
7
7
5
2 R7⇥7
, (24)
Q =
2
6
6
6
6
6
6
6
6
4
10 4
0 0 0 0 0 0
0 10 4
0 0 0 0 0
0 0 10 4
0 0 0 0
0 0 0 10 6
0 0 0
0 0 0 0 10 6
0 0
0 0 0 0 0 10 6
0
0 0 0 0 0 0 9
3
7
7
7
7
7
7
7
7
5
2 R7⇥7
, (25)
and
R =
2
4
10 0 0
0 10 0
0 0 10
3
5 2 R3⇥3
. (26)
Another issue that was important to address was that the directions computed with equation (4) are
"clean", which means that they were obtained directly from the trajectory positions. In reality this would
5
6. not happen, since the directions are measurements from the target, so noise was introduced in the directions.
Since we cannot just add noise, because this kind of noise cannot be considered additive, what was done was
to convert the directions into spheric coordinates (azimuth and elevation), and then add a random variable with
gaussian distribution and zero mean with values between [ 1o
, 1o
]. After this, the new values of direction
were converted back to cartesian coordinates and fed to the filter. Since matrix R contains information saying
that the measurements of direction have a degree of uncertainty, we adjusted the data in a way as to meet that
information. This way, the filter had coherent information and produced better results.
V. RESULTS AND DISCUSSION
The plots resulting from one simulation through the Matlab implementation of the filter are now presented.
The first two figures (2) and (3) show the position error (difference between the actual position of the body
and the position estimated by the filter). The difference is that (2) shows the evolution of the error throughout
all the iterations, while (3) focuses only on the last 600 iterations, in order for the reader to have a better idea
of the values achieved in the end of the simulation and how fast they were achieved.The same idea is repeated
with the velocity bias error in figures (4) and (5), and, finally, with the direction error in (6) and (7):
0 200 400 600 800 1000
Time (s)
-200
-150
-100
-50
0
50
Actualposition-EstimatedPosition(m)
X
Y
Z
Figure 2: Position error - Initial convergence.
6
7. 600 650 700 750 800 850 900 950 1000
Time (s)
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
Actualposition-EstimatedPosition(m)
X
Y
Z
Figure 3: Detail of position error in the last 600 iterations.
0 200 400 600 800 1000
Time (s)
-0.5
0
0.5
1
1.5
ActualBias-EstimatedBias(m/s)
Bias vX
Bias vY
Bias vZ
Figure 4: Velocity bias error - Initial convergence.
7
8. 600 650 700 750 800 850 900 950 1000
Time (s)
-6
-4
-2
0
2
4
6
ActualBias-EstimatedBias(m/s)
#10
-3
Bias vX
Bias vY
Bias vZ
Figure 5: Detail of velocity bias error in the last 600 iterations.
0 200 400 600 800 1000
Time (s)
-20
0
20
40
60
80
100
120
140
ActualRange-EstimatedRange(m)
Figure 6: Range error - Initial convergence.
8
9. 600 650 700 750 800 850 900 950 1000
Time (s)
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
ActualRange-EstimatedRange(m)
Figure 7: Detail of range error in the last 600 iterations.
Looking at all the figures presented above, we can see that the output values of the Kalman filter do
converge towards a good estimate of the real values. To check the filter’s performance more thoroughly, the
Monte Carlo method with a total number of simulations of 1000 was ran, so it was possible to compute the
average and standard deviation of the last 600 iterations (where the values are already starting to converge)
with different noise parameters. A table containing the average of these parameters from the Monte Carlo
runs is shown bellow:
Table 1: Average and Standard Deviation of each state, obtained through Monte Carlo runs.
State µ
sx 0.2289 0.7004 (m)
sy 0.4204 0.7626 (m)
sz 0.0958 0.2109 (m)
bx 0.725 1.9 (mm/s)
by 2.3 5.9 (mm/s)
bz 0.105 1.4 (mm/s)
r 0.6047 0.9759 (m)
Through this table we can see that the means and standard deviatons of all the states are close to zero.
Only the range r is not as close as the other states, but the filter is still suitable for many appliances. One
possible explanation for r to be different than expected is that the expression used to compute it derives from
prior approximations. Also, r depends on other states that are being estimated.
To get to more exact predictions, one could try and find even better initial values for the matrices P, Q
and R. As it was stated before, the initial values used for these matrices in all the simulations were manually
adjusted. So, in a way, there is room for improvement here.
Besides this, one could implement the Extended Kalman filter instead of the linear one when facing the
non-linearity in Section II. Instead of going around the non-linearity the way we did, the Extended Kalman
filter, which was designed precisely for non-linear systems, could produce even better results, although it is
not optimal and does not guarantee global stability.
9
10. VI. CONCLUSIONS
We can state that the linear discrete-time Kalman filter was successfully implemented for this particular case
since the results estimated were very close to the real values. Still, we could achieve even better results, for
instance if using the Extended Kalman filter as an alternative. But our approach is optimal and guarantees
global stability and convergence, which can happen or not using the Extended version. This implementation
is good enough to filter signals from noise a posteriori, after having collected the data. And it would also be
useful for real-time estimations, with some more limitations in underwater environments.
10