net.finmath.equities.marketdata.VolatilityPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
package net.finmath.equities.marketdata;
import java.time.LocalDate;
/**
* Class to store and handle volatility market quote.
*
* @author Andreas Grotz
*/
public class VolatilityPoint {
private final LocalDate date;
private final double strike;
private final double volatility;
public VolatilityPoint(
final LocalDate date,
final double strike,
final double volatility)
{
this.date = date;
this.strike = strike;
this.volatility = volatility;
}
public LocalDate getDate() {
return date;
}
public double getStrike() {
return strike;
}
public double getVolatility() {
return volatility;
}
}