Package org.nd4j.evaluation.curves
Class Histogram
- java.lang.Object
-
- org.nd4j.evaluation.curves.BaseHistogram
-
- org.nd4j.evaluation.curves.Histogram
-
public class Histogram extends BaseHistogram
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HistogramfromJson(String json)static HistogramfromYaml(String yaml)double[]getBinLowerBounds()double[]getBinMidValues()double[]getBinUpperBounds()intnumPoints()-
Methods inherited from class org.nd4j.evaluation.curves.BaseHistogram
fromJson, fromYaml, getBinCounts, getTitle, toJson, toYaml
-
-
-
-
Constructor Detail
-
Histogram
public Histogram(String title, double lower, double upper, int[] binCounts)
-
-
Method Detail
-
numPoints
public int numPoints()
- Specified by:
numPointsin classBaseHistogram
-
getBinLowerBounds
public double[] getBinLowerBounds()
- Specified by:
getBinLowerBoundsin classBaseHistogram
-
getBinUpperBounds
public double[] getBinUpperBounds()
- Specified by:
getBinUpperBoundsin classBaseHistogram
-
getBinMidValues
public double[] getBinMidValues()
- Specified by:
getBinMidValuesin classBaseHistogram
-
fromJson
public static Histogram fromJson(String json)
- Parameters:
json- JSON representation- Returns:
- Instance of the histogram
-
-