get_sigma: Estimation of sigma
Description
Computes the sigma estimate for given parameters.
Usage
get_sigma(X, x, h, inf_k)
Value
A scalar representing the sigma estimate at point x. Returns 0 if the density estimate is negative.
Arguments
- X
A numerical vector of sample data.
- x
A scalar representing the point where the density is estimated.
- h
A scalar bandwidth parameter.
- inf_k
Kernel function used for the computation.