PINE LIBRARY

MathGaussFunction

Library "MathGaussFunction"
Implements multiple gauss methods.

f_1d(point_x, sigma) 1-D Gaussian function.
Parameters:
  • point_x: float, x value.
  • sigma: float, sigma value, default=1.0.

Returns: float, function's value at point_x.

f_2d(point_x, point_y, sigma) 2-D Gaussian function.
Parameters:
  • point_x: float, x value.
  • point_y: float, y value.
  • sigma: float, sigma value, default=1.0.

Returns: float, function's value at (point_x, point_y).

kernel_1d(size, sigma) 1-D Gaussian kernel.
Parameters:
  • size: int, Kernel size (should be odd), [3, 101].
  • sigma: float, sigma value, default=1.0.

Returns: float array, Returns 1-D Gaussian kernel of the specified size.

kernel_2d(size, sigma) 2-D Gaussian kernel.
Parameters:
  • size: int, Kernel size (should be odd), [3, 101].
  • sigma: float, sigma value, default=1.0.

Returns: float array, Returns 2-D Gaussian kernel of the specified size.
MATH

Pine脚本库

本着真正的TradingView精神,作者将此Pine代码发布为开源脚本库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。

免责声明