org.gcube.contentmanagement.graphtools.data
Class GraphSamplesTable

java.lang.Object
  extended by org.gcube.contentmanagement.graphtools.abstracts.SamplesTable
      extended by org.gcube.contentmanagement.graphtools.data.GraphSamplesTable

public class GraphSamplesTable
extends SamplesTable


Field Summary
 
Fields inherited from class org.gcube.contentmanagement.graphtools.abstracts.SamplesTable
maxX, maxY, minX, minY
 
Constructor Summary
GraphSamplesTable()
           
GraphSamplesTable(List<Point<? extends Number,? extends Number>> graph)
           
GraphSamplesTable(String seriesName, List<String> xLables, List<Double> yValues, boolean invert)
           
 
Method Summary
 void addLabel(int i, String label)
           
 void addSample(int i, int j, double value)
           
 void addSampleRow(String label, double... values)
           
 String getClassification(int d)
           
 List<Point<? extends Number,? extends Number>> getGraph()
           
 int getNumOfAttributes()
           
 int getNumOfDataRows()
           
 double getValue(int d, int a)
           
 
Methods inherited from class org.gcube.contentmanagement.graphtools.abstracts.SamplesTable
calculateBounds, generateExampleSet, generateSampleTable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphSamplesTable

public GraphSamplesTable(List<Point<? extends Number,? extends Number>> graph)

GraphSamplesTable

public GraphSamplesTable()

GraphSamplesTable

public GraphSamplesTable(String seriesName,
                         List<String> xLables,
                         List<Double> yValues,
                         boolean invert)
Method Detail

getNumOfAttributes

public int getNumOfAttributes()
Specified by:
getNumOfAttributes in class SamplesTable

getNumOfDataRows

public int getNumOfDataRows()
Specified by:
getNumOfDataRows in class SamplesTable

getValue

public double getValue(int d,
                       int a)
Specified by:
getValue in class SamplesTable

getClassification

public String getClassification(int d)
Specified by:
getClassification in class SamplesTable

addLabel

public void addLabel(int i,
                     String label)
Specified by:
addLabel in class SamplesTable

addSample

public void addSample(int i,
                      int j,
                      double value)
Specified by:
addSample in class SamplesTable

addSampleRow

public void addSampleRow(String label,
                         double... values)
Specified by:
addSampleRow in class SamplesTable

getGraph

public List<Point<? extends Number,? extends Number>> getGraph()


Copyright © 2013. All Rights Reserved.