Class EmgRandomGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.math3.random.RandomDataGenerator getGenerator()  
      java.util.List<java.lang.Integer> getIndex​(java.lang.String listID, int size, java.util.Map<java.lang.String,​java.util.List<java.lang.Integer>> sampleList)  
      protected java.util.List<java.lang.String> getValuesFromList​(java.lang.String list)
      Gets the values from list.
      java.util.List<java.lang.Integer> nextAddTo​(int n, int m)
      Returns an array of n integers that addvar to m.
      double nextBinomialValue​(int numberOfTrials, double probabilityOfSuccess)
      Generates a random value from the Binomial Distribution.
      boolean nextBoolean()  
      void nextBytes​(byte[] bytes)  
      java.lang.String nextCamelCaseString​(int length, int minWordLength)
      Generates a random string of the given length using the specified character set formatted in CameCase format.
      java.lang.String nextCapitalisedString​(java.lang.String charSet, int length)
      Next capitalised string.
      double nextDobule​(double upper)
      Returns a pseudorandom, uniformly distributed double value between 0 (inclusive) and the specified value (exclusive), drawn from this random attribute generator's sequence.
      double nextDobule​(double lower, double upper)
      Returns a pseudorandom, uniformly distributed double value between lower and upper (endpoints included), drawn from this random attribute generator's sequence.
      double nextDouble()  
      double nextExponentialValue​(double mean)
      Generates a random value from the Exponential Distribution.
      float nextFloat()  
      java.lang.Object nextFromCollection​(java.util.Collection<?> c)
      Returns a single object selected randomly from the Collection c using a uniform distribution.
      java.lang.Object nextFromList​(java.lang.String listID)
      The listID must be the name of a parameter in the launch configuration.
      java.lang.Object nextFromListAsSample​(java.lang.String listID)
      The listID must be the name of a parameter in the launch configuration.
      double nextGaussian()  
      java.lang.String nextHttpURI​(boolean addPort, boolean addPath, boolean addQuery, boolean addFragment)
      Generates a random URI that complies to: http:[//host[:port]][/]path[?query][#fragment] The scheme is The host is generated from a random string and uses a top-level domain.
      int nextInt()  
      int nextInt​(int n)  
      int nextInteger​(int upper)
      Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random attribute generator's sequence.
      int nextInteger​(int lower, int upper)
      Returns a pseudorandom, uniformly distributed int value between lower and upper (endpoints included), drawn from this random attribute generator's sequence.
      long nextLong()  
      long nextLong​(long upper)
      Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random attribute generator's sequence.
      long nextLong​(long lower, long upper)
      Returns a pseudorandom, uniformly distributed long value between lower and upper (endpoints included), drawn from this random attribute generator's sequence.
      java.util.List<java.lang.Object> nextSample​(java.lang.String listID, int k)
      The listID must be the name of a parameter in the launch configuration.
      java.util.List<java.lang.Object> nextSample​(java.util.Collection<?> c, int k)
      Returns an array of k objects selected randomly from the Collection c using a uniform distribution.
      java.lang.String nextString​(java.lang.String charSet, int length)
      Generates a random string of the given length using the specified character set.
      java.lang.String nextURI()
      Generates a random URI.
      java.lang.String nextURI​(boolean addPort, boolean addPath, boolean addQuery, boolean addFragment)
      Generates a random URI that complies to: scheme:[//[user:password@]host[:port]][/]path[?query][#fragment] The scheme is randomly selected from: http, ssh and ftp.
      double nextValue()
      Returns the next pseudorandom, value from this random attribute generator's sequence.
      void setSeed​(int seed)  
      void setSeed​(int[] seed)  
      void setSeed​(long seed)  
      void useBinomialDistribution​(int numberOfTrials, double probabilityOfSuccess)
      Use binomial distribution.
      void useExponentialDistribution​(double mean)
      Use exponential distribution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait