edu.cmu.minorthird.classify.algorithms.random
Interface RWrapper


public interface RWrapper

User: Edoardo M. Airoldi (eairoldi@cs.cmu.edu) Date: Feb 22, 2005


Method Summary
 double[] dnorm(double[] t, double mu, double sd, java.lang.String string)
          Evasluates a Gaussian density (mean = mu, standard deviation = sd) at each element of the vector t
 double dnorm(double t, double mu, double sd, java.lang.String string)
          Evasluates a Gaussian density (mean = mu, standard deviation = sd) at t
 void end()
          Teminates the REngine
 double[] rbinom(int n, double mu, double delta)
          Genrates a vector of n doubles distributed according to a Binomial with parameters: mu = mu and delta = delta
 double[] rnbinom(int n, double mu, double delta)
          Genrates a vector of n doubles distributed according to a Negative-Binomial with parameters: mu = mu and delta = delta
 double[] rnorm(int n, double mu, double sd)
          Genrates a vector of n doubles distributed according to a Gaussian with: mean = mu and standard deviation = sd
 double[] runif(int n, double min, double max)
          Genrates a vector of n doubles distributed according to a Uniform with range: min = min and max = max
 

Method Detail

end

void end()
Teminates the REngine


rnorm

double[] rnorm(int n,
               double mu,
               double sd)
Genrates a vector of n doubles distributed according to a Gaussian with: mean = mu and standard deviation = sd


runif

double[] runif(int n,
               double min,
               double max)
Genrates a vector of n doubles distributed according to a Uniform with range: min = min and max = max


rbinom

double[] rbinom(int n,
                double mu,
                double delta)
Genrates a vector of n doubles distributed according to a Binomial with parameters: mu = mu and delta = delta


rnbinom

double[] rnbinom(int n,
                 double mu,
                 double delta)
Genrates a vector of n doubles distributed according to a Negative-Binomial with parameters: mu = mu and delta = delta


dnorm

double[] dnorm(double[] t,
               double mu,
               double sd,
               java.lang.String string)
Evasluates a Gaussian density (mean = mu, standard deviation = sd) at each element of the vector t


dnorm

double dnorm(double t,
             double mu,
             double sd,
             java.lang.String string)
Evasluates a Gaussian density (mean = mu, standard deviation = sd) at t