Skip to content

@ralphschuler.neuronal network.Neuron

github-actions edited this page Nov 26, 2023 · 14 revisions

Class: Neuron<T>

@ralphschuler/neuronal-network.Neuron

Type parameters

Name
T

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Neuron<T>(bias): Neuron<T>

Type parameters

Name
T

Parameters

Name Type
bias number

Returns

Neuron<T>

Defined in

index.ts:11

Properties

bias

Private bias: number

Defined in

index.ts:9


incomingConnections

Private incomingConnections: Connection<T>[] = []

Defined in

index.ts:7


outgoingConnections

Private outgoingConnections: Connection<T>[] = []

Defined in

index.ts:8

Methods

activate

activate(input): T

Parameters

Name Type
input T

Returns

T

Defined in

index.ts:20


connect

connect(neuron, weight): void

Parameters

Name Type
neuron Neuron<T>
weight number

Returns

void

Defined in

index.ts:15


propagate

propagate(error): void

Parameters

Name Type
error T

Returns

void

Defined in

index.ts:28


toObject

toObject(): object

Returns

object

Defined in

index.ts:34

Typescript Libraries

Modules

Namespaces

Clone this wiki locally