net.finmath.timeseries.TimeSeries 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.
/*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: [email protected].
*
* Created on 13.04.2014
*/
package net.finmath.timeseries;
import java.util.Calendar;
import java.util.Map;
/**
* @author Christian Fries
*
*/
public class TimeSeries {
private Map dataForDates;
/**
* Create a time series.
*
* @param dataForDates A map from dates to MarketData objects.
*/
public TimeSeries(Map dataForDates) {
super();
this.dataForDates = dataForDates;
}
public MarketData getEntry(Calendar date) {
return dataForDates.get(date);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy