-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generalize pseudo random errors (#290)
* feat: generalize pseudo random errors * make prefix private
- Loading branch information
Showing
8 changed files
with
72 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
core/src/main/java/org/eqasim/core/simulation/mode_choice/epsilon/EpsilonAdapter.java
This file was deleted.
Oops, something went wrong.
50 changes: 18 additions & 32 deletions
50
core/src/main/java/org/eqasim/core/simulation/mode_choice/epsilon/EpsilonModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
core/src/main/java/org/eqasim/core/simulation/mode_choice/epsilon/NoopEpsilonProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.eqasim.core.simulation.mode_choice.epsilon; | ||
|
||
import org.matsim.api.core.v01.Id; | ||
import org.matsim.api.core.v01.population.Person; | ||
|
||
public class NoopEpsilonProvider implements EpsilonProvider { | ||
final static public NoopEpsilonProvider INSTANCE = new NoopEpsilonProvider(); | ||
|
||
@Override | ||
public double getEpsilon(Id<Person> personId, int tripIndex, String mode) { | ||
return 0.0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters