Module net.finmath.lib
Class SimpleHistroricalSimulation
- java.lang.Object
-
- net.finmath.timeseries.models.parametric.SimpleHistroricalSimulation
-
- All Implemented Interfaces:
HistoricalSimulationModel
public class SimpleHistroricalSimulation extends Object implements HistoricalSimulationModel
Implementation of standard historical simulation.- Version:
- 1.0
- Author:
- Christian Fries, Norman Seeger
-
-
Constructor Summary
Constructors Constructor Description SimpleHistroricalSimulation(double[] values)SimpleHistroricalSimulation(double[] values, int windowIndexStart, int windowIndexEnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getBestParameters()Returns the parameters estimated for the given time series.Map<String,Object>getBestParameters(Map<String,Object> guess)Returns the parameters estimated for the given time series, using a parameter guess.HistoricalSimulationModelgetCloneWithWindow(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)
-
-
-
Method Detail
-
getCloneWithWindow
public HistoricalSimulationModel getCloneWithWindow(int windowIndexStart, int windowIndexEnd)
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
public Map<String,Object> 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
public Map<String,Object> getBestParameters(Map<String,Object> guess)
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.
-
-