Hi,
I have a question about version: BFL 0.6.1
The class MeasurementModel the following template method:
template
MeasurementModel
const StateVar& s,
int sampling_method,
void * sampling_args)
{
assert(_systemWithoutSensorParams == false);
_MeasurementPdf->ConditionalArgumentSet(0,x);
_MeasurementPdf->ConditionalArgumentSet(1,s);
Sample
_MeasurementPdf->SampleFrom(Simulated, sampling_method,sampling_args);
MeasVar result = Simulated.ValueGet();
return result;
}
I am wondering if on the 4th line of the method Sample
be replaced by Sample
This because the grand-parent Pdf has the methode "bool SampleFrom
(Sample
Where T is MeasVar in the measurementmodel!
Same issue occur in the other Simulate method of the class MeasurementModel
Is it wrong, or did I missed something?
With best regards,
Jürge
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
Question about MeasurementModel<MeasVar, StateVar>::Simulate
On Monday 01 December 2008 20:05:30 Jurge van Eijck wrote: MeasVar::Simulate (const StateVar& x, Simulated(MeasurementSizeGet()); shouldn't?& one_sample, int method, void * args) const;"
> Hi,
>
> I have a question about version: BFL 0.6.1
>
> The class MeasurementModel the following template method:
>
> template
> MeasurementModel
> const StateVar& s,
> int sampling_method,
> void * sampling_args)
> {
> assert(_systemWithoutSensorParams == false);
> _MeasurementPdf->ConditionalArgumentSet(0,x);
> _MeasurementPdf->ConditionalArgumentSet(1,s);
> Sample
> _MeasurementPdf->SampleFrom(Simulated, sampling_method,sampling_args);
> MeasVar result = Simulated.ValueGet();
> return result;
> }
>
> I am wondering if on the 4th line of the method Sample
> be replaced by Sample
>
> This because the grand-parent Pdf has the methode "bool SampleFrom
> (Sample
> Where T is MeasVar in the measurementmodel!
>
I think you are right. What does the author (mister K) thinks of this remark?
Tinne
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
Question about MeasurementModel<MeasVar, StateVar>::Simulate
On Tue, Dec 2, 2008 at 9:10 AM, Tinne De Laet MeasVar::Simulate (const StateVar& x, Simulated(MeasurementSizeGet()); shouldn't?& one_sample, int method, void * args) const;"
<tinne [dot] delaet [..] ...> wrote:
> On Monday 01 December 2008 20:05:30 Jurge van Eijck wrote:
>> Hi,
>>
>> I have a question about version: BFL 0.6.1
>>
>> The class MeasurementModel the following template method:
>>
>> template
>> MeasurementModel
>> const StateVar& s,
>> int sampling_method,
>> void * sampling_args)
>> {
>> assert(_systemWithoutSensorParams == false);
>> _MeasurementPdf->ConditionalArgumentSet(0,x);
>> _MeasurementPdf->ConditionalArgumentSet(1,s);
>> Sample
>> _MeasurementPdf->SampleFrom(Simulated, sampling_method,sampling_args);
>> MeasVar result = Simulated.ValueGet();
>> return result;
>> }
>>
>> I am wondering if on the 4th line of the method Sample
>> be replaced by Sample
>>
>> This because the grand-parent Pdf has the methode "bool SampleFrom
>> (Sample
>> Where T is MeasVar in the measurementmodel!
>>
> I think you are right. What does the author (mister K) thinks of this remark?
Seems like a copy paste error indeed. Can you change it, check if the
test suite still works, file a bug and attach a patch to the bug
report?
Thx,
Klaas
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
Question about MeasurementModel<MeasVar, StateVar>::Simulate
....& one_sample, int method, void * args) const;"
> >> This because the grand-parent Pdf has the methode "bool SampleFrom
> >> (Sample
> >> Where T is MeasVar in the measurementmodel!
> >
> > I think you are right. What does the author (mister K) thinks of this
> > remark?
>
> Seems like a copy paste error indeed. Can you change it, check if the
> test suite still works, file a bug and attach a patch to the bug
> report?
I opened a bugreport (bug#599) for this error.
Tinne
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
Question about MeasurementModel<MeasVar, StateVar>::Simulate
On Tue, Dec 2, 2008 at 7:48 PM, Klaas Gadeyne <klaas [dot] gadeyne [..] ...> wrote: MeasVar::Simulate (const StateVar& x, Simulated(MeasurementSizeGet()); shouldn't?& one_sample, int method, void * args) const;"
> On Tue, Dec 2, 2008 at 9:10 AM, Tinne De Laet
> <tinne [dot] delaet [..] ...> wrote:
>> On Monday 01 December 2008 20:05:30 Jurge van Eijck wrote:
>>> Hi,
>>>
>>> I have a question about version: BFL 0.6.1
>>>
>>> The class MeasurementModel the following template method:
>>>
>>> template
>>> MeasurementModel
>>> const StateVar& s,
>>> int sampling_method,
>>> void * sampling_args)
>>> {
>>> assert(_systemWithoutSensorParams == false);
>>> _MeasurementPdf->ConditionalArgumentSet(0,x);
>>> _MeasurementPdf->ConditionalArgumentSet(1,s);
>>> Sample
>>> _MeasurementPdf->SampleFrom(Simulated, sampling_method,sampling_args);
>>> MeasVar result = Simulated.ValueGet();
>>> return result;
>>> }
>>>
>>> I am wondering if on the 4th line of the method Sample
>>> be replaced by Sample
>>>
>>> This because the grand-parent Pdf has the methode "bool SampleFrom
>>> (Sample
>>> Where T is MeasVar in the measurementmodel!
>>>
>> I think you are right. What does the author (mister K) thinks of this remark?
>
> Seems like a copy paste error indeed. Can you change it, check if the
> test suite still works, file a bug and attach a patch to the bug
> report?
BTW, with "you" above I meant Jurge :-)
Klaas
_______________________________________________
I hereby promise not to top-post on the
BFL mailing list
BFL [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/bfl
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm