public class KernelRegression
extends java.lang.Object
Constructor and Description |
---|
KernelRegression(KernelFunction kernel,
Bandwidth bandwidth,
UniformDistributionApproximation uniform)
Default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
double |
getBandwidth() |
double[] |
getPoints() |
int |
getSampleSize() |
void |
increment(double x,
double y)
Increment the estimate by x and y
|
void |
increment(double x,
double y,
double weight) |
double[] |
value()
Computes teh kernel regression estimate at teh evaluation points.
|
public KernelRegression(KernelFunction kernel, Bandwidth bandwidth, UniformDistributionApproximation uniform)
kernel
- type of kernel functionbandwidth
- bandwidthuniform
- distribution representing the evaluation pointspublic void increment(double x, double y)
x
- value of teh independent variabley
- value of the dependent variablepublic void increment(double x, double y, double weight)
public double[] value()
public double[] getPoints()
public double getBandwidth()
public int getSampleSize()