Accord.Statistics.Distributions.DensityKernels.UniformKernel.Profile C# (CSharp) Метод

Profile() публичный Метод

Computes the kernel profile function.
public Profile ( double x ) : double
x double The point estimate x.
Результат double
        public double Profile(double x)
        {
#if DEBUG
            if (x < 0)
                throw new Exception();
#endif

            if (x <= 1)
                return 1;
            return 0;
        }