Package hep.aida.ref
Class Converter
- java.lang.Object
-
- hep.aida.ref.Converter
-
public class Converter extends java.lang.Object
Histogram conversions, for example to String and XML format; This class requires the Colt distribution, whereas the rest of the package is entirelly stand-alone.
-
-
Constructor Summary
Constructors Constructor Description Converter()
Creates a new histogram converter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
edges(IAxis axis)
Returns all edges of the given axis.(package private) java.lang.String
form(Former formatter, double value)
protected double[]
toArrayErrors(IHistogram1D h)
Returns an array[h.xAxis().bins()]; ignoring extra bins.protected double[][]
toArrayErrors(IHistogram2D h)
Returns an array[h.xAxis().bins()][h.yAxis().bins()]; ignoring extra bins.protected double[]
toArrayHeights(IHistogram1D h)
Returns an array[h.xAxis().bins()]; ignoring extra bins.protected double[][]
toArrayHeights(IHistogram2D h)
Returns an array[h.xAxis().bins()][h.yAxis().bins()]; ignoring extra bins.protected double[][][]
toArrayHeights(IHistogram3D h)
Returns an array[h.xAxis().bins()][h.yAxis().bins()][h.zAxis().bins()]; ignoring extra bins.protected static java.lang.String
toString(double[] array)
Returns a string representation of the specified array.java.lang.String
toString(IAxis axis)
Returns a string representation of the given argument.java.lang.String
toString(IHistogram1D h)
Returns a string representation of the given argument.java.lang.String
toString(IHistogram2D h)
Returns a string representation of the given argument.java.lang.String
toString(IHistogram3D h)
Returns a string representation of the given argument.java.lang.String
toXML(IHistogram1D h)
Returns a XML representation of the given argument.java.lang.String
toXML(IHistogram2D h)
Returns a XML representation of the given argument.
-
-
-
Method Detail
-
edges
public double[] edges(IAxis axis)
Returns all edges of the given axis.
-
form
java.lang.String form(Former formatter, double value)
-
toArrayErrors
protected double[] toArrayErrors(IHistogram1D h)
Returns an array[h.xAxis().bins()]; ignoring extra bins.
-
toArrayErrors
protected double[][] toArrayErrors(IHistogram2D h)
Returns an array[h.xAxis().bins()][h.yAxis().bins()]; ignoring extra bins.
-
toArrayHeights
protected double[] toArrayHeights(IHistogram1D h)
Returns an array[h.xAxis().bins()]; ignoring extra bins.
-
toArrayHeights
protected double[][] toArrayHeights(IHistogram2D h)
Returns an array[h.xAxis().bins()][h.yAxis().bins()]; ignoring extra bins.
-
toArrayHeights
protected double[][][] toArrayHeights(IHistogram3D h)
Returns an array[h.xAxis().bins()][h.yAxis().bins()][h.zAxis().bins()]; ignoring extra bins.
-
toString
protected static java.lang.String toString(double[] array)
Returns a string representation of the specified array. The string representation consists of a list of the arrays's elements, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space).- Returns:
- a string representation of the specified array.
-
toString
public java.lang.String toString(IAxis axis)
Returns a string representation of the given argument.
-
toString
public java.lang.String toString(IHistogram1D h)
Returns a string representation of the given argument.
-
toString
public java.lang.String toString(IHistogram2D h)
Returns a string representation of the given argument.
-
toString
public java.lang.String toString(IHistogram3D h)
Returns a string representation of the given argument.
-
toXML
public java.lang.String toXML(IHistogram1D h)
Returns a XML representation of the given argument.
-
toXML
public java.lang.String toXML(IHistogram2D h)
Returns a XML representation of the given argument.
-
-