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

net.finmath.timeseries.MarketData 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. Contact: [email protected].
 *
 * Created on 13.04.2014
 */

package net.finmath.timeseries;

import java.util.Calendar;
import java.util.Map;

/**
 * A set of raw data associated with a given date.
 *
 * @author Christian Fries
 * @version 1.0
 */
public class MarketData {

	private final Calendar			date;
	private final Map	valuesForSymbols;

	public MarketData(final Calendar date, final Map valuesForSymbols) {
		super();
		this.date				= date;
		this.valuesForSymbols	= valuesForSymbols;
	}

	public Calendar getDate() {
		return date;
	}

	public double getValue(final String symbol) {
		return valuesForSymbols.get(symbol);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy