In article <g0gl13$v4i$1@news.cn99.com>, asm23 <asmwarrior@gmail.com> wrote:
>hi, I'm new to this forum, I want to know the meaning of these variables
>for iteration.
>such as:
>X(k|k-1)
>X(k|k)
>X(k-1|k-1)
>....
>What's the difference between them? Can someone explain it? thank you
>very much.
I think you must have miscopied or mistyped, as those are quite
unlikely to come up in real code in the form written.
'|' is bitwise 'or'. Any value bitwise or'd with itself is going to
be the same value. Thus, X(k|k) would be the same X(k), and
X(k-1|k-1) would be the same as X(k-1).
k|k-1 has some interesting mathematical properties in binary, but
it is fairly unlikely that you have described the question correctly
so I will not describe the mathematical properties. k&k-1 has more
interesting properties and sometimes occurs in code, but k|k-1 seldom
does.
--
"The whole history of civilization is strewn with creeds and
institutions which were invaluable at first, and deadly
afterwards." -- Walter Bagehot
Subject: Re: Question on Iteration variables means?
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message
<g0hqgu$qp0$1@canopus.cc.umanitoba.ca>...
> In article <g0gl13$v4i$1@news.cn99.com>, asm23
<asmwarrior@gmail.com> wrote:
> >hi, I'm new to this forum, I want to know the meaning of these variables
> >for iteration.
>
> >such as:
>
> >X(k|k-1)
> >X(k|k)
> >X(k-1|k-1)
> >....
>
> >What's the difference between them? Can someone explain it? thank you
> >very much.
>
> I think you must have miscopied or mistyped, as those are quite
> unlikely to come up in real code in the form written.
>
> '|' is bitwise 'or'. Any value bitwise or'd with itself is going to
> be the same value. Thus, X(k|k) would be the same X(k), and
> X(k-1|k-1) would be the same as X(k-1).
>
> k|k-1 has some interesting mathematical properties in binary, but
> it is fairly unlikely that you have described the question correctly
> so I will not describe the mathematical properties. k&k-1 has more
> interesting properties and sometimes occurs in code, but k|k-1 seldom
> does.
I would not assume its a typo, merely not
useful as Matlab syntax.
These may be notations that are valid in
some other context, but the context is all
important. We cannot know what is meant
out of context.
John
Subject: Re: Question on Iteration variables means?
John D'Errico wrote:
> roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message
> <g0hqgu$qp0$1@canopus.cc.umanitoba.ca>...
>> In article <g0gl13$v4i$1@news.cn99.com>, asm23
> <asmwarrior@gmail.com> wrote:
>>> hi, I'm new to this forum, I want to know the meaning of these variables
>>> for iteration.
>>> such as:
>>> X(k|k-1)
>>> X(k|k)
>>> X(k-1|k-1)
>>> ....
>>> What's the difference between them? Can someone explain it? thank you
>>> very much.
>> I think you must have miscopied or mistyped, as those are quite
>> unlikely to come up in real code in the form written.
>>
>> '|' is bitwise 'or'. Any value bitwise or'd with itself is going to
>> be the same value. Thus, X(k|k) would be the same X(k), and
>> X(k-1|k-1) would be the same as X(k-1).
>>
>> k|k-1 has some interesting mathematical properties in binary, but
>> it is fairly unlikely that you have described the question correctly
>> so I will not describe the mathematical properties. k&k-1 has more
>> interesting properties and sometimes occurs in code, but k|k-1 seldom
>> does.
>
> I would not assume its a typo, merely not
> useful as Matlab syntax.
>
> These may be notations that are valid in
> some other context, but the context is all
> important. We cannot know what is meant
> out of context.
>
> John
Thanks for your two reply, I notices that I have made a mistake, the
X(k|k-1) is not the matlab code, they have exist in Kalman filter
Algorithms, recursion formula often use this as some estimated value or
expected value. But I don't know what's their meanings.
Subject: Re: Question on Iteration variables means?
asm23 <asmwarrior@gmail.com> wrote in message
<g0m2b9$8ej$1@news.cn99.com>...
> John D'Errico wrote:
> > roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message
> > <g0hqgu$qp0$1@canopus.cc.umanitoba.ca>...
> >> In article <g0gl13$v4i$1@news.cn99.com>, asm23
> > <asmwarrior@gmail.com> wrote:
> >>> hi, I'm new to this forum, I want to know the meaning of these
variables
> >>> for iteration.
> >>> such as:
> >>> X(k|k-1)
> >>> X(k|k)
> >>> X(k-1|k-1)
> >>> ....
> >>> What's the difference between them? Can someone explain it? thank
you
> >>> very much.
> >> I think you must have miscopied or mistyped, as those are quite
> >> unlikely to come up in real code in the form written.
> >>
> >> '|' is bitwise 'or'. Any value bitwise or'd with itself is going to
> >> be the same value. Thus, X(k|k) would be the same X(k), and
> >> X(k-1|k-1) would be the same as X(k-1).
> >>
> >> k|k-1 has some interesting mathematical properties in binary, but
> >> it is fairly unlikely that you have described the question correctly
> >> so I will not describe the mathematical properties. k&k-1 has more
> >> interesting properties and sometimes occurs in code, but k|k-1 seldom
> >> does.
> >
> > I would not assume its a typo, merely not
> > useful as Matlab syntax.
> >
> > These may be notations that are valid in
> > some other context, but the context is all
> > important. We cannot know what is meant
> > out of context.
> >
> > John
> Thanks for your two reply, I notices that I have made a mistake, the
> X(k|k-1) is not the matlab code, they have exist in Kalman filter
> Algorithms, recursion formula often use this as some estimated value or
> expected value. But I don't know what's their meanings.
I was wondering if this was your question.
X(k | k-1)
refers to your estimate of the system state (X)
at time k, given the information up to time k-1.
Thus it is a prediction to a future time from the
past data.
The term
X(k | k)
is similar, but now it is your updated estimate
of the system state at time k, having seen the
current measurement of the process.
HTH,
John
Subject: Re: Question on Iteration variables means?
John D'Errico wrote:
> asm23 <asmwarrior@gmail.com> wrote in message
> <g0m2b9$8ej$1@news.cn99.com>...
>> John D'Errico wrote:
>>> roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message
>>> <g0hqgu$qp0$1@canopus.cc.umanitoba.ca>...
>>>> In article <g0gl13$v4i$1@news.cn99.com>, asm23
>>> <asmwarrior@gmail.com> wrote:
>>>>> hi, I'm new to this forum, I want to know the meaning of these
> variables
>>>>> for iteration.
>>>>> such as:
>>>>> X(k|k-1)
>>>>> X(k|k)
>>>>> X(k-1|k-1)
>>>>> ....
>>>>> What's the difference between them? Can someone explain it? thank
> you
>>>>> very much.
>>>> I think you must have miscopied or mistyped, as those are quite
>>>> unlikely to come up in real code in the form written.
>>>>
>>>> '|' is bitwise 'or'. Any value bitwise or'd with itself is going to
>>>> be the same value. Thus, X(k|k) would be the same X(k), and
>>>> X(k-1|k-1) would be the same as X(k-1).
>>>>
>>>> k|k-1 has some interesting mathematical properties in binary, but
>>>> it is fairly unlikely that you have described the question correctly
>>>> so I will not describe the mathematical properties. k&k-1 has more
>>>> interesting properties and sometimes occurs in code, but k|k-1 seldom
>>>> does.
>>> I would not assume its a typo, merely not
>>> useful as Matlab syntax.
>>>
>>> These may be notations that are valid in
>>> some other context, but the context is all
>>> important. We cannot know what is meant
>>> out of context.
>>>
>>> John
>> Thanks for your two reply, I notices that I have made a mistake, the
>> X(k|k-1) is not the matlab code, they have exist in Kalman filter
>> Algorithms, recursion formula often use this as some estimated value or
>> expected value. But I don't know what's their meanings.
>
> I was wondering if this was your question.
>
> X(k | k-1)
>
> refers to your estimate of the system state (X)
> at time k, given the information up to time k-1.
> Thus it is a prediction to a future time from the
> past data.
>
> The term
>
> X(k | k)
>
> is similar, but now it is your updated estimate
> of the system state at time k, having seen the
> current measurement of the process.
>
> HTH,
> John
>
>
thanks John for explain this two term.
I think you give me the right answer, this will support me to understand
the whole detail in, Kalman filter from the http://en.wikipedia.org/wiki/Kalman_filter
Tags for this Thread
Add a New Tag:
Separated by commas
Ex.: root locus, bode
What are tags?
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.