在这个模块之中,涉及到SparseVector的所有函数都是应用于处理非常大的系统而构建的
GeneticHelper
01 Syntax
Microsoft.VisualBasic.MachineLearning.Darwinism.GAF.Helper.GeneticHelper
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Mutate | 1 | Returns clone of current chromosome, which is mutated a bit |
| ByteMutate | 1 | 这个函数不是数值变化,而是位值的变化,原来的某位数值为1,则突变后为零,原来某位数值为0,则突变之后为1 |
| Crossover | 1 | Returns list of siblings Siblings are actually new chromosomes, created using any of crossover strategy (两个向量的长度必须要一致, 输入的两个数组参数会被同时修改值) |
| Crossover | 1 | Returns list of siblings Siblings are actually new chromosomes, created using any of crossover strategy (两个向量的长度必须要一致, 输入的两个数组参数会被同时修改值) |
03 Members
Mutate(
Double(), Random, Int32, Double)Returns clone of current chromosome, which is mutated a bit
Remarks
在进行突变的时候应该是按照给定的范围来进行突变的
Parameters
| Name | Type | Description |
|---|---|---|
v# | Double() | - |
random | Random | - |
index | Int32 |
|
ByteMutate(
Int32(), Random)这个函数不是数值变化,而是位值的变化,原来的某位数值为1,则突变后为零,原来某位数值为0,则突变之后为1
Parameters
| Name | Type | Description |
|---|---|---|
v% | Int32() | - |
random | Random | - |
Crossover``1(
Random, ``0(), ``0())Returns list of siblings Siblings are actually new chromosomes, created using any of crossover strategy
(两个向量的长度必须要一致, 输入的两个数组参数会被同时修改值)
Remarks
the size of v1 and v2 should be equals to each other!
Parameters
| Name | Type | Description |
|---|---|---|
random | Random | - |
v1 | ``0() | - |
v2 | ``0() | - |
Crossover(
Random, HalfVector, HalfVector)Returns list of siblings Siblings are actually new chromosomes, created using any of crossover strategy
(两个向量的长度必须要一致, 输入的两个数组参数会被同时修改值)
Parameters
| Name | Type | Description |
|---|---|---|
random | Random | - |
v1# | HalfVector | - |
v2# | HalfVector | - |