wiki:PDAF_set_seed

Version 2 (modified by lnerger, 11 hours ago) ( diff )

--

PDAF_set_seed

This page documents the routine PDAF_set_seed of PDAF, which was introduced with PDAF V3.1.

This routine can be used to explicitly set a seed vector which controls the random vector generation. (See also PDAF_set_seedset, which allows to choose a predefined seed vector from 20 different choices)

The interface is:

  SUBROUTINE PDAF_set_seed(seedvec)

    INTEGER, INTENT(in) :: seedvec(4)   ! Seed vector (the last element needs to be odd)

Note:

  • One needs to ensure that the last element of seedvec is an odd value (The routine does not check this)
  • Compared to the routine PDAF_set_ssedset, this routine allows for a finer control of random numbers
  • The routine can be used in combination with PDAF_get_seed.
Note: See TracWiki for help on using the wiki.