Am 15.06.26 um 13:15 schrieb Cottrell, Allin:
On Mon, Jun 15, 2026 at 4:23 AM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
> Am 14.06.2026 um 19:35 schrieb Cottrell, Allin:
>>
>> Note that the criterion in the "discrete" case is a bit more liberal
>> than the built-in isdiscrete() function. More details can be found in
>> the current version of pkgbook.pdf (or pkgbook-a4.pdf).
>>
> Thanks, Allin - but any reason why the two discreteness checks should be
> different? (Sorry, haven't looked at pkgbook yet.)
That point is debatable. Perhaps the isdiscrete() function should act
in the "more liberal" way, since if you want to know whether a series
is explicitly marked as discrete you can check the "discrete" member
of the bundle returned by getinfo(). To see what exactly the more
liberal variant does, take a look at gretl_isdiscrete() in
gretl_utils.c.
Ah, so it seems to be about the discrete flag vs. the actual numerical
property. Perhaps the isdiscrete() function could get a second optional
argument to trigger the same factual check.
thanks
sven