Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: imagerpositiontest.set_sim_parms - Function Up: imagerpositiontest - Tool Previous: imagerpositiontest.set_pimager_numprocs - Function


imagerpositiontest.set_seed - Function



Package synthesis
Module synthesistester
Tool imagerpositiontest


Set the seed used by the random number generator for creating the simulated components.


Synopsis
set_seed(seed)


Description
Set the seed used by the random number generator for creating the simulated components. The seed is initially set to the value of time() when the tool is created. However, the user may reset it before a call to make_default_cl() is made (or before the call to dotests() which calls this function). In this way, the user can reproduce the model generated by make_default_cl(), assuming of course s/he runs on the same machine. Note that if set_sim_parms() is called with docorrupt=T, the seed for the noise generator must be set during this call for total reproducability since the simulator tool uses it's own random number generator for corrupting data.



Arguments

seed The value to use for seeding the random number generator
Allowed: Float
Default: None (is set initially during tool construction)


Returns
T


Example
- include 'imagerpositiontest.g';
- ipt := imagerpositiontest();
# set up a single field mem that can be repeated by using the same
# random number generator seeds for the ipt tool and it's simulator tool
- ipt.set_sim_parms(docorrupt=1,seed=426);
- ipt.set_seed(-829.76);
- ipt.set_deconvolution_function('mem');
- ipt.set_mem_parms(algorithm='entropy',niter=25,sigma='0.1Jy');
- ipt.dotests();





next up previous contents index
Next: imagerpositiontest.set_sim_parms - Function Up: imagerpositiontest - Tool Previous: imagerpositiontest.set_pimager_numprocs - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15