Class HistoricalRatesAnalysis
The statistical analysis of historical rates, run at construction: the relative changes of the indexes' fixings between successive dates, added to the statistics it is given (HistoricalRatesAnalysis(SequenceStatistics, Date, Date, Period, ReadOnlySpan<InterestRateIndex>, EvaluationContext)).
public sealed class HistoricalRatesAnalysis
- Inheritance
-
HistoricalRatesAnalysis
- Inherited Members
Remarks
Immutable once built: it holds the caller's statistics, filled by its constructor, as QuantLib's holds the shared pointer it is given.
Constructors
HistoricalRatesAnalysis(SequenceStatistics, Date, Date, Period, ReadOnlySpan<InterestRateIndex>, EvaluationContext)
Initializes a new instance of the HistoricalRatesAnalysis class and runs the analysis.
public HistoricalRatesAnalysis(SequenceStatistics stats, Date startDate, Date endDate, Period step, ReadOnlySpan<InterestRateIndex> indexes, EvaluationContext context)
Parameters
statsSequenceStatisticsThe statistics filled, and held.
startDateDateThe start date.
endDateDateThe end date.
stepPeriodThe step between dates, positive.
indexesReadOnlySpan<InterestRateIndex>The indexes, at least one.
contextEvaluationContextThe evaluation context, holding the fixings.
Exceptions
- ArgumentException
No index is given, or the step isn't positive.
Properties
SkippedDates
Gets the dates skipped.
public ImmutableArray<Date> SkippedDates { get; }
Property Value
SkippedDatesErrorMessage
Gets each skipped date's error message.
public ImmutableArray<string> SkippedDatesErrorMessage { get; }
Property Value
Stats
Gets the statistics given, filled by the analysis.
public SequenceStatistics Stats { get; }