Package hep.aida.ref

Class Converter

java.lang.Object
hep.aida.ref.Converter

public class Converter extends 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 Details

    • Converter

      public Converter()
      Creates a new histogram converter.
  • Method Details

    • edges

      public double[] edges(IAxis axis)
      Returns all edges of the given axis.
    • form

      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 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 String toString(IAxis axis)
      Returns a string representation of the given argument.
    • toString

      public String toString(IHistogram1D h)
      Returns a string representation of the given argument.
    • toString

      public String toString(IHistogram2D h)
      Returns a string representation of the given argument.
    • toString

      public String toString(IHistogram3D h)
      Returns a string representation of the given argument.
    • toXML

      public String toXML(IHistogram1D h)
      Returns a XML representation of the given argument.
    • toXML

      public String toXML(IHistogram2D h)
      Returns a XML representation of the given argument.