Class SpectraRatioPairOperator
java.lang.Object
gov.llnl.gnem.apps.coda.spectra.model.domain.util.SpectraRatioPairOperator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
double
int
double[]
int
double[]
double[]
int
int
getRatio()
double[]
getSubArray
(double[] originalArray, int startIdx, int endIdx) Returns a section of the original array starting from the start index to the end index.protected void
handleRatioChanged
(Double change) int
hashCode()
boolean
boolean
void
Will reset the numerator and denominator start and end cut times to be the peak and f-marker.void
setCutSegmentLength
(int cutSegmentLength) void
setCutTimeLength
(double cutTimeLength) void
setDenomAvg
(Double denomAvg) void
setDenomEndCutIdx
(int denomEndCutIdx) void
setDenomEndCutSec
(Double denomEndCutSec) void
setDenomFMarkerSec
(Double denomFMarkerSec) void
setDenomPeakSec
(Double denomPeakSec) void
setDenomStartCutIdx
(int denomStartCutIdx) void
setDenomStartCutSec
(Double denomStartCutSec) void
setDenomWaveEndSec
(Double denomWaveEndSec) void
setDenomWaveform
(Waveform denomWaveform) void
setDenomWaveStartSec
(Double denomWaveStartSec) void
setDiffAvg
(Double diffAvg) void
setDiffSegment
(double[] diffSegment) void
setLoadedFromJson
(boolean isloadedFromJson) void
setNumerAvg
(Double numerAvg) void
setNumerEndCutIdx
(int numerEndCutIdx) void
setNumerEndCutSec
(Double numerEndCutSec) void
setNumerFMarkerSec
(Double numerFMarkerSec) void
setNumerPeakSec
(Double numerPeakSec) void
setNumerStartCutIdx
(int numerStartCutIdx) void
setNumerStartCutSec
(Double numerStartCutSec) void
setNumerWaveEndSec
(Double numerWaveEndSec) void
setNumerWaveform
(Waveform numerWaveform) void
setNumerWaveStartSec
(Double numerWaveStartSec) 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.void
setRatioValueChangeListener
(PropertyChangeListener ratioValueChange) void
setUserEdited
(boolean userEdited) toString()
void
updateCutTimesAndRecalculateDiff
(int numeratorStartCutIdx, int denominatorStartCutIdx, int numeratorEndCutIdx, int denominatorEndCutIdx) void
-
Constructor Details
-
SpectraRatioPairOperator
-
-
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
-
getEventPair
-
updateCutTimesAndRecalculateDiff
public void updateCutTimesAndRecalculateDiff(int numeratorStartCutIdx, int denominatorStartCutIdx, int numeratorEndCutIdx, int denominatorEndCutIdx) -
updateDiffSegment
public void updateDiffSegment() -
setRatioValueChangeListener
-
handleRatioChanged
-
getFrequency
-
getNumeratorEventOriginTime
-
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() -
equals
-
isLoadedFromJson
public boolean isLoadedFromJson() -
setLoadedFromJson
public void setLoadedFromJson(boolean isloadedFromJson) -
getDiffAvg
-
setDiffAvg
-
getNumerAvg
-
setNumerAvg
-
getDenomAvg
-
setDenomAvg
-
getNumerWaveform
-
setNumerWaveform
-
getDenomWaveform
-
setDenomWaveform
-
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
-
setNumerWaveStartSec
-
getDenomWaveStartSec
-
setDenomWaveStartSec
-
getNumerWaveEndSec
-
setNumerWaveEndSec
-
getDenomWaveEndSec
-
setDenomWaveEndSec
-
getNumerPeakSec
-
setNumerPeakSec
-
getDenomPeakSec
-
setDenomPeakSec
-
getNumerFMarkerSec
-
setNumerFMarkerSec
-
getDenomFMarkerSec
-
setDenomFMarkerSec
-
getNumerStartCutSec
-
setNumerStartCutSec
-
getDenomStartCutSec
-
setDenomStartCutSec
-
getNumerEndCutSec
-
setNumerEndCutSec
-
getDenomEndCutSec
-
setDenomEndCutSec
-
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
-
getRatio
-