vec_math
Class PowerSpectrum.BartlettWindow

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

public static class PowerSpectrum.BartlettWindow
extends Object
implements Function

The Bartlett window function.


Field Summary
private  double inverse
          Inverse of the length.
private  double length
          Length of window as a double.
 
Constructor Summary
PowerSpectrum.BartlettWindow(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.


inverse

private double inverse
Inverse of the length.

Constructor Detail

PowerSpectrum.BartlettWindow

public PowerSpectrum.BartlettWindow(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