org.knowceans.arms
Class GmmArms

java.lang.Object
  extended by org.knowceans.arms.ArmSampler
      extended by org.knowceans.arms.GmmArms

public class GmmArms
extends ArmSampler

GmmArms simulates a normal mixture. This reimplements the ARMS example 02.

Author:
heinrich

Nested Class Summary
 class GmmArms.GmmParams
           
 
Nested classes/interfaces inherited from class org.knowceans.arms.ArmSampler
ArmSampler.Envelope, ArmSampler.Metropolis, ArmSampler.Point
 
Field Summary
 
Fields inherited from class org.knowceans.arms.ArmSampler
DEREF, EYEPS, params, XEPS, YCEIL, YEPS
 
Constructor Summary
GmmArms()
           
 
Method Summary
 double logpdf(double x, java.lang.Object params)
          log of Gaussian mixture pdf.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.knowceans.arms.ArmSampler
area, arms, armsSimple, cumulate, expshift, initial, invert, logshift, meet, perfunc, sample, test, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmmArms

public GmmArms()
Method Detail

logpdf

public double logpdf(double x,
                     java.lang.Object params)
log of Gaussian mixture pdf.

Specified by:
logpdf in class ArmSampler
Parameters:
x -
double[][]{{mean}, - {sigma}, {pi}}
Returns:

main

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