public class Weight extends java.lang.Object implements WeightAlgorithm
| Constructor and Description |
|---|
Weight()
Default construction which uses the Tricube weight.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractWeightAlgorithm |
getAlgorithm() |
DblMatrix |
getWeight(DblMatrix D)
Get the weight of a particular value.
|
boolean |
isTrueDensity()
Returns true if the weights are being calculated under a true density.
|
void |
setAlgorithm(AbstractWeightAlgorithm x) |
void |
useTrueDensity(boolean x)
Set the normalizing behavior of the weight calculation.
|
public void setAlgorithm(AbstractWeightAlgorithm x)
public AbstractWeightAlgorithm getAlgorithm()
public void useTrueDensity(boolean x)
WeightAlgorithmuseTrueDensity in interface WeightAlgorithmpublic boolean isTrueDensity()
WeightAlgorithmisTrueDensity in interface WeightAlgorithmpublic DblMatrix getWeight(DblMatrix D)
WeightAlgorithmgetWeight in interface WeightAlgorithmCopyright © 2011, 2013. Daniel P. Dougherty