Class RandomData

java.lang.Object
cnuphys.swimtest.RandomData

public class RandomData extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int[]
     
    int
     
    double[]
     
    double[]
     
    double[]
     
    double[]
     
    double[]
     
    double[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RandomData(int n, long seed)
    Create some random data for a swim test
    RandomData(int n, long seed, double xmin, double dx, double ymin, double dy, double zmin, double dz, double pmin, double dp, double thetamin, double dtheta, double phimin, double dphi)
    Create some random data for a swim test
  • Method Summary

    Modifier and Type
    Method
    Description
    toStringRaw(int index)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • count

      public int count
    • charge

      public int[] charge
    • xo

      public double[] xo
    • yo

      public double[] yo
    • zo

      public double[] zo
    • p

      public double[] p
    • theta

      public double[] theta
    • phi

      public double[] phi
  • Constructor Details

    • RandomData

      public RandomData(int n, long seed)
      Create some random data for a swim test
      Parameters:
      n - the number of points
      seed - random number seed
    • RandomData

      public RandomData(int n, long seed, double xmin, double dx, double ymin, double dy, double zmin, double dz, double pmin, double dp, double thetamin, double dtheta, double phimin, double dphi)
      Create some random data for a swim test
      Parameters:
      n -
      seed -
      xmin -
      dx -
      ymin -
      dy -
      zmin -
      dz -
      pmin -
      dp -
      thetamin -
      dtheta -
      phimin -
      dphi -
  • Method Details

    • toStringRaw

      public String toStringRaw(int index)