Module net.finmath.lib
Class SimpleHistroricalSimulation
java.lang.Object
net.finmath.timeseries.models.parametric.SimpleHistroricalSimulation
- All Implemented Interfaces:
HistoricalSimulationModel
Implementation of standard historical simulation.
- Version:
- 1.0
- Author:
- Christian Fries, Norman Seeger
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleHistroricalSimulation(double[] values)SimpleHistroricalSimulation(double[] values, int windowIndexStart, int windowIndexEnd) -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameters estimated for the given time series.getBestParameters(Map<String,Object> guess)Returns the parameters estimated for the given time series, using a parameter guess.getCloneWithWindow(int windowIndexStart, int windowIndexEnd)Create a new model, using only a window of the times series.double[]getQuantilPredictions(int relAbsFlag, double[] quantiles)double[]getSzenarios(int relAbsFlag)
-
Constructor Details
-
SimpleHistroricalSimulation
public SimpleHistroricalSimulation(double[] values) -
SimpleHistroricalSimulation
public SimpleHistroricalSimulation(double[] values, int windowIndexStart, int windowIndexEnd)
-
-
Method Details
-
getCloneWithWindow
Description copied from interface:HistoricalSimulationModelCreate a new model, using only a window of the times series.- Specified by:
getCloneWithWindowin interfaceHistoricalSimulationModel- Parameters:
windowIndexStart- Index of the first element to be part of the new time series.windowIndexEnd- Index of the last element to be part of the new time series.- Returns:
- A new historical simulation using a different data window.
-
getSzenarios
public double[] getSzenarios(int relAbsFlag) -
getQuantilPredictions
public double[] getQuantilPredictions(int relAbsFlag, double[] quantiles) -
getBestParameters
Description copied from interface:HistoricalSimulationModelReturns the parameters estimated for the given time series.- Specified by:
getBestParametersin interfaceHistoricalSimulationModel- Returns:
- The parameters estimated for the given time series.
-
getBestParameters
Description copied from interface:HistoricalSimulationModelReturns the parameters estimated for the given time series, using a parameter guess.- Specified by:
getBestParametersin interfaceHistoricalSimulationModel- Parameters:
guess- A parameter guess.- Returns:
- The parameters estimated for the given time series.
-