org.knowceans.sandbox
Class _AlphaSampler

java.lang.Object
  extended by org.knowceans.sandbox._AlphaSampler

public class _AlphaSampler
extends java.lang.Object

_RejectionSampler implements a simple rejection sampling method. Planned: extend to adaptive RS.

Author:
heinrich

Field Summary
private  double k
           
private  double n
           
private  java.util.Random rand
           
 
Constructor Summary
_AlphaSampler()
           
 
Method Summary
static void main(java.lang.String[] args)
           
private  double samplePrior(double alpha, double a, double b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rand

private java.util.Random rand

k

private double k

n

private double n
Constructor Detail

_AlphaSampler

_AlphaSampler()
Method Detail

main

public static void main(java.lang.String[] args)

samplePrior

private double samplePrior(double alpha,
                           double a,
                           double b)