Exception Types

This section lists the exception types that may be thrown by classes in Numerics.NET.

In addition to the exceptions listed below, many standard exceptions may also be thrown. For instance, when the index for a collection or variable is out of range, an ArgumentOutOfRangeException is thrown. When you request a model parameter before the model has been computed, an InvalidOperationException is thrown. This behavior is consistent with Microsoft's guidelines for throwing exceptions.

InsufficientDataException

This exception, which inherits from InvalidOperationException, is thrown when an operation requires more data than was supplied.

This type has two specific properties. The RequiredDataLength property specifies the number of observations that were required to perform the requested calculation. The ActualDataLength property specifies the number of observations that was supplied.

MissingValueException

This exception indicates that a missing value was encountered during a calculation.