public class CurveEstimation extends Object
CurveEstimation.Distribution.
The resulting curve is piecewise linear. That means, only the knot points of the curve are computed in this algorithm.
The final curve is then provided with linear interpolation of the knot points,
see CurveInterpolation.| Modifier and Type | Class and Description |
|---|---|
static class |
CurveEstimation.Distribution
Possible kernel types.
|
| Constructor and Description |
|---|
CurveEstimation(LocalDate referenceDate,
double bandwidth,
double[] independentValues,
double[] dependentValues,
double[] partitionValues,
double weight)
Creates a curve estimation object with a normal kernel.
|
CurveEstimation(LocalDate referenceDate,
double bandwidth,
double[] independentValues,
double[] dependentValues,
double[] partitionValues,
double weight,
CurveEstimation.Distribution distribution)
Creates a curve estimation object.
|
| Modifier and Type | Method and Description |
|---|---|
Curve |
getRegressionCurve()
Returns the curve resulting from the local linear regression with discrete kernel.
|
public CurveEstimation(LocalDate referenceDate, double bandwidth, double[] independentValues, double[] dependentValues, double[] partitionValues, double weight, CurveEstimation.Distribution distribution)
referenceDate - The reference date for the resulting regression curve, i.e., the date which defined t=0.bandwidth - The bandwidth parameter of the regression.independentValues - The realization of a random variable X.dependentValues - The realization of a random variable Y.partitionValues - The values to create a partition. It is important that min(partition) ≤ min(X) and max(partition) ≥ max(X).weight - The weight needed to create a partition.distribution - The kernel type.public CurveEstimation(LocalDate referenceDate, double bandwidth, double[] independentValues, double[] dependentValues, double[] partitionValues, double weight)
referenceDate - The reference date for the resulting regression curve, i.e., the date which defined t=0.bandwidth - The bandwidth parameter of the regression.independentValues - The realization of a random variable X.dependentValues - The realization of a random variable Y.partitionValues - The values to create a partition. It is important that min(partition) ≤ min(X) and max(partition) ≥ max(X).weight - The weight needed to create a partition.public Curve getRegressionCurve()
Copyright © 2019. All rights reserved.