- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
public double Supremum()
{
HazardEstimation intensityEstimation = new IntensityEstimation(Sample, new EpanechnikovKernel(), SmoothingParameterMethod.Asymptotic);
var s = new List<double>(Sample.Size);
for (int i = 0; i < Sample.Size; i++)
s.Add(Math.Abs(intensityEstimation.NonParametricEstimation(Sample[i].Value) - rv.h(Sample[i].Value)));
return s.Max();
}