Exemple #1
0
 /**
  * Class constructor.
  *
  * @param inputSize
  *            the number of inputs to the map.
  * @param outputDimensions
  *            the number of and size of output dimensions.
  */
 public MapBaseImpl(int inputSize, params int[] outputDimensions)
 {
     inputMetric         = new EuclideanMetric();
     outputMetric        = new EuclideanMetric();
     nhFunction          = new GaussianNeighbourhoodFunction();
     this.inputDimension = inputSize;
     this.weights        = new IterativeArray <double[]>(outputDimensions);
     this.random         = new Random();
     this.initWeights();
 }
Exemple #2
0
 /**
  * @param weights the weights to set
  */
 protected void setWeights(IterativeArray <double[]> weights)
 {
     this.weights = weights;
 }