edu.washington.cs.supple.render.utility
Class FactorWeight

java.lang.Object
  extended byedu.washington.cs.supple.render.utility.FactorWeight
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class FactorWeight
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Author:
kgajos
See Also:
Serialized Form

Field Summary
static int DEFAULT
           
protected  double mean
           
protected  double stdev
           
static double UPPER_BOUND
           
protected  double value
           
 
Constructor Summary
FactorWeight(double mean, double stdev)
           
 
Method Summary
 java.lang.Object clone()
           
static FactorWeight createFactorWeight(int type, double initialValue, double spread)
          A factory method for producing factor weights
 double getMean()
           
 double getStdev()
           
 double getValue()
           
 void setMean(double mean)
           
 void setStdev(double stdev)
           
 void setValue(double v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

UPPER_BOUND

public static final double UPPER_BOUND
See Also:
Constant Field Values

value

protected double value

mean

protected double mean

stdev

protected double stdev
Constructor Detail

FactorWeight

public FactorWeight(double mean,
                    double stdev)
Method Detail

createFactorWeight

public static FactorWeight createFactorWeight(int type,
                                              double initialValue,
                                              double spread)
A factory method for producing factor weights

Parameters:
type - the type of weight (bayesian, max margin, minimax regret, etc)
initialValue - some way of describing the initial value/expectation over the prior
spread - some way of describing the uncertainty over the prior (when appropriate)
Returns:
an instance of a FactorWeight

getValue

public double getValue()

setValue

public void setValue(double v)

getMean

public double getMean()
Returns:
Returns the mean.

setMean

public void setMean(double mean)
Parameters:
mean - The mean to set.

getStdev

public double getStdev()
Returns:
Returns the stdev.

setStdev

public void setStdev(double stdev)
Parameters:
stdev - The stdev to set.

toString

public java.lang.String toString()

clone

public java.lang.Object clone()