|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.charts.PlotFormat
public class PlotFormat
Provide tools to import and export data set tables to and from Gnuplot, MATLAB and Mathematica compatible formats, or customized format.
Method Summary | |
---|---|
static double[][] |
fromCSV(String data)
Parses data according to the standard CSV format and stores the extracted values in the returned table. |
static double[][] |
fromCustomizedFormat(String betweenValues,
String endLine,
String data)
Parses data according to a user defined format and stores the extracted values in the returned table. |
static double[][] |
fromGNUPlot(String data)
Parses data according to the standard GNUPlot format and stores the extracted values in the returned table. |
static String |
toCSV(double[]... data)
Stores data tables data into a String with format CSV (comma-separated value tabular data). |
static String |
toCSV(XYSeriesCollection data)
Stores series collection data into a String with format CSV (comma-separated value tabular data). |
static String |
toCustomizedFormat(String heading,
String footer,
String betweenValues,
String endLine,
int precision,
double[]... data)
Stores data tables data into a String with customized format. |
static String |
toCustomizedFormat(String heading,
String footer,
String betweenValues,
String endLine,
int precision,
XYSeriesCollection data)
Stores data tables data into a String with customized format from an XYSeriesCollection variable. |
static String |
toGNUPlot(double[]... data)
Stores data tables data into a String, with format understandable by GNUPlot. |
static String |
toGNUPlot(XYSeriesCollection data)
Stores series collection data into a String, with format understandable by GNUPlot. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double[][] fromGNUPlot(String data)
data
- String to parse.
IllegalArgumentException
- if each line of the input String doesn't share the same number of valuespublic static double[][] fromCSV(String data)
data
- String to parse.
IllegalArgumentException
- if each line of the input String doesn't share the same number of valuespublic static double[][] fromCustomizedFormat(String betweenValues, String endLine, String data)
Pattern
(package java.util.regex).
betweenValues
- String which separates values on the same line.endLine
- String which separates lines.data
- String to parse.
IllegalArgumentException
- if each line of the input String doesn't share the same number of valuespublic static String toGNUPlot(double[]... data)
data
- data tables.
public static String toGNUPlot(XYSeriesCollection data)
data
- data tables.
public static String toCSV(double[]... data)
data
- data tables.
public static String toCSV(XYSeriesCollection data)
data
- data tables.
public static String toCustomizedFormat(String heading, String footer, String betweenValues, String endLine, int precision, double[]... data)
heading
- head of the returned String.footer
- end of the returned String.betweenValues
- String which separates values on the same line.endLine
- String which separates lines.data
- data tables.
public static String toCustomizedFormat(String heading, String footer, String betweenValues, String endLine, int precision, XYSeriesCollection data)
heading
- head of the returned String.footer
- end of the returned String.betweenValues
- String which separates values on the same line.endLine
- String which separates lines.data
- data tables.
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |