Table of Contents

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 string

The 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 int

The segment length to validate.

minSegmentLength int

The minimum valid segment length (default is 1).

message string

Custom message for the exception.

Exceptions

SegmentLengthException

Thrown when the segment length is less than 1.