Class Swaption.ResolvedExerciseData
java.lang.Object
net.finmath.finitedifference.interestrate.products.Swaption.ResolvedExerciseData
- Enclosing class:
Swaption
Container for resolved exercise information.
- Author:
- Alessandro Gnoatto
-
Method Summary
Modifier and TypeMethodDescriptionintfindExerciseIndex(double time) Returns the resolved exercise index for the given time.doublegetExerciseTime(int index) Returns the exercise time at the given index.double[]Returns the resolved exercise times.doubleReturns the last exercise time.intReturns the number of resolved exercise opportunities.intgetScheduleIndex(int index) Returns the schedule index at the given index.int[]Returns the resolved schedule indices.
-
Method Details
-
getExerciseTimes
public double[] getExerciseTimes()Returns the resolved exercise times.- Returns:
- The resolved exercise times.
-
getScheduleIndices
public int[] getScheduleIndices()Returns the resolved schedule indices.- Returns:
- The resolved schedule indices.
-
getNumberOfExerciseTimes
public int getNumberOfExerciseTimes()Returns the number of resolved exercise opportunities.- Returns:
- The number of resolved exercise opportunities.
-
getExerciseTime
public double getExerciseTime(int index) Returns the exercise time at the given index.- Parameters:
index- The index.- Returns:
- The exercise time.
-
getScheduleIndex
public int getScheduleIndex(int index) Returns the schedule index at the given index.- Parameters:
index- The index.- Returns:
- The schedule index.
-
getLastExerciseTime
public double getLastExerciseTime()Returns the last exercise time.- Returns:
- The last exercise time.
-
findExerciseIndex
public int findExerciseIndex(double time) Returns the resolved exercise index for the given time.- Parameters:
time- The running time.- Returns:
- The resolved exercise index.
-