PINE LIBRARY

MathGaussFunction

843
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.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.