size() публичный Метод

public size ( ) : int
Результат int
Пример #1
0
	//
	// PRIVATE METHODS
	//

	private Matrix createDerivativeMatrix(Vector lastInducedField) {
		List<Double> lst = new List<Double>();
		for (int i = 0; i < lastInducedField.size(); i++) {
			lst.Add(layer.getActivationFunction().deriv(
					lastInducedField.getValue(i)));
		}
		return Matrix.createDiagonalMatrix(lst);
	}
Пример #2
0
	private static void initializeVector(Vector aVector, double lowerLimit,
			double upperLimit) {
		for (int i = 0; i < aVector.size(); i++) {

			double random = Util.generateRandomDoubleBetween(lowerLimit,
					upperLimit);
			aVector.setValue(i, random);
		}
	}