edu.ucla.stat.SOCR.chart.util
Class Mixture

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.util.Mixture
Direct Known Subclasses:
CurvedGaussMixture, GaussLineMixture

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
           
 double xsiz
           
 double ysiz
           
 
Constructor Summary
Mixture(double xSize, double ySize, Database DB)
           
 
Method Summary
 void EM(double[] ws)
           
 void EMmain(double[] ws)
           
 java.lang.Object getKernel(int kernel_index)
           
 java.awt.Paint getKernelColor(int i)
           
 int getnk()
           
 void initKernel(java.lang.Object mod, int tp, int pos)
           
 double likelihood()
           
 void randomKernels()
           
 void randomKernels(double[] ws)
           
 void setKernelColor(int i, java.awt.Paint c)
           
 void setManualKernels(boolean b)
           
 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 double xsiz

ysiz

public double ysiz

db

public Database db
Constructor Detail

Mixture

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

initKernel

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

setManualKernels

public void setManualKernels(boolean b)

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()

getKernelColor

public java.awt.Paint getKernelColor(int i)

setKernelColor

public void setKernelColor(int i,
                           java.awt.Paint c)

EM

public void EM(double[] ws)

EMmain

public void EMmain(double[] ws)

likelihood

public double likelihood()