edu.washington.cs.supple.render.utility
Class FactorWeight
java.lang.Object
edu.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
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
FactorWeight
public FactorWeight(double mean,
double stdev)
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
priorspread - 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()