edu.ucla.stat.SOCR.util
Class normalMixture

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

public class normalMixture
extends java.lang.Object


Constructor Summary
normalMixture(int mixCt, double[] rawDat, double tol)
           
normalMixture(int mixCt, float[] rawDat, double tol)
           
 
Method Summary
 int getCount()
           
 double getKernalDensity(int i, double y)
           
 double getMean(int i)
           
 double getMixDensity(double y)
           
 double getVariance(int i)
           
 double getWeight(int i)
           
 double[] getWeights()
           
 double maxDouble(double[] X)
           
 double minDouble(double[] X)
           
 void mixInit(int mixCt, double[] rawDat, double tol)
           
 void updateEStep()
           
 void updateMStep()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

normalMixture

public normalMixture(int mixCt,
                     float[] rawDat,
                     double tol)

normalMixture

public normalMixture(int mixCt,
                     double[] rawDat,
                     double tol)
Method Detail

mixInit

public void mixInit(int mixCt,
                    double[] rawDat,
                    double tol)

updateEStep

public void updateEStep()

updateMStep

public void updateMStep()

getMixDensity

public double getMixDensity(double y)

getKernalDensity

public double getKernalDensity(int i,
                               double y)

getMean

public double getMean(int i)

getVariance

public double getVariance(int i)

getCount

public int getCount()

getWeight

public double getWeight(int i)

getWeights

public double[] getWeights()

maxDouble

public double maxDouble(double[] X)

minDouble

public double minDouble(double[] X)