#383 closed defect (fixed)
Estimate makes TOL crash when ModelDef has a wrong bad definition
| Reported by: | imendez | Owned by: | Víctor de Buen Remiro |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Math | Version: | head |
| Severity: | blocker | Keywords: | |
| Cc: |
Description
Hi, this code:
Serie aleatoria = SubSer(Gaussian(0, 0.1), y1998, y2002);
Serie output = aleatoria+(Pulse(y2000, Diario)*Real 0.5);
Set mod = ModelDef
(
output,
1,
0,
7,
?,
1,
SetOfPolyn(1, 1),
SetOfPolyn(1, 1),
SetOfSet(InputDef(0.1, Pulse(y2000, Diario))),
InputDef(0.1, Pulse(y2000, Diario)),
AllLinear
);
Set est1 = Estimate(mod, y1998, y2002);
causes a TOL crashing. It's obviously due to a negligence of the coder (it's me)
but I think that TOL should be more condescending with him (me) by showing an
error message.
[Note: the error is in the input definition, because it must be a SetOfSet of
InputDef structures instead of a unique InputDef structure.]
Regards.
Change History (3)
comment:1 Changed 20 years ago by
| Status: | new → assigned |
|---|
comment:2 Changed 20 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Bug has been fixed
An error will be emited if an input hasn't InputDef structure
comment:3 Changed 19 years ago by
| bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000383 |
|---|

Thanks to report it.
We are working about this bug.