Class Convolution

java.lang.Object
org.opentrafficsim.core.egtf.Convolution

public final class Convolution
extends java.lang.Object
Utility class for convolution using fast fourier transformation. This utility is specifically tailored to EGTF and not for general fast fourier purposes.

Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version 31 okt. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Summary

    Modifier and Type Method Description
    static double[][] convolution​(double[][] a, double[][] b)
    Convolution of two matrices using fast fourier transform.
    static void main​(java.lang.String... args)
    Program entry point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • main

      public static void main​(java.lang.String... args)
      Program entry point.
      Parameters:
      args - String...; the command line arguments (not used)
    • convolution

      public static double[][] convolution​(double[][] a, double[][] b)
      Convolution of two matrices using fast fourier transform.
      Parameters:
      a - double[][]; the kernel matrix
      b - double[][]; the data matrix
      Returns:
      double[][]; convolution of a over b, same size as b