Package fr.ign.artiscales.pm.analysis
Class Graph
java.lang.Object
fr.ign.artiscales.pm.analysis.Graph
Class to export fast and automated graph created with Xchart library
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleSet value for maximal bound represented on the schemadoubleGet value for minimal bound represented on the schemaGet the name of the distributionGet value for sorted distributionvoidsetBoundMax(double boundMax)Set value for maximal bound represented on the schemavoidsetBoundMin(double boundMin)Set value for minimal bound represented on the schemavoidsetNameDistrib(String nameDistrib)Set the name of the distributionvoidsetSortedDistribution(List<Double> sortedDistribution)Set value for sorted distributionvoidWrite distribution to a .csv file;toString()
-
Constructor Details
-
Graph
public Graph(List<Double> sortedDistribution, double boundMin, double boundMax, String nameDistribution)Put every information in a graph object.- Parameters:
sortedDistribution- distribution sorted in the wanted orderboundMin- minimal boundboundMax- maximal boundnameDistribution- name of the distribution
-
-
Method Details
-
getSortedDistribution
Get value for sorted distribution- Returns:
- sorted distribution
-
setSortedDistribution
Set value for sorted distribution- Parameters:
sortedDistribution- new value
-
getBoundMin
public double getBoundMin()Get value for minimal bound represented on the schema- Returns:
- minimal bound
-
setBoundMin
public void setBoundMin(double boundMin)Set value for minimal bound represented on the schema- Parameters:
boundMin- minimal bound
-
getBoundMax
public double getBoundMax()Set value for maximal bound represented on the schema- Returns:
- maximal bound
-
setBoundMax
public void setBoundMax(double boundMax)Set value for maximal bound represented on the schema- Parameters:
boundMax- maximal bound
-
getNameDistrib
Get the name of the distribution- Returns:
- name
-
setNameDistrib
Set the name of the distribution- Parameters:
nameDistrib- name
-
toString
-
toCSV
Write distribution to a .csv file;- Parameters:
folderOut- folder where the .csv is wrote- Throws:
IOException- writing .csv
-