Spectral Signal Processing Suite
v1.0

signal.lib
Class utility

java.lang.Object
  |
  +--signal.lib.utility

public final class utility
extends java.lang.Object

Implements miscellaneous methods not appropriate for any other class.


Constructor Summary
utility()
           
 
Method Summary
static void Derivative(double[] U, double[] d)
          Given a vector of function values U, the derivate of the function is returned in the vector d.
static double fact(int n)
          Returns the factorial of an integer.
static double gamma(double x)
          Returns the Gamma function of a double.
static void toFromCheby(double[] A, double[] U, int N, int dir)
          Performs a discrete Chebyshev Transform of a vector of any length N.
static void transpose(double[][] a, double[][] b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

utility

public utility()
Method Detail

gamma

public static double gamma(double x)
Returns the Gamma function of a double. If x is a negative integer, the result is NaN.

transpose

public static final void transpose(double[][] a,
                                   double[][] b)

fact

public static double fact(int n)
Returns the factorial of an integer. If x is negative, the result is NaN.

toFromCheby

public static final void toFromCheby(double[] A,
                                     double[] U,
                                     int N,
                                     int dir)
Performs a discrete Chebyshev Transform of a vector of any length N. Given function values in the vector U, and with dir set to 1, the method returns the discrete Chebyshev coefficients in the vector A. Given discrete Chebyshev coefficients in the vector U, and with dir set to -1, the method returns the function values in the Vector A.

Derivative

public static final void Derivative(double[] U,
                                    double[] d)
Given a vector of function values U, the derivate of the function is returned in the vector d.

Spectral Signal Processing Suite
v1.0

copyright 2002 scottsarra.org