Hi Seb, this works:
> val seeds = Val[Array[Long]] > val tremble = Val[Double] > > val exploration = > ExplorationTask( > (tremble in (0.0 to 1.0 by 0.20)) zip > (seeds in (UniformDistribution[Long]().sliding(4, 4))) > ) > > > val model = > EmptyTask() set ( > inputs += (tremble, seeds) > ) > > exploration -< model In the model task you can use seeds(0), seeds(1)... seeds(3). Romain Le 22/11/2016 à 22:39, reyman a écrit : > Hi, > > I'm trying to get a vector of independant seed corresponding to one > replication. > > Model need four independent seed to works : > > val s = Val[Long] > val sDot = Val[Long] > val sT = Val[Long] > val sDt = Val[Long] > val tremble = Val[Double] > > I want sampling like that *(tremble in (0.0 to 1.0 by 0.20)) x ( s, > sDot, sT, sDt in (UniformDistribution[Long]() take 4))* > > I try something like this, but it's seems false, any idea ? > > val exploration = > ExplorationTask( > (tremble in (0.0 to 1.0 by 0.20)) x > (s in (UniformDistribution[Long]() take 1), > sDot in (UniformDistribution[Long]() take 1), > sT in (UniformDistribution[Long]() take 1), > sDt in (UniformDistribution[Long]() take 1)) > ) > > val templateTask = > TemplateFileTask(workDirectory / "parameters.xml", fileoutput) set ( > inputs += s, > inputs += sDot, > inputs += sT, > inputs += sDt, > inputs += tremble, > } > > Thanks, > Best R. > > > -- > <http://stackoverflow.com/users/385881/reyman64> > > > _______________________________________________ > OpenMOLE-users mailing list > [email protected] > http://fedex.iscpif.fr/mailman/listinfo/openmole-users
signature.asc
Description: OpenPGP digital signature
_______________________________________________ OpenMOLE-users mailing list [email protected] http://fedex.iscpif.fr/mailman/listinfo/openmole-users
