Extensions
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Points | 2 | Populate points from two Vector. |
| Point2D | 1 | iterates a set of point from the given vector tuple |
| Top | 1 | Check of the elements of the vector inside the top n elements? |
| Take | 1 | Simplified (numPy) take method: 1) axis is always 0, 2) first argument is always a vector |
| rand | 2 | 获取一个指定长度的由目标区间范围内的随机数所构成的向量 |
| AsVector | 1 |
03 Members
Populate points from two Vector.
ValueTuple(Of Vector, Vector))iterates a set of point from the given vector tuple
| Name | Type | Description |
|---|---|---|
polygon | ValueTuple(Of Vector, Vector) | two vector should be in size equals |
a set of the point data in float data type
Int32)Check of the elements of the vector inside the top n elements?
this function will create the top n element index, and then check of the each vector elements that existed inside the top n element index or not?
| Name | Type | Description |
|---|---|---|
vector | Vector | - |
n | Int32 | - |
a logical vector that indicates that each corresponding element is inside the top n elements?
IEnumerable(Of Int32))Simplified (numPy) take method: 1) axis is always 0, 2) first argument is always a vector
| Name | Type | Description |
|---|---|---|
v | Vector | List of values |
indices | IEnumerable(Of Int32) | List of indices |
Vector containing elements from vector 1 at the indicies in vector 2
Int32, DoubleRange)默认返回目标长度的[0-1]之间的随机数向量
this method can be affected by the RandomExtensions.SetSeed() method.
| Name | Type | Description |
|---|---|---|
size | Int32 | the length of the result vector, or n lements |
DoubleRange, Int32)获取一个指定长度的由目标区间范围内的随机数所构成的向量
| Name | Type | Description |
|---|---|---|
range | DoubleRange | - |
size% | Int32 | 函数所返回的向量的长度 |
ValueTuple(Of Vector, Vector))DoubleRange, Int32)