public void Result(ITables input) { for (int i = 0; i < coresInHeight; i++) { List <INeurons> temp = new List <INeurons>(); for (int j = 0; j < coresInWidth; j++) { List <List <INeurons> > coreArgs = new List <List <INeurons> >(); int maxl = 0, maxm = 0; for (int l = 0; l < coreHeight; l++) { List <INeurons> temp1 = new List <INeurons>(); for (int m = 0; m < coreWidth; m++) { if (input.NeuronsList[l + i * coreHeight][m + j * coreWidth].Result > input.NeuronsList[maxl][maxm].Result) { maxl = l + i * coreHeight; maxm = m + j * coreWidth; } } } NeuronsList[i][j].Result = input.NeuronsList[maxl][maxm].Result; temp.Add(NeuronsList[i][j]); } maxNeurons.Add(temp); } }
public AttachmentLoader( ITables tables, ITextHelpers textHelpers, IResourceCacheService resourceCacheService) { Ensure.Argument.IsNotNull(tables, nameof(tables)); Ensure.Argument.IsNotNull(textHelpers, nameof(textHelpers)); Ensure.Argument.IsNotNull(resourceCacheService, nameof(resourceCacheService)); this.textHelpers = textHelpers; this.resourceCacheService = resourceCacheService; this.attachmentsTable = tables.TableForType <CacheAttachment>(); }
public InternalUserLoader( ITables tables, ITextHelpers textHelpers, IResourceCacheService resourceCacheService) { Ensure.Argument.IsNotNull(tables, nameof(tables)); Ensure.Argument.IsNotNull(textHelpers, nameof(textHelpers)); Ensure.Argument.IsNotNull(resourceCacheService, nameof(resourceCacheService)); this.textHelpers = textHelpers; this.resourceCacheService = resourceCacheService; this.userTable = tables.TableForVersionedType <CacheUser>(); }
private void ExpandTables(ITables tables, TreeNode node) { if (HasBlankNode(node)) { foreach (ITable table in tables) { TreeNode n = new TreeNode(table.Name); n.Tag = new NodeData(NodeType.TABLE, table); n.SelectedImageIndex = n.ImageIndex = 3; node.Nodes.Add(n); n.Nodes.Add(this.BlankNode); } } }
public ResourceCacheService( ITables tables, ICaches caches, ITextHelpers textHelpers) { Ensure.Argument.IsNotNull(tables, nameof(tables)); Ensure.Argument.IsNotNull(caches, nameof(caches)); Ensure.Argument.IsNotNull(textHelpers, nameof(textHelpers)); this.tables = tables; this.caches = caches; this.textHelpers = textHelpers; // Create our collections. this.resources = new Dictionary <string, object>(); this.resourceLocks = new Dictionary <string, AsyncLock>(); }
override internal void LoadAll() { try { VistaDBDatabase db = (VistaDBDatabase)this.Table.Database; if (!db._FKsInLoad) { db._FKsInLoad = true; VistaDBForeignKeys fks = null; foreach (Table table in this.Table.Tables) { fks = table.ForeignKeys as VistaDBForeignKeys; } DataTable metaData = db._mh.LoadForeignKeys(this.dbRoot.ConnectionString, this.Table.Database.Name, this.Table.Name); PopulateArray(metaData); ITables tables = this.Table.Tables; for (int i = 0; i < tables.Count; i++) { ITable table = tables[i]; fks = table.ForeignKeys as VistaDBForeignKeys; fks.AddTheOtherHalf(); } db._FKsInLoad = false; } else { DataTable metaData = db._mh.LoadForeignKeys(this.dbRoot.ConnectionString, this.Table.Database.Name, this.Table.Name); PopulateArray(metaData); } } catch {} }
public InternalPostLoader( ITables tables, IPostLicenseLoader postLicenseLoader, ITextHelpers textHelpers, IResourceCacheService resourceCacheService, IInternalUserLoader internalUserLoader, IAttachmentLoader attachmentLoader) { Ensure.Argument.IsNotNull(tables, nameof(tables)); Ensure.Argument.IsNotNull(postLicenseLoader, nameof(postLicenseLoader)); Ensure.Argument.IsNotNull(textHelpers, nameof(textHelpers)); Ensure.Argument.IsNotNull(resourceCacheService, nameof(resourceCacheService)); Ensure.Argument.IsNotNull(internalUserLoader, nameof(internalUserLoader)); Ensure.Argument.IsNotNull(attachmentLoader, nameof(attachmentLoader)); this.textHelpers = textHelpers; this.resourceCacheService = resourceCacheService; this.internalUserLoader = internalUserLoader; this.attachmentLoader = attachmentLoader; this.postLicenseLoader = postLicenseLoader; this.postTable = tables.TableForVersionedType <CachePost>(); }
public void Result(ITables input) { for (int i = 0; i < coresInHeight; i++) { for (int j = 0; j < coresInWidth; j++) { double sum = 0; for (int l = 0; l < core.height; l++) { List <double> temp1 = new List <double>(); for (int m = 0; m < core.width; m++) { sum += core.weigth[l][m] * input.NeuronsList[l + i][m + j].Result; } NeuronsList[i][j].Sum = sum; NeuronsList[i][j].Result = sum > 0 ? sum : 0.01 * sum; } } } }
public TableRepository(ITables element) { this.element = element; }
private void ExpandTables(ITables tables, TreeNode node) { if(HasBlankNode(node)) { foreach(ITable table in tables) { TreeNode n = new TreeNode(table.Name); n.Tag = new NodeData(NodeType.TABLE, table); n.SelectedImageIndex = n.ImageIndex = 3; node.Nodes.Add(n); n.Nodes.Add(this.BlankNode); } } }
public TablesAPIController(ApplicationDbContext context, ITables tablesRepository) { _context = context; _tablesRepository = tablesRepository; }
public void Result(ITables input) { throw new NotImplementedException(); }
public VenueController(IDataService <Venue> venueService, IUserService userService, ITables tablesServices) { _venueService = venueService; _userService = userService; _tableService = tablesServices; }