Class Graph

java.lang.Object
fr.ign.artiscales.pm.analysis.Graph

public class Graph extends Object
Class to export fast and automated graph created with Xchart library
  • 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 order
      boundMin - minimal bound
      boundMax - maximal bound
      nameDistribution - name of the distribution
  • Method Details

    • getSortedDistribution

      public List<Double> getSortedDistribution()
      Get value for sorted distribution
      Returns:
      sorted distribution
    • setSortedDistribution

      public void setSortedDistribution(List<Double> sortedDistribution)
      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

      public String getNameDistrib()
      Get the name of the distribution
      Returns:
      name
    • setNameDistrib

      public void setNameDistrib(String nameDistrib)
      Set the name of the distribution
      Parameters:
      nameDistrib - name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toCSV

      public void toCSV(File folderOut) throws IOException
      Write distribution to a .csv file;
      Parameters:
      folderOut - folder where the .csv is wrote
      Throws:
      IOException - writing .csv