private double CalcEuclideanDistance(double[] inputVector, double[] weights)
    {
	double distance = 0;

	for (int i = 0; i < inputVector.length; i++){ distance += Math.pow((inputVector[i] - weights[i]), 2); }

	return Math.sqrt(distance);
    }