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)
WeightAlgorithm
useTrueDensity
in interface WeightAlgorithm
public boolean isTrueDensity()
WeightAlgorithm
isTrueDensity
in interface WeightAlgorithm
public DblMatrix getWeight(DblMatrix D)
WeightAlgorithm
getWeight
in interface WeightAlgorithm
Copyright © 2011, 2013. Daniel P. Dougherty