Tabnine Logo
Gamma.setRandomGenerator
Code IndexAdd Tabnine to your IDE (free)

How to use
setRandomGenerator
method
in
cern.jet.random.tdouble.Gamma

Best Java code snippets using cern.jet.random.tdouble.Gamma.setRandomGenerator (Showing top 6 results out of 315)

origin: rwl/ParallelColt

  /**
   * Sets the uniform random number generated shared by all <b>static</b>
   * methods.
   * 
   * @param randomGenerator
   *            the new uniform random number generator to be shared.
   */
  private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) {
    synchronized (shared) {
      shared.setRandomGenerator(randomGenerator);
    }
  }
}
origin: net.sourceforge.parallelcolt/parallelcolt

  /**
   * Sets the uniform random number generated shared by all <b>static</b>
   * methods.
   * 
   * @param randomGenerator
   *            the new uniform random number generator to be shared.
   */
  private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) {
    synchronized (shared) {
      shared.setRandomGenerator(randomGenerator);
    }
  }
}
origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Constructs a Gamma distribution. Example: alpha=1.0, lambda=1.0.
 * 
 * @throws IllegalArgumentException
 *             if <tt>alpha &lt;= 0.0 || lambda &lt;= 0.0</tt>.
 */
public Gamma(double alpha, double lambda, DoubleRandomEngine randomGenerator) {
  setRandomGenerator(randomGenerator);
  setState(alpha, lambda);
}
origin: rwl/ParallelColt

/**
 * Constructs a Gamma distribution. Example: alpha=1.0, lambda=1.0.
 * 
 * @throws IllegalArgumentException
 *             if <tt>alpha &lt;= 0.0 || lambda &lt;= 0.0</tt>.
 */
public Gamma(double alpha, double lambda, DoubleRandomEngine randomGenerator) {
  setRandomGenerator(randomGenerator);
  setState(alpha, lambda);
}
origin: net.sourceforge.parallelcolt/parallelcolt

/**
 * Returns a deep copy of the receiver; the copy will produce identical
 * sequences. After this call has returned, the copy and the receiver have
 * equal but separate state.
 * 
 * @return a copy of the receiver.
 */
public Object clone() {
  NegativeBinomial copy = (NegativeBinomial) super.clone();
  if (this.poisson != null)
    copy.poisson = (Poisson) this.poisson.clone();
  copy.poisson.setRandomGenerator(copy.getRandomGenerator());
  if (this.gamma != null)
    copy.gamma = (Gamma) this.gamma.clone();
  copy.gamma.setRandomGenerator(copy.getRandomGenerator());
  return copy;
}
origin: rwl/ParallelColt

/**
 * Returns a deep copy of the receiver; the copy will produce identical
 * sequences. After this call has returned, the copy and the receiver have
 * equal but separate state.
 * 
 * @return a copy of the receiver.
 */
public Object clone() {
  NegativeBinomial copy = (NegativeBinomial) super.clone();
  if (this.poisson != null)
    copy.poisson = (Poisson) this.poisson.clone();
  copy.poisson.setRandomGenerator(copy.getRandomGenerator());
  if (this.gamma != null)
    copy.gamma = (Gamma) this.gamma.clone();
  copy.gamma.setRandomGenerator(copy.getRandomGenerator());
  return copy;
}
cern.jet.random.tdoubleGammasetRandomGenerator

Popular methods of Gamma

  • <init>
    Constructs a Gamma distribution. Example: alpha=1.0, lambda=1.0.
  • clone
  • nextDouble
  • setState
    Sets the mean and variance.

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now