Class SegmentLengthException
- Namespace
- SignalSharp.CostFunctions.Exceptions
- Assembly
- SignalSharp.dll
Exception thrown when the segment length of the RBF kernel is invalid.
public class SegmentLengthException : Exception, ISerializable
- Inheritance
-
SegmentLengthException
- Implements
- Inherited Members
Constructors
SegmentLengthException(string?)
Exception thrown when the segment length of the RBF kernel is invalid.
public SegmentLengthException(string? message)
Parameters
messagestringThe exception message.
Methods
ThrowIfInvalid(int, int, string?)
Throws an exception if the segment length is invalid.
public static void ThrowIfInvalid(int segmentLength, int minSegmentLength = 1, string? message = null)
Parameters
segmentLengthintThe segment length to validate.
minSegmentLengthintThe minimum valid segment length (default is 1).
messagestringCustom message for the exception.
Exceptions
- SegmentLengthException
Thrown when the segment length is less than 1.