Documentation of 'edu.rit.mri.test.GenData' Java class
GenData
edu.rit.mri.test

Class GenData



  • public class GenData
    extends java.lang.Object
    Class GenData is a main program that generates a spin signal data set.

    Usage: java edu.rit.mri.test.GenData seed stdev tmax nt ρ1 x1 [ ρ2 x2 . . . ]

    The program:

    1. Initializes a pseudorandom number generator with seed.
    2. Generates nt values of t, unevenly spaced, up to tmax.
    3. For each value of t, computes the spin signal
      S(t) = Σiρi [1 − 2 exp(−xi t)]
      where ρi is the i-th spin density and xi is the i-th spin relaxation rate.
    4. For each spin signal value, adds random Gaussian noise with mean 0 and standard deviation stdev.
    5. Prints each value of t and the corresponding S(t) with noise on one line of the standard output.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args)
      Main program.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Main program.
        Throws:
        java.lang.Exception

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.