[Bug 471] New: Dimension has different interpretation for continuous and discrete pdfs

For more infomation about this bug, visit
Summary: Dimension has different interpretation for continuous
and discrete pdfs
Product: BFL
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: core
AssignedTo: tinne [dot] delaet [..] ...
ReportedBy: tinne [dot] delaet [..] ...
CC: bfl [..] ...
Estimated Hours: 0.0

In the current implementation the dimension has a different interpretation for
continuous and discrete pdfs. For continuous pdfs it is the dimension of the
state vector for discrete pdfs it is the number of discrete states.
This is quite confusing.

[Bug 471] Dimension has different interpretation for continuous

For more infomation about this bug, visit

Tinne De Laet <tinne [dot] delaet [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #3 from Tinne De Laet <tinne [dot] delaet [..] ...> 2007-12-20 14:23:54 ---
Patch applied in revision 28795:

Sending ChangeLog
Sending examples/nonlinear_particle/nonlinearMeasurementPdf.cpp
Sending examples/nonlinear_particle/nonlinearSystemPdf.cpp
Sending src/model/discretesystemmodel.cpp
Sending src/model/discretesystemmodel.h
Sending src/pdf/conditionalpdf.h
Sending src/pdf/discreteconditionalpdf.cpp
Sending src/pdf/discreteconditionalpdf.h
Sending src/pdf/discretepdf.cpp
Sending src/pdf/discretepdf.h
Sending src/pdf/pdf.h
Sending tests/model_test.cpp
Sending tests/pdf_test.cpp
Transmitting file data .............
Committed revision 28795.

[Bug 471] Dimension has different interpretation for continuous

For more infomation about this bug, visit

Tinne De Laet <tinne [dot] delaet [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #2 from Tinne De Laet <tinne [dot] delaet [..] ...> 2007-12-20 13:11:52 ---
By submitting the patch, I accepted to solve the bug.

[Bug 471] Dimension has different interpretation for continuous

For more infomation about this bug, visit

--- Comment #1 from Tinne De Laet <tinne [dot] delaet [..] ...> 2007-12-20 13:11:03 ---
Created an attachment (id=172)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=172)
Patch to get unique interpretation of dimension

In this patch a propose a solution to have a unique interpretation for the
dimension.
To this end I introduced an extra state variable _num_states for discrete pdfs
(and discrete conditional pdfs), which is the number of discrete states. The
dimension of a discrete pdf is automatically set to 1 (since it is just and
integer).

Any commments, suggestions?

Tinne