nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Core / HelperExtensions

HelperExtensions

Full name Microsoft.VisualBasic.Math.LinearAlgebra.HelperExtensions Assembly Microsoft.VisualBasic.Math.Core Members 8

01 Syntax

Microsoft.VisualBasic.Math.LinearAlgebra.HelperExtensions

02 Methods

NameOverloadsSummary
GetColumn 1 从二维数组中提取指定的一列
IsNaNImaginary 1 get a logical vector for indicates that which elements inside the given numeric vector is invalid number, like NaN, Inf
NAremove 1 removes all invalid number from the given numeric vector data
PrimitiveLinearEquation 1 返回一元一次方程
Tangent 1
jaccard_coeff 2 Compute jaccard coefficient between nearest-neighbor sets Weights of both i->j and j->i are recorded if they have intersection.
JaccardIndex 1

03 Members

method GetColumn #
GetColumn(Double[0:,0:], Int32)

从二维数组中提取指定的一列

Parameters
NameTypeDescription
matrixDouble[0:,0:]

二维矩阵

columnIndexInt32

要提取的列索引(0表示第一列)

Returns

包含该列数据的一维数组

method IsNaNImaginary #
IsNaNImaginary(IEnumerable(Of Double))

get a logical vector for indicates that which elements inside the given numeric vector is invalid number, like NaN, Inf

Parameters
NameTypeDescription
vIEnumerable(Of Double)

-

method NAremove #
NAremove(IEnumerable(Of Double))

removes all invalid number from the given numeric vector data

Parameters
NameTypeDescription
xIEnumerable(Of Double)

-

method PrimitiveLinearEquation #
PrimitiveLinearEquation(PointF, PointF)

返回一元一次方程

Parameters
NameTypeDescription
p1PointF

-

p2PointF

-

Returns

y=ax+b

method Tangent #
Tangent(SlideWindow(Of PointF))
Parameters
NameTypeDescription
slideWindowsSlideWindow(Of PointF)

Just contains two points.

method jaccard_coeff #
jaccard_coeff(Int32()(), Boolean)

Compute jaccard coefficient between nearest-neighbor sets

Weights of both i->j and j->i are recorded if they have intersection. In this case w(i->j) should be equal to w(j->i). In some case i->j has weights while j<-i has no intersections, only w(i->j) Is recorded. This Is determinded in code if(u>0). In this way, the undirected graph Is symmetrized by halfing the weight in code weights(r, 2) = u/(2.0*ncol - u)/2.

Parameters
NameTypeDescription
idxInt32()()

-

Returns

the weight value of this function will affects by the symmetrize parameters, when

  • symmetrize = TRUE(default), weight in value range (0, 0.5],
  • FALSE, weight in value range (0, 1].
method jaccard_coeff overload 2 #
jaccard_coeff(String(), String(), Boolean)

Evaluate the jaccard coeff between two dataset

Parameters
NameTypeDescription
aString()

-

bString()

-

symmetrizeBoolean

-

method JaccardIndex #
JaccardIndex(Double(), Double())
Remarks

use common non-zero index as intersect

Parameters
NameTypeDescription
xDouble()

-

yDouble()

-