Package org.nd4j.evaluation.curves
Class BaseHistogram
- java.lang.Object
-
- org.nd4j.evaluation.curves.BaseHistogram
-
-
Constructor Summary
Constructors Constructor Description BaseHistogram()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T extends BaseHistogram>
TfromJson(String json, Class<T> curveClass)static <T extends BaseHistogram>
TfromYaml(String yaml, Class<T> curveClass)abstract int[]getBinCounts()abstract double[]getBinLowerBounds()abstract double[]getBinMidValues()abstract double[]getBinUpperBounds()abstract StringgetTitle()abstract intnumPoints()StringtoJson()StringtoYaml()
-
-
-
Method Detail
-
getTitle
public abstract String getTitle()
-
numPoints
public abstract int numPoints()
-
getBinCounts
public abstract int[] getBinCounts()
-
getBinLowerBounds
public abstract double[] getBinLowerBounds()
-
getBinUpperBounds
public abstract double[] getBinUpperBounds()
-
getBinMidValues
public abstract double[] getBinMidValues()
-
toJson
public String toJson()
- Returns:
- JSON representation of the curve
-
toYaml
public String toYaml()
- Returns:
- YAML representation of the curve
-
fromJson
public static <T extends BaseHistogram> T fromJson(String json, Class<T> curveClass)
- Type Parameters:
T- Type- Parameters:
json- JSON representationcurveClass- Class for the curve- Returns:
- Instance of the curve
-
fromYaml
public static <T extends BaseHistogram> T fromYaml(String yaml, Class<T> curveClass)
- Type Parameters:
T- Type- Parameters:
yaml- YAML representationcurveClass- Class for the curve- Returns:
- Instance of the curve
-
-