util.wavelet
Class SignalAndCoordinate

java.lang.Object
  extended by util.wavelet.SimpleSignal
      extended by util.wavelet.Signal
          extended by util.wavelet.SignalAndCoordinate

public class SignalAndCoordinate
extends Signal

A wrapper for an array of signal values and their coordinate.

Author:
John Talbot

Constructor Summary
SignalAndCoordinate(float[] value, float[] noise, float noiseMultiplier, List<Float> coordinates)
          Construct using the given signal array, noise array and coordinate positions.
 
Method Summary
 float getCoordinate(int position)
          Get the x coordinate for the given position.
 float getValueAtCoordinate(float coordinate)
           
 
Methods inherited from class util.wavelet.Signal
getNoise, getNoise, getNoiseMultiplier, isAboveNoise, isBelowNoise, setNoise, setNoise
 
Methods inherited from class util.wavelet.SimpleSignal
add, add, convolve, estimateNumberOfScales, getBoundaryCondition, getChirp, getDirac, getGaussianDeviate, getGaussianNoise, getScalingFunction, getSubset, getValue, getWavelet, multiply, multiply, multiply, multiply, setBoundaryCondition, setValue, size, square, square, subtract, subtract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignalAndCoordinate

public SignalAndCoordinate(float[] value,
                           float[] noise,
                           float noiseMultiplier,
                           List<Float> coordinates)
Construct using the given signal array, noise array and coordinate positions.

Parameters:
value - signal value array
noise - the noise array
noiseMultiplier - noise multiplier (when sigmas = 3.0 confidence = 99.9 percent)
coordinates - x positions
Method Detail

getCoordinate

public float getCoordinate(int position)
Get the x coordinate for the given position. The coordinate is read-only.

Parameters:
position - the position for which the coordinate is sought
Returns:
the x coordinate at the given position

getValueAtCoordinate

public float getValueAtCoordinate(float coordinate)