All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.functions.pace.ChisqMixture

java.lang.Object
    |
    +----weka.classifiers.functions.pace.MixtureDistribution
            |
            +----weka.classifiers.functions.pace.ChisqMixture

public class ChisqMixture
extends MixtureDistribution
Class for manipulating chi-square mixture distributions.

REFERENCES

Wang, Y. (2000). "A new approach to fitting linear models in high dimensional spaces." PhD Thesis. Department of Computer Science, University of Waikato, New Zealand.

Wang, Y. and Witten, I. H. (2002). "Modeling for optimal probability prediction." Proceedings of ICML'2002. Sydney.

Version:
$Revision: 1.1 $
Author:
Yong Wang (yongwang@cs.waikato.ac.nz)

Constructor Index

 o ChisqMixture()
Contructs an empty ChisqMixture

Method Index

 o f(double)
Computes the value of f(x) given the mixture.
 o f(DoubleVector)
Computes the value of f(x) given the mixture, where x is a vector.
 o fittingIntervals(DoubleVector)
Contructs the set of fitting intervals for mixture estimation.
 o getSeparatingThreshold()
Gets the separating threshold value.
 o getTrimingThreshold()
Gets the triming thresholding value.
 o h(double)
Computes the value of h(x) given the mixture.
 o h(DoubleVector)
Computes the value of h(x) given the mixture, where x is a vector.
 o hf(double)
Computes the value of h(x) / f(x) given the mixture.
 o main(String[])
Method to test this class
 o pace2(DoubleVector)
Returns the pace2 estimate of a vector.
 o pace4(DoubleVector)
Returns the pace4 estimate of a vector.
 o pace6(double)
Returns the pace6 estimate of a single value.
 o pace6(DoubleVector)
Returns the pace6 estimate of a vector.
 o probabilityMatrix(DoubleVector, PaceMatrix)
Contructs the probability matrix for mixture estimation, given a set of support points and a set of intervals.
 o separable(DoubleVector, int, int, double)
Return true if a value can be considered for mixture estimatino separately from the data indexed between i0 and i1
 o setSeparatingThreshold(double)
Sets the separating threshold value
 o setTrimingThreshold(double)
Sets the triming thresholding value.
 o supportPoints(DoubleVector, int)
Contructs the set of support points for mixture estimation.
 o toString()
Converts to a string
 o trim(DoubleVector)
Trims the small values of the estaimte

Constructor Detail

 o ChisqMixture
public ChisqMixture()
          Contructs an empty ChisqMixture

Method Detail

 o getSeparatingThreshold
public double getSeparatingThreshold()
          Gets the separating threshold value. This value is used by the method separatable
 o setSeparatingThreshold
public void setSeparatingThreshold(double t)
          Sets the separating threshold value
Parameters:
t - the threshold value
 o getTrimingThreshold
public double getTrimingThreshold()
          Gets the triming thresholding value. This value is usef by the method trim.
 o setTrimingThreshold
public void setTrimingThreshold(double t)
          Sets the triming thresholding value.
 o separable
public boolean separable(DoubleVector data,
                         int i0,
                         int i1,
                         double x)
          Return true if a value can be considered for mixture estimatino separately from the data indexed between i0 and i1
Parameters:
data - the data supposedly generated from the mixture
i0 - the index of the first element in the group
i1 - the index of the last element in the group
x - the value
Overrides:
separable in class MixtureDistribution
 o supportPoints
public DoubleVector supportPoints(DoubleVector data,
                                  int ne)
          Contructs the set of support points for mixture estimation.
Parameters:
data - the data supposedly generated from the mixture
ne - the number of extra data that are suppposedly discarded earlier and not passed into here
Overrides:
supportPoints in class MixtureDistribution
 o fittingIntervals
public PaceMatrix fittingIntervals(DoubleVector data)
          Contructs the set of fitting intervals for mixture estimation.
Parameters:
data - the data supposedly generated from the mixture
Overrides:
fittingIntervals in class MixtureDistribution
 o probabilityMatrix
public PaceMatrix probabilityMatrix(DoubleVector s,
                                    PaceMatrix intervals)
          Contructs the probability matrix for mixture estimation, given a set of support points and a set of intervals.
Parameters:
s - the set of support points
intervals - the intervals
Overrides:
probabilityMatrix in class MixtureDistribution
 o pace6
public double pace6(double x)
          Returns the pace6 estimate of a single value.
Parameters:
x - the value
 o pace6
public DoubleVector pace6(DoubleVector x)
          Returns the pace6 estimate of a vector.
Parameters:
x - the vector
 o pace2
public DoubleVector pace2(DoubleVector x)
          Returns the pace2 estimate of a vector.
Parameters:
x - the vector
 o pace4
public DoubleVector pace4(DoubleVector x)
          Returns the pace4 estimate of a vector.
Parameters:
x - the vector
 o trim
public void trim(DoubleVector x)
          Trims the small values of the estaimte
Parameters:
x - the estimate vector
 o hf
public double hf(double AHat)
          Computes the value of h(x) / f(x) given the mixture. The implementation avoided overflow.
Parameters:
x - the value
 o h
public double h(double AHat)
          Computes the value of h(x) given the mixture.
Parameters:
x - the value
 o h
public DoubleVector h(DoubleVector AHat)
          Computes the value of h(x) given the mixture, where x is a vector.
Parameters:
AHat - the vector
 o f
public double f(double x)
          Computes the value of f(x) given the mixture.
Parameters:
x - the value
 o f
public DoubleVector f(DoubleVector x)
          Computes the value of f(x) given the mixture, where x is a vector.
Parameters:
x - the vector
 o toString
public java.lang.String toString()
          Converts to a string
Overrides:
toString in class MixtureDistribution
 o main
public static void main(java.lang.String args[])
          Method to test this class

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home