net.finmath.stochastic.RandomVariableAccumulator 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.
The newest version!
/*
* (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
*
* Created on 29.06.2013
*/
package net.finmath.stochastic;
/**
* The interface implemented by a mutable random variable accumulator.
* An object of this class accumulates other random variables.
* The classical application is the accumulation of discounted cash flows.
*
* @author Christian Fries
* @version 1.3
*/
public interface RandomVariableAccumulator extends RandomVariable {
void accumulate(RandomVariable randomVariable);
void accumulate(double time, RandomVariable randomVariable);
RandomVariable get();
RandomVariable get(double fromTime, double toTime);
}