C# Class Nn.Neuron

Show file Open project: fabelier/tansegrity-game Class Usage Examples

Public Methods

Method Description
Neuron ( ) : UnityEngine
Neuron ( List inputs, System rand ) : UnityEngine
Neuron ( List weight, List input, System rand, bool bias = true ) : UnityEngine
Neuron ( List weight, System rand, bool bias = true ) : UnityEngine
Neuron ( Neuron N ) : UnityEngine
Neuron ( int n_weights, System rand, bool bias = true ) : UnityEngine
activation ( double val, double lambda = 0.2 ) : double
combinaison ( ) : double
fire ( ) : double
getAllInput ( ) : List
getBias ( ) : double
getInput ( int position ) : double
getNbWeigths ( ) : int
getWeigth ( int position ) : double
setBias ( double bias ) : void
setInput ( Input input, int position ) : void
setInput ( double input, int position ) : void
setWeight ( double weights, int position ) : void
toString ( bool debug ) : string

Private Methods

Method Description
combinaison ( List inputs ) : double
main ( List inputs ) : void

Method Details

Neuron() public method

public Neuron ( ) : UnityEngine
return UnityEngine

Neuron() public method

public Neuron ( List inputs, System rand ) : UnityEngine
inputs List
rand System
return UnityEngine

Neuron() public method

public Neuron ( List weight, List input, System rand, bool bias = true ) : UnityEngine
weight List
input List
rand System
bias bool
return UnityEngine

Neuron() public method

public Neuron ( List weight, System rand, bool bias = true ) : UnityEngine
weight List
rand System
bias bool
return UnityEngine

Neuron() public method

public Neuron ( Neuron N ) : UnityEngine
N Neuron
return UnityEngine

Neuron() public method

public Neuron ( int n_weights, System rand, bool bias = true ) : UnityEngine
n_weights int
rand System
bias bool
return UnityEngine

activation() public method

public activation ( double val, double lambda = 0.2 ) : double
val double
lambda double
return double

combinaison() public method

public combinaison ( ) : double
return double

fire() public method

public fire ( ) : double
return double

getAllInput() public method

public getAllInput ( ) : List
return List

getBias() public method

public getBias ( ) : double
return double

getInput() public method

public getInput ( int position ) : double
position int
return double

getNbWeigths() public method

public getNbWeigths ( ) : int
return int

getWeigth() public method

public getWeigth ( int position ) : double
position int
return double

setBias() public method

public setBias ( double bias ) : void
bias double
return void

setInput() public method

public setInput ( Input input, int position ) : void
input Input
position int
return void

setInput() public method

public setInput ( double input, int position ) : void
input double
position int
return void

setWeight() public method

public setWeight ( double weights, int position ) : void
weights double
position int
return void

toString() public method

public toString ( bool debug ) : string
debug bool
return string