edu.cmu.minorthird.classify.transform
Class T1InstanceTransform

java.lang.Object
  extended by edu.cmu.minorthird.classify.transform.T1InstanceTransform
All Implemented Interfaces:
InstanceTransform

public class T1InstanceTransform
extends java.lang.Object
implements InstanceTransform

Author:
Edoardo Airoldi Date: Nov 24, 2003

Constructor Summary
T1InstanceTransform()
           
 
Method Summary
 double getNegDelta(Feature f)
          Get mu corresponding to the Positive examples of feature f
 double getNegMu(Feature f)
          Get mu corresponding to the Positive examples of feature f
 double getPosDelta(Feature f)
          Get mu corresponding to the Positive examples of feature f
 double getPosMu(Feature f)
          Get mu corresponding to the Positive examples of feature f
 java.util.SortedMap<java.lang.String,java.lang.Number> mudelta2np(double mu, double delta, double omega)
           
 void setALPHA(double desiredLevel)
          Set ALPHA to the desired level
 void setFeaturePdf(Feature f, java.lang.String pdf)
          Set the PDF for feature f
 void setMAX_WORDS(int number)
          Set MAX_WORDS to the desired number
 void setMIN_WORDS(int number)
          Set MIN_WORDS to the desired number
 void setNegDelta(Feature f, double delta)
          Set mu corresponding to the Positive examples of feature f
 void setNegMu(Feature f, double delta)
          Set mu corresponding to the Positive examples of feature f
 void setPosDelta(Feature f, double delta)
          Set mu corresponding to the Positive examples of feature f
 void setPosMu(Feature f, double delta)
          Set mu corresponding to the Positive examples of feature f
 void setSAMPLE(int size)
          Set SAMPLE SIZE to the desired level
 void setT1(Feature f, double delta)
          Set the value of T1 corresponding to feature f
 double T1(int x1, int x2)
           
 Dataset transform(Dataset dataset)
          Create a transformed copy of a dataset.
 Example transform(Example example)
          Create a transformed copy of the example.
 Instance transform(Instance instance)
          Create a transformed copy of the instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

T1InstanceTransform

public T1InstanceTransform()
Method Detail

transform

public Instance transform(Instance instance)
Create a transformed copy of the instance.

Specified by:
transform in interface InstanceTransform

transform

public Example transform(Example example)
Create a transformed copy of the example.

Specified by:
transform in interface InstanceTransform

transform

public Dataset transform(Dataset dataset)
Create a transformed copy of a dataset.

Specified by:
transform in interface InstanceTransform

setMIN_WORDS

public void setMIN_WORDS(int number)
Set MIN_WORDS to the desired number


setMAX_WORDS

public void setMAX_WORDS(int number)
Set MAX_WORDS to the desired number


setSAMPLE

public void setSAMPLE(int size)
Set SAMPLE SIZE to the desired level


setALPHA

public void setALPHA(double desiredLevel)
Set ALPHA to the desired level


setFeaturePdf

public void setFeaturePdf(Feature f,
                          java.lang.String pdf)
Set the PDF for feature f


setT1

public void setT1(Feature f,
                  double delta)
Set the value of T1 corresponding to feature f


setPosMu

public void setPosMu(Feature f,
                     double delta)
Set mu corresponding to the Positive examples of feature f


getPosMu

public double getPosMu(Feature f)
Get mu corresponding to the Positive examples of feature f


setNegMu

public void setNegMu(Feature f,
                     double delta)
Set mu corresponding to the Positive examples of feature f


getNegMu

public double getNegMu(Feature f)
Get mu corresponding to the Positive examples of feature f


setPosDelta

public void setPosDelta(Feature f,
                        double delta)
Set mu corresponding to the Positive examples of feature f


getPosDelta

public double getPosDelta(Feature f)
Get mu corresponding to the Positive examples of feature f


setNegDelta

public void setNegDelta(Feature f,
                        double delta)
Set mu corresponding to the Positive examples of feature f


getNegDelta

public double getNegDelta(Feature f)
Get mu corresponding to the Positive examples of feature f


T1

public double T1(int x1,
                 int x2)

mudelta2np

public java.util.SortedMap<java.lang.String,java.lang.Number> mudelta2np(double mu,
                                                                         double delta,
                                                                         double omega)