Class SpectraRatioPairOperator

java.lang.Object
gov.llnl.gnem.apps.coda.spectra.model.domain.util.SpectraRatioPairOperator

public class SpectraRatioPairOperator extends Object
  • Constructor Details

  • Method Details

    • setPeakAndFMarkerCutTimes

      public void setPeakAndFMarkerCutTimes(Double numerPeakSec, Double denomPeakSec, Double numerFMarkerSec, Double denomFMarkerSec)
      Initializes the start and end cut times to be the peak and f-marker times.
      Parameters:
      numerPeakSec - The time in seconds at which the peak of the numerator wave is.
      denomPeakSec - The time in seconds at which the peak of the denominator wave is.
      numerFMarkerSec - The time in seconds at which the f-marker is for the numerator.
      denomFMarkerSec - The time in seconds at which the f-marker is for the denominator.
    • resetToPeakAndFMarkerCut

      public void resetToPeakAndFMarkerCut()
      Will reset the numerator and denominator start and end cut times to be the peak and f-marker. If the numerator or denominator waveforms are null, then this is a nop.
    • getStation

      public Station getStation()
    • getEventPair

      public EventPair getEventPair()
    • updateCutTimesAndRecalculateDiff

      public void updateCutTimesAndRecalculateDiff(int numeratorStartCutIdx, int denominatorStartCutIdx, int numeratorEndCutIdx, int denominatorEndCutIdx)
    • updateDiffSegment

      public void updateDiffSegment()
    • setRatioValueChangeListener

      public void setRatioValueChangeListener(PropertyChangeListener ratioValueChange)
    • handleRatioChanged

      protected void handleRatioChanged(Double change)
    • getFrequency

      public FrequencyBand getFrequency()
    • getNumeratorEventOriginTime

      public Date getNumeratorEventOriginTime()
    • getDenominatorEventOriginTime

      public Date getDenominatorEventOriginTime()
    • getSubArray

      public double[] getSubArray(double[] originalArray, int startIdx, int endIdx)
      Returns a section of the original array starting from the start index to the end index. If the indexes are invalid, it will simply return the originalArray.
      Parameters:
      originalArray -
      startIdx -
      endIdx -
      Returns:
    • getNumeratorCutSegment

      public double[] getNumeratorCutSegment()
    • getDenominatorCutSegment

      public double[] getDenominatorCutSegment()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isLoadedFromJson

      public boolean isLoadedFromJson()
    • setLoadedFromJson

      public void setLoadedFromJson(boolean isloadedFromJson)
    • getDiffAvg

      public Double getDiffAvg()
    • setDiffAvg

      public void setDiffAvg(Double diffAvg)
    • getNumerAvg

      public Double getNumerAvg()
    • setNumerAvg

      public void setNumerAvg(Double numerAvg)
    • getDenomAvg

      public Double getDenomAvg()
    • setDenomAvg

      public void setDenomAvg(Double denomAvg)
    • getNumerWaveform

      public Waveform getNumerWaveform()
    • setNumerWaveform

      public void setNumerWaveform(Waveform numerWaveform)
    • getDenomWaveform

      public Waveform getDenomWaveform()
    • setDenomWaveform

      public void setDenomWaveform(Waveform denomWaveform)
    • getCutSegmentLength

      public int getCutSegmentLength()
    • setCutSegmentLength

      public void setCutSegmentLength(int cutSegmentLength)
    • getCutTimeLength

      public double getCutTimeLength()
    • setCutTimeLength

      public void setCutTimeLength(double cutTimeLength)
    • getDiffSegment

      public double[] getDiffSegment()
    • setDiffSegment

      public void setDiffSegment(double[] diffSegment)
    • getNumerWaveStartSec

      public Double getNumerWaveStartSec()
    • setNumerWaveStartSec

      public void setNumerWaveStartSec(Double numerWaveStartSec)
    • getDenomWaveStartSec

      public Double getDenomWaveStartSec()
    • setDenomWaveStartSec

      public void setDenomWaveStartSec(Double denomWaveStartSec)
    • getNumerWaveEndSec

      public Double getNumerWaveEndSec()
    • setNumerWaveEndSec

      public void setNumerWaveEndSec(Double numerWaveEndSec)
    • getDenomWaveEndSec

      public Double getDenomWaveEndSec()
    • setDenomWaveEndSec

      public void setDenomWaveEndSec(Double denomWaveEndSec)
    • getNumerPeakSec

      public Double getNumerPeakSec()
    • setNumerPeakSec

      public void setNumerPeakSec(Double numerPeakSec)
    • getDenomPeakSec

      public Double getDenomPeakSec()
    • setDenomPeakSec

      public void setDenomPeakSec(Double denomPeakSec)
    • getNumerFMarkerSec

      public Double getNumerFMarkerSec()
    • setNumerFMarkerSec

      public void setNumerFMarkerSec(Double numerFMarkerSec)
    • getDenomFMarkerSec

      public Double getDenomFMarkerSec()
    • setDenomFMarkerSec

      public void setDenomFMarkerSec(Double denomFMarkerSec)
    • getNumerStartCutSec

      public Double getNumerStartCutSec()
    • setNumerStartCutSec

      public void setNumerStartCutSec(Double numerStartCutSec)
    • getDenomStartCutSec

      public Double getDenomStartCutSec()
    • setDenomStartCutSec

      public void setDenomStartCutSec(Double denomStartCutSec)
    • getNumerEndCutSec

      public Double getNumerEndCutSec()
    • setNumerEndCutSec

      public void setNumerEndCutSec(Double numerEndCutSec)
    • getDenomEndCutSec

      public Double getDenomEndCutSec()
    • setDenomEndCutSec

      public void setDenomEndCutSec(Double denomEndCutSec)
    • getNumerStartCutIdx

      public int getNumerStartCutIdx()
    • setNumerStartCutIdx

      public void setNumerStartCutIdx(int numerStartCutIdx)
    • getDenomStartCutIdx

      public int getDenomStartCutIdx()
    • setDenomStartCutIdx

      public void setDenomStartCutIdx(int denomStartCutIdx)
    • getNumerEndCutIdx

      public int getNumerEndCutIdx()
    • setNumerEndCutIdx

      public void setNumerEndCutIdx(int numerEndCutIdx)
    • getDenomEndCutIdx

      public int getDenomEndCutIdx()
    • setDenomEndCutIdx

      public void setDenomEndCutIdx(int denomEndCutIdx)
    • isUserEdited

      public boolean isUserEdited()
    • setUserEdited

      public void setUserEdited(boolean userEdited)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRatio

      public SpectraRatioPairDetails getRatio()