Class Joint1DPathCorrection
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.service.impl.Joint1DPathCorrection
- All Implemented Interfaces:
PathCalibrationService
@Service
@Transactional
public class Joint1DPathCorrection
extends Object
implements PathCalibrationService
-
Constructor Summary
ConstructorDescriptionJoint1DPathCorrection
(SpectraCalculator spectraCalc, PathCalibrationMeasurementService pathCalibrationMeasurementService) -
Method Summary
Modifier and TypeMethodDescriptiondouble
costFunction
(Map<Event, Map<Station, SpectraMeasurement>> evidStaData, Map<Event, Map<Station, Double>> dataMap, Map<Event, Map<Station, Double>> distanceMap, Map<Station, Integer> stationIdxMap, FrequencyBand frequencyBand, double[] optimizationParams) cost function for use in optimization code.measurePathCorrections
(Map<FrequencyBand, List<SpectraMeasurement>> dataByFreqBand, Map<FrequencyBand, SharedFrequencyBandParameters> frequencyBandParameters, VelocityConfiguration velConf) Measure path corrections using a joint inversion of a 1d model for all data.
-
Constructor Details
-
Joint1DPathCorrection
@Autowired public Joint1DPathCorrection(SpectraCalculator spectraCalc, PathCalibrationMeasurementService pathCalibrationMeasurementService)
-
-
Method Details
-
measurePathCorrections
public Map<FrequencyBand,SharedFrequencyBandParameters> measurePathCorrections(Map<FrequencyBand, List<SpectraMeasurement>> dataByFreqBand, Map<FrequencyBand, throws InterruptedExceptionSharedFrequencyBandParameters> frequencyBandParameters, VelocityConfiguration velConf) Measure path corrections using a joint inversion of a 1d model for all data. Model being used is an Extended Street-Herrmann spreading model that has a two distance crossovers.- Specified by:
measurePathCorrections
in interfacePathCalibrationService
- Parameters:
dataByFreqBand
- the data by frequency bandfrequencyBandParameters
- the shared frequency band parametersvelConf
- the velocity configuration- Returns:
- the map of new shared frequency band parameters with the inverted path parameters populated, binned by frequency band
- Throws:
InterruptedException
- the interrupted exception
-
costFunction
public double costFunction(Map<Event, Map<Station, SpectraMeasurement>> evidStaData, Map<Event, Map<Station, Double>> dataMap, Map<Event, Map<Station, Double>> distanceMap, Map<Station, Integer> stationIdxMap, FrequencyBand frequencyBand, double[] optimizationParams) cost function for use in optimization code. Extended Street-Herrmann spreading model, no Q.
-