UNPKG

skipjacks

Version:

Client-Side JavaScript AI or Neural Net with CSide requests, training and output

21 lines (15 loc) 272 B
class Connection { constructor(weight) { this.weight = weight } setWeight(weight) { this.weight = weight; } getWeight() { return this.weight; } calcConnectionExit(input) { return input*this.weight; } } module.exports = { Connection };