edu.ucla.stat.SOCR.util
Class Mixture

java.lang.Object
  extended by edu.ucla.stat.SOCR.util.Mixture

public abstract class Mixture
extends java.lang.Object


Field Summary
 Database db
           
 java.lang.Object[] kernel
           
static int maxkp
           
 int[] type
           
 int typecurvedgauss
           
 int typegauss
           
 int typeline
           
 int typescaleshift
           
 int typeuniform
           
 int xsiz
           
 int ysiz
           
 
Constructor Summary
Mixture(int xSize, int ySize, Database DB)
           
 
Method Summary
 void EM(double[] ws)
           
 void EMmain(double[] ws)
           
 java.lang.Object getKernel(int kernel_index)
           
 java.awt.Color getKernelColor(int i)
           
 int getnk()
           
 void initKernel(java.lang.Object mod, int tp, int pos)
           
 double likelihood()
           
 void paint(java.awt.Graphics g)
           
 void randomKernels()
           
 void randomKernels(double[] ws)
           
 void setnk(int nK)
           
 void setnk(int nK, double[] ws)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxkp

public static final int maxkp
See Also:
Constant Field Values

typegauss

public final int typegauss
See Also:
Constant Field Values

typeuniform

public final int typeuniform
See Also:
Constant Field Values

typecurvedgauss

public final int typecurvedgauss
See Also:
Constant Field Values

typescaleshift

public final int typescaleshift
See Also:
Constant Field Values

typeline

public final int typeline
See Also:
Constant Field Values

kernel

public java.lang.Object[] kernel

type

public int[] type

xsiz

public int xsiz

ysiz

public int ysiz

db

public Database db
Constructor Detail

Mixture

public Mixture(int xSize,
               int ySize,
               Database DB)
Method Detail

initKernel

public void initKernel(java.lang.Object mod,
                       int tp,
                       int pos)

setnk

public void setnk(int nK)

getnk

public int getnk()

setnk

public void setnk(int nK,
                  double[] ws)

randomKernels

public void randomKernels(double[] ws)

getKernel

public java.lang.Object getKernel(int kernel_index)

randomKernels

public void randomKernels()

paint

public void paint(java.awt.Graphics g)

getKernelColor

public java.awt.Color getKernelColor(int i)

EM

public void EM(double[] ws)

EMmain

public void EMmain(double[] ws)

likelihood

public double likelihood()