public class Chart
extends java.lang.Object
Constructor and Description |
---|
Chart(Section section,
java.lang.String title,
Section.ChartRepresentation representation) |
Chart(Section section,
java.lang.String title,
Section.ChartRepresentation representation,
long startTime,
long endTime,
int numberOfSlices,
int quantilesNumber) |
Chart(Section section,
java.lang.String title,
Section.ChartRepresentation representation,
long startTime,
long endTime,
int numberOfSlices,
int quantilesNumber,
org.jfree.chart.JFreeChart jfChart) |
Chart(java.lang.String title,
Section.ChartRepresentation representation) |
Modifier and Type | Method and Description |
---|---|
void |
addChartDataValues(java.util.List<ChartDataValues> values) |
void |
clearChartDataValues() |
java.lang.String |
dump() |
java.lang.String |
exportToHtml(int tabsMem,
java.io.File directory,
java.lang.String sectionName,
Report.imageFormats imageFormat) |
java.lang.String |
exportToTxt(int nbTabs,
java.io.File directory,
java.lang.String sectionName,
Report.imageFormats imageFormat) |
void |
exportToXML(int tabsMem,
java.io.File directory,
java.lang.String sectionName,
Report.imageFormats imageFormat) |
org.jfree.chart.JFreeChart |
generateGraphics() |
long |
getDefaultEndTime()
Gets the default chart ending time, i.e.
|
long |
getDefaultStartTime()
Gets the default chart starting time, i.e.
|
long |
getEndTime()
Gets the forced chart ending time.
|
long |
getFinalTime() |
long |
getInitialTime() |
org.jfree.chart.JFreeChart |
getJfChart() |
double[][] |
getMovingAverages(double initialTime,
double[] values,
int[] splitTime,
int timeWindow,
int step)
Computes the moving average of values, according to a given time window and progression step.
|
double[][] |
getMovingMaximum(double initialTime,
double[] values,
int[] splitTime,
int timeWindow,
int step)
Computes the moving maximum of values, according to a given time window and progression step.
|
double[][] |
getMovingMedians(double initialTime,
double[] values,
int[] splitTime,
int timeWindow,
int step)
Computes the moving median of values, according to a given time window and progression step.
|
double[][] |
getMovingMinimum(double initialTime,
double[] values,
int[] splitTime,
int timeWindow,
int step)
Computes the moving minimum of values, according to a given time window and progression step.
|
double[][] |
getMovingStandardDeviations(double initialTime,
double[] values,
int[] splitTime,
int timeWindow,
int step)
Computes the moving standard deviation of values, according to a given time window and progression step.
|
double[][] |
getMovingThroughput(double initialTime,
int[] splitTime,
int timeWindow,
int step)
Computes the moving throughput of event occurrences, according to a given time window and progression step.
|
int |
getNumberOfQuantils() |
int |
getNumberOfSlices() |
Section.ChartRepresentation |
getRepresentation() |
Section |
getSection() |
long |
getStartTime()
Gets the forced chart starting time.
|
java.lang.String |
getTitle() |
double[] |
quantiles(int n,
double[] values)
Get quantiles
|
void |
setEndTime(long endTime)
Forces the chart ending time, or leaves it to its default
|
void |
setJfChart(org.jfree.chart.JFreeChart jfChart) |
void |
setNumberOfQuantils(int i) |
void |
setNumberOfSlices(int numberOfSlices) |
void |
setRepresentation(Section.ChartRepresentation representation) |
void |
setStartTime(long startTime)
Forces the chart starting time, or leaves it to its default
|
void |
setTitle(java.lang.String title) |
java.lang.String |
toText(double[] vect) |
public Chart(Section section, java.lang.String title, Section.ChartRepresentation representation, long startTime, long endTime, int numberOfSlices, int quantilesNumber, org.jfree.chart.JFreeChart jfChart)
public Chart(Section section, java.lang.String title, Section.ChartRepresentation representation, long startTime, long endTime, int numberOfSlices, int quantilesNumber)
public Chart(java.lang.String title, Section.ChartRepresentation representation)
public Chart(Section section, java.lang.String title, Section.ChartRepresentation representation)
public org.jfree.chart.JFreeChart generateGraphics()
public double[] quantiles(int n, double[] values)
n
- values
- public double[][] getMovingMinimum(double initialTime, double[] values, int[] splitTime, int timeWindow, int step)
initialTime
- starting time (in ms) of the first time stepvalues
- array of all values on which moving statistics are computedsplitTime
- indexes of starting/ending values for each step.
For example, the first value in step i is located at index splitTime[2*i] in the values parameter,
and the last one is located at index splitTime[2*i+1].timeWindow
- the width (in ms) of the time window over which moving statistics are computedstep
- the progression step (in ms) for moving statisticspublic double[][] getMovingMaximum(double initialTime, double[] values, int[] splitTime, int timeWindow, int step)
initialTime
- starting time (in ms) of the first time stepvalues
- array of all values on which moving statistics are computedsplitTime
- indexes of starting/ending values for each step.
For example, the first value in step i is located at index splitTime[2*i] in the values parameter,
and the last one is located at index splitTime[2*i+1].timeWindow
- the width (in ms) of the time window over which moving statistics are computedstep
- the progression step (in ms) for moving statisticspublic double[][] getMovingAverages(double initialTime, double[] values, int[] splitTime, int timeWindow, int step)
initialTime
- starting time (in ms) of the first time stepvalues
- array of all values on which moving statistics are computedsplitTime
- indexes of starting/ending values for each step.
For example, the first value in step i is located at index splitTime[2*i] in the values parameter,
and the last one is located at index splitTime[2*i+1].timeWindow
- the width (in ms) of the time window over which moving statistics are computedstep
- the progression step (in ms) for moving statisticspublic double[][] getMovingMedians(double initialTime, double[] values, int[] splitTime, int timeWindow, int step)
initialTime
- starting time (in ms) of the first time stepvalues
- array of all values on which moving statistics are computedsplitTime
- indexes of starting/ending values for each step.
For example, the first value in step i is located at index splitTime[2*i] in the values parameter,
and the last one is located at index splitTime[2*i+1].timeWindow
- the width (in ms) of the time window over which moving statistics are computedstep
- the progression step (in ms) for moving statisticspublic double[][] getMovingStandardDeviations(double initialTime, double[] values, int[] splitTime, int timeWindow, int step)
initialTime
- starting time (in ms) of the first time stepvalues
- array of all values on which moving statistics are computedsplitTime
- indexes of starting/ending values for each step.
For example, the first value in step i is located at index splitTime[2*i] in the values parameter,
and the last one is located at index splitTime[2*i+1].timeWindow
- the width (in ms) of the time window over which moving statistics are computedstep
- the progression step (in ms) for moving statisticspublic double[][] getMovingThroughput(double initialTime, int[] splitTime, int timeWindow, int step)
initialTime
- starting time (in ms) of the first time stepsplitTime
- indexes of starting/ending event occurrences for each step.
For example, the first occurrence in step i is occurrence number splitTime[2*i],
and the last one is occurrence number splitTime[2*i+1].timeWindow
- the width (in milliseconds) of the time window over which moving statistics are computedstep
- the progression step (in milliseconds) for moving statisticspublic org.jfree.chart.JFreeChart getJfChart()
public void setJfChart(org.jfree.chart.JFreeChart jfChart)
public Section.ChartRepresentation getRepresentation()
public void setRepresentation(Section.ChartRepresentation representation)
public void addChartDataValues(java.util.List<ChartDataValues> values)
public void clearChartDataValues()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public long getStartTime()
public void setStartTime(long startTime)
startTime
- a positive chart starting time in ms for all
datasets, or -1 to use the default starting time.public long getEndTime()
public void setEndTime(long endTime)
endTime
- a positive chart ending time in ms for all
datasets, or -1 to use the default ending time.public long getDefaultStartTime()
public long getDefaultEndTime()
public long getInitialTime()
public long getFinalTime()
public int getNumberOfSlices()
public void setNumberOfSlices(int numberOfSlices)
public int getNumberOfQuantils()
public void setNumberOfQuantils(int i)
public java.lang.String exportToTxt(int nbTabs, java.io.File directory, java.lang.String sectionName, Report.imageFormats imageFormat)
public java.lang.String exportToHtml(int tabsMem, java.io.File directory, java.lang.String sectionName, Report.imageFormats imageFormat)
public void exportToXML(int tabsMem, java.io.File directory, java.lang.String sectionName, Report.imageFormats imageFormat)
public java.lang.String toText(double[] vect)
public Section getSection()
public java.lang.String dump()