epfl.classifier
Class MultMixtureModelClassifier.MultClassModel

java.lang.Object
  |
  +--epfl.classifier.MultMixtureModelClassifier.MultClassModel
Enclosing class:
MultMixtureModelClassifier

public static class MultMixtureModelClassifier.MultClassModel
extends java.lang.Object


Field Summary
 double priorProb
          The class prior probability (weight)
 
Constructor Summary
MultMixtureModelClassifier.MultClassModel(double priorProb, int dimension, int nKernels, double minMu, double maxMu, double sigma, java.lang.String name)
          Creates a new class model
MultMixtureModelClassifier.MultClassModel(TagReader config, java.lang.String name)
          Creates a new Class model with parameters read in a file
 
Method Summary
 int dimension()
          Returns vector space dimension
 MultNormalKernelPdf getFeaturesPdf()
          Returns the associated feature pdf
 double pdf(double[] features)
          The class pdf
 void tagWrite(TagWriter out)
           
 void tagWrite(TagWriter out, TagWriter.Indent _indent)
          Writes a tag representation for this class model in a tag writer
 java.lang.String toString()
          Returns a string representation for this class model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

priorProb

public double priorProb
The class prior probability (weight)
Constructor Detail

MultMixtureModelClassifier.MultClassModel

public MultMixtureModelClassifier.MultClassModel(double priorProb,
                                                 int dimension,
                                                 int nKernels,
                                                 double minMu,
                                                 double maxMu,
                                                 double sigma,
                                                 java.lang.String name)
Creates a new class model
Parameters:
priorProb - the prior class probability
dimension - the vector space dimension
nKernels - the initial number of kernels
The kernel mu parameter is set to a random value between minMu and maxMu; the sigma parameters are equal to sigma and the weight value is equal to 1.0/nKernels
name - the class model's name

MultMixtureModelClassifier.MultClassModel

public MultMixtureModelClassifier.MultClassModel(TagReader config,
                                                 java.lang.String name)
                                          throws java.io.IOException
Creates a new Class model with parameters read in a file
Parameters:
config - the configuration file
name - the tag name enclosing the parameters
The file format must be :
<name>
  <priorProb> double </priorProb>
  <featuresPdf>
    NormalKernelPdf
  </featuresPdf>
</name>
Throws:
java.io.IOException - if there is an error in file format
Method Detail

getFeaturesPdf

public MultNormalKernelPdf getFeaturesPdf()
Returns the associated feature pdf

dimension

public int dimension()
Returns vector space dimension

pdf

public double pdf(double[] features)
The class pdf

toString

public java.lang.String toString()
Returns a string representation for this class model
Overrides:
toString in class java.lang.Object

tagWrite

public void tagWrite(TagWriter out,
                     TagWriter.Indent _indent)
Writes a tag representation for this class model in a tag writer

tagWrite

public void tagWrite(TagWriter out)