trima# swordfish.function.trima()# Calculate the Triangular Moving Average (trima) for X in a sliding window of the given length. Parameters: X (Constant) – A vector/matrix/table. window (Constant) – A positive integer indicating the size of the sliding window.