reinforce method

void reinforce({
  1. double amount = 0.1,
})

Strengthen this fact when confirmed by new evidence.

Implementation

void reinforce({double amount = 0.1}) {
  confidence = math.min(1.0, confidence + amount);
  occurrences++;
  lastSeen = DateTime.now();
}