net.finmath.smartcontract.valuation.marketdata.curvecalibration.CalibrationContextImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-smart-derivative-contract Show documentation
Show all versions of finmath-smart-derivative-contract Show documentation
Project to support the implementation a of smart derivative contract.
package net.finmath.smartcontract.valuation.marketdata.curvecalibration;
import java.time.LocalDate;
/**
* A calibration context in terms of a reference date and calibration info.
*
* @author Luca Del Re
* @author Peter Kohl-Landgraf
* @author Christian Fries
*/
public class CalibrationContextImpl implements CalibrationContext {
private final LocalDate referenceDate;
private final double accuracy;
public CalibrationContextImpl(final LocalDate referenceDate, final double accuracy) {
this.referenceDate = referenceDate;
this.accuracy = accuracy;
}
@Override
public LocalDate getReferenceDate() {
return referenceDate;
}
@Override
public double getAccuracy() {
return accuracy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy