Class CalibrationCurveFitter
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.service.impl.processing.CalibrationCurveFitter
Calculate the coda decay parameters (Mayeda, 2003)
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfitAllBeta
(Map<FrequencyBand, List<ShapeMeasurement>> betaDistancePairsFreqMap, Map<FrequencyBand, SharedFrequencyBandParameters> freqBandMap, ShapeFitterConstraints constraints) Attempts to perform a non-linear optimization over a set of [Beta,Distance] values derived from betaDistancePairsFreqMap.fitAllGamma
(Map<FrequencyBand, List<ShapeMeasurement>> gammaDistancePairsFreqMap, Map<FrequencyBand, SharedFrequencyBandParameters> freqBandMap, ShapeFitterConstraints constraints) Attempts to perform a non-linear optimization over a set of [Gamma,Distance] values derived from gammaDistancePairsFreqMap.fitAllVelocity
(Map<FrequencyBand, List<PeakVelocityMeasurement>> velocityDistancePairsFreqMap, Map<FrequencyBand, SharedFrequencyBandParameters> freqBandMap, ShapeFitterConstraints constraints) Attempts to perform a non-linear optimization over a set of [Velocity,Distance] values derived from velocityDistancePairsFreqMap.fitCodaCMAES
(float[] segment, double sampleRate, ShapeFitterConstraints constraints, double startTime) fitCodaCMAES
(float[] segment, double sampleRate, ShapeFitterConstraints constraints, double startTime, boolean autoPickingEnabled) fitCurveLengthByDivergenceFromSynthetic
(ShapeMeasurement measurement, SyntheticCoda synthetic, double endPickTime, ShapeFitterConstraints constraints, double minLengthTime) double[]
gridSearchCodaB
(List<Map.Entry<Double, Double>> betaDistancePairs, ShapeFitterConstraints constraints) double[]
gridSearchCodaBApacheCMAES
(List<Map.Entry<Double, Double>> betaDistancePairs, ShapeFitterConstraints constraints) double[]
gridSearchCodaG
(List<Map.Entry<Double, Double>> gammaDistancePairs, ShapeFitterConstraints constraints) double[]
gridSearchCodaGApacheCMAES
(List<Map.Entry<Double, Double>> gammaDistancePairs, ShapeFitterConstraints constraints) double[]
gridSearchCodaV
(List<Map.Entry<Double, Double>> velocityDistancePairs, ShapeFitterConstraints constraints) double[]
gridSearchCodaVApacheCMAES
(List<Map.Entry<Double, Double>> velocityDistancePairs, ShapeFitterConstraints constraints)
-
Constructor Details
-
CalibrationCurveFitter
public CalibrationCurveFitter()
-
-
Method Details
-
fitCurveLengthByDivergenceFromSynthetic
public EnvelopeFit fitCurveLengthByDivergenceFromSynthetic(ShapeMeasurement measurement, SyntheticCoda synthetic, double endPickTime, ShapeFitterConstraints constraints, double minLengthTime) -
fitCodaCMAES
public EnvelopeFit fitCodaCMAES(float[] segment, double sampleRate, ShapeFitterConstraints constraints, double startTime) -
fitCodaCMAES
public EnvelopeFit fitCodaCMAES(float[] segment, double sampleRate, ShapeFitterConstraints constraints, double startTime, boolean autoPickingEnabled) -
gridSearchCodaVApacheCMAES
public double[] gridSearchCodaVApacheCMAES(List<Map.Entry<Double, Double>> velocityDistancePairs, ShapeFitterConstraints constraints) -
gridSearchCodaBApacheCMAES
public double[] gridSearchCodaBApacheCMAES(List<Map.Entry<Double, Double>> betaDistancePairs, ShapeFitterConstraints constraints) -
gridSearchCodaGApacheCMAES
public double[] gridSearchCodaGApacheCMAES(List<Map.Entry<Double, Double>> gammaDistancePairs, ShapeFitterConstraints constraints) -
gridSearchCodaV
public double[] gridSearchCodaV(List<Map.Entry<Double, Double>> velocityDistancePairs, ShapeFitterConstraints constraints) -
gridSearchCodaB
public double[] gridSearchCodaB(List<Map.Entry<Double, Double>> betaDistancePairs, ShapeFitterConstraints constraints) -
gridSearchCodaG
public double[] gridSearchCodaG(List<Map.Entry<Double, Double>> gammaDistancePairs, ShapeFitterConstraints constraints) -
fitAllVelocity
public Map<FrequencyBand,SharedFrequencyBandParameters> fitAllVelocity(Map<FrequencyBand, List<PeakVelocityMeasurement>> velocityDistancePairsFreqMap, Map<FrequencyBand, SharedFrequencyBandParameters> freqBandMap, ShapeFitterConstraints constraints) Attempts to perform a non-linear optimization over a set of [Velocity,Distance] values derived from velocityDistancePairsFreqMap. This method will skip over input Frequency Bands that have no matching entry in freqBandMap as the output Velocity0-2 values are updated in place on the SharedFrequencyBandParameters object.- Parameters:
velocityDistancePairsFreqMap
-freqBandMap
-- Returns:
- Map<FrequencyBand, SharedFrequencyBandParameters> with updated Velocity 0-2 values given the best available model fit for the input velocityDistancePairsFreqMap
-
fitAllBeta
public Map<FrequencyBand,SharedFrequencyBandParameters> fitAllBeta(Map<FrequencyBand, List<ShapeMeasurement>> betaDistancePairsFreqMap, Map<FrequencyBand, SharedFrequencyBandParameters> freqBandMap, ShapeFitterConstraints constraints) Attempts to perform a non-linear optimization over a set of [Beta,Distance] values derived from betaDistancePairsFreqMap. This method will skip over input Frequency Bands that have no matching entry in freqBandMap as the output Beta0-2 values are updated in place on the SharedFrequencyBandParameters object.- Parameters:
betaDistancePairsFreqMap
-freqBandMap
-- Returns:
- Map<FrequencyBand, SharedFrequencyBandParameters> with updated Beta 0-2 values given the best available model fit for the input betaDistancePairsFreqMap
-
fitAllGamma
public Map<FrequencyBand,SharedFrequencyBandParameters> fitAllGamma(Map<FrequencyBand, List<ShapeMeasurement>> gammaDistancePairsFreqMap, Map<FrequencyBand, SharedFrequencyBandParameters> freqBandMap, ShapeFitterConstraints constraints) Attempts to perform a non-linear optimization over a set of [Gamma,Distance] values derived from gammaDistancePairsFreqMap. This method will skip over input Frequency Bands that have no matching entry in freqBandMap as the output Gamma0-2 values are updated in place on the SharedFrequencyBandParameters object.- Parameters:
gammaDistancePairsFreqMap
-freqBandMap
-- Returns:
- Map<FrequencyBand, SharedFrequencyBandParameters> with updated Gamma 0-2 values given the best available model fit for the input gammaDistancePairsFreqMap
-