public SpatialPoolerColumn(MiniColumn miniColumn) { MiniColumn = miniColumn; var rng = new Random(); double minBoost = 0.95; double maxBoost = 1.05; BoostFactor = rng.NextDouble(minBoost, maxBoost); }
public Cortex(CortexCreationOptions options) { Parameters = options; _MiniColumns = new List <MiniColumn>(); int numColumns = options.CortexShape.Product(); int numInputs = options.InputShape.Product(); for (int iColumn = 0; iColumn < numColumns; iColumn++) { var column = new MiniColumn(iColumn, numInputs, options.PotentialSynapsePercent, options.ConnectedPermanenceThreshold); _MiniColumns.Add(column); column.Region = this; } }