/** * 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(); }
/** * @param weights the weights to set */ protected void setWeights(IterativeArray <double[]> weights) { this.weights = weights; }