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
message
stringThe 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
segmentLength
intThe segment length to validate.
minSegmentLength
intThe minimum valid segment length (default is 1).
message
stringCustom message for the exception.
Exceptions
- SegmentLengthException
Thrown when the segment length is less than 1.