vec_math
Class PowerSpectrum.SquareWindow

java.lang.Object
  extended by vec_math.PowerSpectrum.SquareWindow
All Implemented Interfaces:
Function
Enclosing class:
PowerSpectrum

public static class PowerSpectrum.SquareWindow
extends Object
implements Function

The Rectangular window function.


Field Summary
private  double length
          Length of window as a double.
 
Constructor Summary
PowerSpectrum.SquareWindow(int m)
          Constructs the Bartlett window function with a specified half-length.
 
Method Summary
 double evaluate(double j)
          Evaluates the Bartlett window function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

private double length
Length of window as a double.

Constructor Detail

PowerSpectrum.SquareWindow

public PowerSpectrum.SquareWindow(int m)
Constructs the Bartlett window function with a specified half-length.

Method Detail

evaluate

public double evaluate(double j)
Evaluates the Bartlett window function.

Specified by:
evaluate in interface Function