RicardoSantos

MathStatisticsKernelFunctions

Library "MathStatisticsKernelFunctions"
TODO: add library description here

uniform(distance, bandwidth) Uniform kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

triangular(distance, bandwidth) Triangular kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

epanechnikov(distance, bandwidth) Epanechnikov kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

quartic(distance, bandwidth) Quartic kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

triweight(distance, bandwidth) Triweight kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

tricubic(distance, bandwidth) Tricubic kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

gaussian(distance, bandwidth) Gaussian kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

cosine(distance, bandwidth) Cosine kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

logistic(distance, bandwidth) logistic kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

sigmoid(distance, bandwidth) Sigmoid kernel.
Parameters:
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.

select(kernel, distance, bandwidth) Kernel selection method.
Parameters:
  • kernel: string, kernel to select. (options="uniform", "triangle", "epanechnikov", "quartic", "triweight", "tricubic", "gaussian", "cosine", "logistic", "sigmoid")
  • distance: float, distance to kernel origin.
  • bandwidth: float, default=1.0, bandwidth limiter to weight the kernel.
Returns: float.
Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.