performance/src/main/java/org/justinnk/masonssa/evaluation/Evaluator.java
/**
   * Simulate the model with each simulator on the SIRS model(s) and store the means of S,I and R
   * population counts over time.
   */
Simulate the model with each simulator on the SIRS model(s) and store the means of S,I and R
population counts over time.
Simulate the model with each simulator on the SIRS model ( s ) and store the means of S I and R population counts over time .
private static void sirsCorrectness(Method method) {
    /* TODO: test multiple parameter configurations. */
    int numHumans = 100;
    double density = 0.1;
    int initialInfected = 1;
    int reps = 800;
    switch (method) {
      case frm:
        new SSASirsCorrectnessExperiment(
                "FirstReactionMethod",
                new FirstReactionMethod(),
                numHumans,
                density,
                initialInfected)
            .run(reps);
        break;
      case ldm:
        new SSASirsCorrectnessExperiment(
                "LogarithmicDirectMethod",
                new LogarithmicDirectMethod(),
                numHumans,
                density,
                initialInfected)
            .run(reps);
        break;
      case nrm:
        new SSASirsCorrectnessExperiment(
                "NextReactionMethod", new NextReactionMethod(), numHumans, density, initialInfected)
            .run(reps);
        break;
      case odm:
        new SSASirsCorrectnessExperiment(
                "OptimizedDirectMethod",
                new OptimizedDirectMethod(),
                numHumans,
                density,
                initialInfected)
            .run(reps);
        break;
      case vanilla:
        new VanillaSirsCorrectnessExperiment(numHumans, density, initialInfected).run(reps);
        break;
      default:
        break;
    }
  }
private static void sirsCorrectness ( Method method ) { /* TODO: test multiple parameter configurations. */ int numHumans = 100 ; double density = 0.1 ; int initialInfected = 1 ; int reps = 800 ; switch ( method ) { case frm : new SSASirsCorrectnessExperiment ( "FirstReactionMethod" , new FirstReactionMethod ( ) , numHumans , density , initialInfected ) . run ( reps ) ; break ; case ldm : new SSASirsCorrectnessExperiment ( "LogarithmicDirectMethod" , new LogarithmicDirectMethod ( ) , numHumans , density , initialInfected ) . run ( reps ) ; break ; case nrm : new SSASirsCorrectnessExperiment ( "NextReactionMethod" , new NextReactionMethod ( ) , numHumans , density , initialInfected ) . run ( reps ) ; break ; case odm : new SSASirsCorrectnessExperiment ( "OptimizedDirectMethod" , new OptimizedDirectMethod ( ) , numHumans , density , initialInfected ) . run ( reps ) ; break ; case vanilla : new VanillaSirsCorrectnessExperiment ( numHumans , density , initialInfected ) . run ( reps ) ; break ; default : break ; } }
Simulate the model with each simulator on the SIRS model(s) and store the means of S,I and R
 population counts over time.
Simulate the model with each simulator on the SIRS model ( s ) and store the means of S I and R population counts over time .