Esempio n. 1
0
 /// <summary>
 /// Creates an instance of input function with specified weights and summing function 
 /// </summary>
 /// <param name="weightsFunction">function performs some operation on input and weight vector</param>
 /// <param name="summingFunction">function transforms output from VectorFunction to scalar</param>
 public InputFunction(WeightsFunction weightsFunction, SummingFunction summingFunction)
 {
     this.weightsFunction = weightsFunction;
     this.summingFunction = summingFunction;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates an instance of WeightedSum input function by default.
 /// </summary>
 public InputFunction()
 {
     this.weightsFunction = new WeightedInput();
     this.summingFunction = new Sum();
 }