MATSIM
CountsErrorGraphCreator.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * CountsErrorGraphCreator.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2007 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.counts.algorithms.graphs;
22 
23 import java.util.List;
24 import java.util.Vector;
25 
28 
30 
31 
32  public CountsErrorGraphCreator(final String sectionTitle) {
33  super(sectionTitle);
34  }
35 
36 
37  @Override
38  public List<CountsGraph> createGraphs(final List<CountSimComparison> ccl, final int iteration) {
39 
40  List<CountsGraph> graphList=new Vector<CountsGraph>();
41  {
42  String fileName="errors";
43  BoxPlotErrorGraph ep=new BoxPlotErrorGraph(ccl, iteration, fileName, fileName);
44  ep.createChart(0);
45  graphList.add(ep);
46  this.section.addURL(new MyURL(fileName+".html", "errors"));
47  }
48  {
49  String fileName="biasErrors";
50  BiasErrorGraph ep=new BiasErrorGraph(ccl, iteration, fileName, fileName);
51  ep.createChart(0);
52  graphList.add(ep);
53  this.section.addURL(new MyURL(fileName+".html", "biasErrors"));
54  }
55  return graphList;
56  }
57 }
List< CountsGraph > createGraphs(final List< CountSimComparison > ccl, final int iteration)