close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 17 years ago

Closed 17 years ago

#603 closed defect (fixed)

Serie created with Rand() function change trhough time

Reported by: cperales Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: TimeSetAlgebra Version: 1.1.6
Severity: blocker Keywords:
Cc:

Description

A Serie created with Rand() changes each time user interacts with it.

With this code:

Serie serA=Rand(0,1,Diario);
Serie serAb=(B):serA;

SerA and serAb are different at all, it is not one backwarded from the other.

With Copy function the results are as expected.
Serie serC=Copy(Rand(0,1,Diario));
Serie serCb=(B):serC;

Could Rand description include this advice?

Thanks

Change History (1)

comment:1 Changed 17 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

This is the purpose of Rand functions. It's all right.
If you want a constant random series then you need to bound dates with SubSer.
An infinite random series cannot be stored nor have an deterministic expression to be built.

I think this is a trivial question but I've added a note about it in Rand and Gaussian functions returning Serie.

Problem has been fixed in CVS for both branches 1.1.6 and HEAD
Thanks to report it

Note: See TracTickets for help on using tickets.