All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.timeseries.TimeSeries Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

There is a newer version: 6.0.19
Show newest version
/*
 * (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