public class WeightedSample<E> extends Object implements org.databene.commons.Weighted
| Constructor and Description |
|---|
WeightedSample(E value,
double weight)
Initializes the Sample to the specified value and weight
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWeight(double weightDelta) |
E |
getValue()
Returns the value property
|
double |
getWeight()
Returns the weight property value
|
void |
setValue(E value)
Sets the weight property
|
void |
setWeight(double weight)
Sets the weight property value
|
String |
toString() |
public WeightedSample(E value, double weight)
public double getWeight()
getWeight in interface org.databene.commons.Weightedweightpublic void setWeight(double weight)
weightpublic void addWeight(double weightDelta)
Copyright © 2011–2014 Volker Bergmann. All rights reserved.