asu.seismo.signals.oned
Class doubleSignal1dpadp2

java.lang.Object
  extended by asu.seismo.signals.oned.doubleSignal1d
      extended by asu.seismo.signals.oned.doubleSignal1dpadp2
Direct Known Subclasses:
doubleSignal1dfft

public class doubleSignal1dpadp2
extends doubleSignal1d

1d - signal padded with zeros to a power of 2.


Field Summary
protected  int pLength
          Length of the padded signal ( this is a power of 2
protected  arraySelector1d tail
          A map that discribes the tail ie the padding of the system
 
Fields inherited from class asu.seismo.signals.oned.doubleSignal1d
data, length
 
Constructor Summary
doubleSignal1dpadp2()
          Create a signal with length 0
doubleSignal1dpadp2(double[] d)
          Create a signal form an array
doubleSignal1dpadp2(double[] d, arraySelector1d s)
          Create a signal form a part of the given array
doubleSignal1dpadp2(doubleSignal1d sig)
          Copy the given non padded signal
doubleSignal1dpadp2(doubleSignal1dpadp2 sig)
          Copy the given padded signal
doubleSignal1dpadp2(int l)
          Create a signal with length l
 
Method Summary
protected  void allocateMemory(int l)
          Allocate memory
 int getpLength()
          Get length of the padded signal
 doubleSignal1d getTail()
          Return new signal with the tail of padded signal.
 void pad()
          Pad the signal with zeros
 
Methods inherited from class asu.seismo.signals.oned.doubleSignal1d
add, add, add, assign, assign, assign, assign, assign, assign, changePhys, clear, cutNeg, diff, diffHere, dp, getAbsMax, getAsString, getDataArray, getLength, getMaxValue, getMinValue, loadASCII, mult, mult, norm2, normalize2, normalizeMax, normalizeS, normTK2, normTK2, normTV, normTV, ones, printAsColumn, printAsLine, rand, removeDC, reverse, reverseThis, saveASCII, setLength, subSignal, sum, sum, validatePhys, vec, zeros, zeros, zeros
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pLength

protected int pLength
Length of the padded signal ( this is a power of 2


tail

protected arraySelector1d tail
A map that discribes the tail ie the padding of the system

Constructor Detail

doubleSignal1dpadp2

public doubleSignal1dpadp2()
Create a signal with length 0


doubleSignal1dpadp2

public doubleSignal1dpadp2(int l)
Create a signal with length l


doubleSignal1dpadp2

public doubleSignal1dpadp2(double[] d)
                    throws invalid_data_exception
Create a signal form an array

Throws:
invalid_data_exception

doubleSignal1dpadp2

public doubleSignal1dpadp2(double[] d,
                           arraySelector1d s)
                    throws invalid_data_exception
Create a signal form a part of the given array

Throws:
invalid_data_exception

doubleSignal1dpadp2

public doubleSignal1dpadp2(doubleSignal1dpadp2 sig)
                    throws invalid_data_exception
Copy the given padded signal

Throws:
invalid_data_exception

doubleSignal1dpadp2

public doubleSignal1dpadp2(doubleSignal1d sig)
                    throws invalid_data_exception
Copy the given non padded signal

Throws:
invalid_data_exception
Method Detail

getpLength

public int getpLength()
Get length of the padded signal


pad

public void pad()
         throws invalid_data_exception
Pad the signal with zeros

Throws:
invalid_data_exception

getTail

public doubleSignal1d getTail()
                       throws invalid_data_exception
Return new signal with the tail of padded signal. This should be zero.

Throws:
invalid_data_exception

allocateMemory

protected void allocateMemory(int l)
Allocate memory

Overrides:
allocateMemory in class doubleSignal1d