nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning / SVMExtensions

SVMExtensions

Full name Microsoft.VisualBasic.MachineLearning.SVM.SVMExtensions Assembly Microsoft.VisualBasic.MachineLearning Members 5

01 Syntax

Microsoft.VisualBasic.MachineLearning.SVM.SVMExtensions

02 Methods

NameOverloadsSummary
Truncate 1 Truncate the floating point value to a precision of 1e-6, so that the floating point calculation error can be ignored in the equality comparison.
IsEqual 2 Compare the two arrays element by element.
IsEqual 2 Compare the two Double arrays element by element, the values are truncated by the SVMExtensions.Truncate()) function before the comparison.

03 Members

method Truncate #
Truncate(Double)

Truncate the floating point value to a precision of 1e-6, so that the floating point calculation error can be ignored in the equality comparison.

Parameters
NameTypeDescription
xDouble

The value that will be truncated.

Returns

The truncated value.

method IsEqual overload 2 #
IsEqual``1(``0()(), ``0()())

Compare the two jagged arrays element by element.

Type Parameters
NameDescription
T

The element type of the arrays.

Parameters
NameTypeDescription
lhs``0()()

The first array.

rhs``0()()

The second array.

Returns

True when the two arrays have the same size and all of their elements are equal to each other.

method IsEqual #
IsEqual``1(``0(), ``0())

Compare the two arrays element by element.

Type Parameters
NameDescription
T

The element type of the arrays.

Parameters
NameTypeDescription
lhs``0()

The first array.

rhs``0()

The second array.

Returns

True when the two arrays have the same size and all of their elements are equal to each other.

method IsEqual #
IsEqual(Double(), Double())

Compare the two Double arrays element by element, the values are truncated by the SVMExtensions.Truncate() function before the comparison.

Parameters
NameTypeDescription
lhsDouble()

The first array.

rhsDouble()

The second array.

Returns

True when the two arrays have the same size and all of their truncated elements are equal to each other.

method IsEqual overload 2 #
IsEqual(Double()(), Double()())

Compare the two jagged Double arrays element by element, the values are truncated before the comparison.

Parameters
NameTypeDescription
lhsDouble()()

The first array.

rhsDouble()()

The second array.

Returns

True when the two arrays have the same size and all of their truncated elements are equal to each other.