public class LeastSquaresCrossValidation extends java.lang.Object implements Bandwidth, org.apache.commons.math3.analysis.UnivariateFunction
| Constructor and Description |
|---|
LeastSquaresCrossValidation(double[] x) |
| Modifier and Type | Method and Description |
|---|---|
double |
cvSum(double bandwidth) |
double[] |
density(double bandwidth) |
double[] |
density(double bandwidth,
int index) |
double |
getAdjustmentFactor()
The bandwidth is multiplied by teh adjustment factor to increase or decrease smoothing.
|
double |
leaveOutDensityAt(double bandwidth,
int index) |
double |
squaredIntegral() |
double |
value()
The value of teh bandwidth
|
double |
value(double h) |
public LeastSquaresCrossValidation(double[] x)
throws java.lang.Exception
java.lang.Exceptionpublic double[] density(double bandwidth)
public double[] density(double bandwidth,
int index)
public double leaveOutDensityAt(double bandwidth,
int index)
public double cvSum(double bandwidth)
public double squaredIntegral()
public double value(double h)
value in interface org.apache.commons.math3.analysis.UnivariateFunctionpublic double value()
Bandwidthpublic double getAdjustmentFactor()
BandwidthgetAdjustmentFactor in interface Bandwidth