mirror of
https://github.com/apache/commons-math.git
synced 2025-02-07 18:49:40 +00:00
Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505934 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
24f20dc6e3
commit
e79f61951b
@ -20,7 +20,7 @@ import org.apache.commons.math3.util.IterationEvent;
|
||||
import org.apache.commons.math3.exception.MathUnsupportedOperationException;
|
||||
|
||||
/**
|
||||
* This is the base class for all events occuring during the iterations of a
|
||||
* This is the base class for all events occurring during the iterations of a
|
||||
* {@link IterativeLinearSolver}.
|
||||
*
|
||||
* @version $Id$
|
||||
|
@ -327,7 +327,7 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
|
||||
|
||||
// search for next events that may occur during the step
|
||||
final int orderingSign = interpolator.isForward() ? +1 : -1;
|
||||
SortedSet<EventState> occuringEvents = new TreeSet<EventState>(new Comparator<EventState>() {
|
||||
SortedSet<EventState> occurringEvents = new TreeSet<EventState>(new Comparator<EventState>() {
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public int compare(EventState es0, EventState es1) {
|
||||
@ -339,14 +339,14 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
|
||||
for (final EventState state : eventsStates) {
|
||||
if (state.evaluateStep(interpolator)) {
|
||||
// the event occurs during the current step
|
||||
occuringEvents.add(state);
|
||||
occurringEvents.add(state);
|
||||
}
|
||||
}
|
||||
|
||||
while (!occuringEvents.isEmpty()) {
|
||||
while (!occurringEvents.isEmpty()) {
|
||||
|
||||
// handle the chronologically first event
|
||||
final Iterator<EventState> iterator = occuringEvents.iterator();
|
||||
final Iterator<EventState> iterator = occurringEvents.iterator();
|
||||
final EventState currentEvent = iterator.next();
|
||||
iterator.remove();
|
||||
|
||||
@ -405,7 +405,7 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
|
||||
// check if the same event occurs again in the remaining part of the step
|
||||
if (currentEvent.evaluateStep(interpolator)) {
|
||||
// the event occurs during the current step
|
||||
occuringEvents.add(currentEvent);
|
||||
occurringEvents.add(currentEvent);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user