edu.cmu.minorthird.classify.algorithms.random
Class ProbabilityFactory

java.lang.Object
  extended by edu.cmu.minorthird.classify.algorithms.random.ProbabilityFactory

public class ProbabilityFactory
extends java.lang.Object

Author:
Edoardo Airoldi Date: Jan 10, 2005

Constructor Summary
ProbabilityFactory()
           
 
Method Summary
static double AlphaSigma(double sig, double tau, double[] vlow, double[] vup, double xr, double xp, double wr, double wp, double[] vbeta, double p1, double p2, double candidate)
           
static double AlphaTau(double tau, double sig, double[] vlow, double[] vup, double xr, double xp, double wr, double wp, double[] vbeta, double p1, double p2, double candidate)
           
static double ProbSigmaGivenTauX(double sig, double tau, double[] vlow, double[] vup, double xr, double xp, double wr, double wp, double[] vbeta)
           
static double ProbTauGivenSigmaX(double tau, double sig, double[] vlow, double[] vup, double xr, double xp, double wr, double wp, double[] vbeta)
           
static double[] rnorm(int n, double mu, double sd)
           
static double[] runif(int n, double min, double max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbabilityFactory

public ProbabilityFactory()
Method Detail

rnorm

public static double[] rnorm(int n,
                             double mu,
                             double sd)

runif

public static double[] runif(int n,
                             double min,
                             double max)

ProbTauGivenSigmaX

public static double ProbTauGivenSigmaX(double tau,
                                        double sig,
                                        double[] vlow,
                                        double[] vup,
                                        double xr,
                                        double xp,
                                        double wr,
                                        double wp,
                                        double[] vbeta)

AlphaTau

public static double AlphaTau(double tau,
                              double sig,
                              double[] vlow,
                              double[] vup,
                              double xr,
                              double xp,
                              double wr,
                              double wp,
                              double[] vbeta,
                              double p1,
                              double p2,
                              double candidate)

ProbSigmaGivenTauX

public static double ProbSigmaGivenTauX(double sig,
                                        double tau,
                                        double[] vlow,
                                        double[] vup,
                                        double xr,
                                        double xp,
                                        double wr,
                                        double wp,
                                        double[] vbeta)

AlphaSigma

public static double AlphaSigma(double sig,
                                double tau,
                                double[] vlow,
                                double[] vup,
                                double xr,
                                double xp,
                                double wr,
                                double wp,
                                double[] vbeta,
                                double p1,
                                double p2,
                                double candidate)