public void update(LearningWeightedConnection wconn) {
double cWeight = wconn.getChangeInWeight();
double weight = wconn.getWeight();
double weightUncertainty = wconn.getWeightUncertainty();
LearningConcept from = (LearningConcept) wconn.getFrom();
double learnTimesError = learn * from.getError();
/* Rule */
//double delta = (learnTimesError * from.getOutput()) + (momentum * cWeight);
double delta = 0;
if(weight == weightUncertainty)
delta = (learnTimesError * from.getOutput()) + (momentum * cWeight);
else
delta = (learnTimesError * weightUncertainty * from.getOutput()) + (momentum * cWeight);
/*
System.out.println("Connection: "+wconn);
System.out.println(" learnTimesError: "+learnTimesError);
System.out.println(" weightUncertainty: "+weightUncertainty);