nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning.CellularAutomaton / Simulator

Simulator

Full name Microsoft.VisualBasic.MachineLearning.CellularAutomaton.Simulator`1 Assembly Microsoft.VisualBasic.MachineLearning.CellularAutomaton Members 4

01 Syntax

Microsoft.VisualBasic.MachineLearning.CellularAutomaton.Simulator`1

02 Methods

NameOverloadsSummary
.ctor 1
Step 1 同步演化一个世代:先让所有细胞依据邻居“当前状态”计算下一代(Tick), 再统一提交(Commit),避免同世代内顺序更新污染。
CellData 1 获取指定行列处细胞所承载的个体数据,便于外部读取/写入状态(如渲染或鼠标绘制)。 越界时依据边界模式:有界返回 Nothing;环面返回环绕后的细胞。

03 Properties

NameOverloadsSummary
getCell 1 获取指定行列坐标处的细胞。坐标越界时依据边界模式处理: BoundaryMode.Bounded 返回 Nothing(视为无邻居); BoundaryMode.Toroidal 环绕缝合。

04 Members

method .ctor #
#ctor(Size, Func(Of `0), NeighborhoodType, BoundaryMode)
Parameters
NameTypeDescription
sizeSize

the grid size

activatorFunc(Of `0)

用于初始化每个细胞的工厂函数。

neighborTypeNeighborhoodType

邻居拓扑类型,默认冯·诺依曼型。

boundaryBoundaryMode

边界处理模式,默认有界。

method Step #
Step(Int32)

同步演化一个世代:先让所有细胞依据邻居“当前状态”计算下一代(Tick), 再统一提交(Commit),避免同世代内顺序更新污染。

Parameters
NameTypeDescription
itrInt32

-

method CellData #
CellData(Int32, Int32)

获取指定行列处细胞所承载的个体数据,便于外部读取/写入状态(如渲染或鼠标绘制)。 越界时依据边界模式:有界返回 Nothing;环面返回环绕后的细胞。

Parameters
NameTypeDescription
iInt32

行编号

jInt32

列编号

property getCell #
getCell(Int32, Int32)

获取指定行列坐标处的细胞。坐标越界时依据边界模式处理: BoundaryMode.Bounded 返回 Nothing(视为无邻居); BoundaryMode.Toroidal 环绕缝合。

Parameters
NameTypeDescription
iInt32

行编号

jInt32

列编号