Package com.bayesserver.data.discovery
Class WeightedValue
- java.lang.Object
-
- com.bayesserver.data.discovery.WeightedValue
-
public final class WeightedValue extends Object
A value (which can be null) and its associated weight (support).
-
-
Constructor Summary
Constructors Constructor Description WeightedValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Double
getValue()
Gets the value, which can be null.double
getWeight()
Gets the weight (support) for thegetValue()
.int
hashCode()
void
setValue(Double value)
Sets the value, which can be null.void
setWeight(double value)
Sets the weight (support) for thegetValue()
.
-
-
-
Method Detail
-
getValue
public Double getValue()
Gets the value, which can be null.
-
setValue
public void setValue(Double value)
Sets the value, which can be null.
-
getWeight
public double getWeight()
Gets the weight (support) for thegetValue()
.
-
setWeight
public void setWeight(double value)
Sets the weight (support) for thegetValue()
.
-
-