Documentation of 'jhplot.VHolder' Java class.
VHolder
jhplot

Class VHolder



  • public class VHolder
    extends java.lang.Object
    A class to transform any HPlot container (H1D,H2D,P1D..) to a vector for further manipulations
    • Constructor Summary

      Constructors 
      Constructor and Description
      VHolder()
      Dummy initialisator
      VHolder(DataHolder dh)
      Get Vectors from multidimensional data container
      VHolder(F1D ff)
      Create a VHolder object with F1D function
      VHolder(H1D hh)
      Create a VHolder object with H1D histogram
      VHolder(P0D hh)
      Create a VHolder object from P0D container.
      VHolder(P0I hh)
      Create a VHolder object from P0I container.
      VHolder(P1D hh)
      Create a VHolder object from P1D container.
      VHolder(P2D hh)
      Create a VHolder object from P2D container.
      VHolder(P3D hh)
      Create a VHolder object from P3D container.
      VHolder(PND hh)
      Show PND
      VHolder(PNI hh)
      Show PNI
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int dimen()
      Return the dimension of the data
      void doc()
      Show online documentation.
      java.lang.Double[][] getData()
      Return a Vector with the data (rows of the dimension obtained by calling dimen()).
      java.lang.String[] getNames()
      Return Vector with the names
      java.lang.String getTitle()
      Get title of the container
      void setData(double[] data)
      Set data from 1D array
      void setData(double[][] data)
      Set data from 2D array
      void setData(java.lang.Double[][] data) 
      int size()
      Return the size of the data, i.e.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VHolder

        public VHolder()
        Dummy initialisator
      • VHolder

        public VHolder(H1D hh)
        Create a VHolder object with H1D histogram
        Parameters:
        hh - Input histogram
      • VHolder

        public VHolder(F1D ff)
        Create a VHolder object with F1D function
        Parameters:
        ff - Input function
      • VHolder

        public VHolder(DataHolder dh)
        Get Vectors from multidimensional data container
        Parameters:
        dh - Input data
      • VHolder

        public VHolder(PND hh)
        Show PND
        Parameters:
        hh -
      • VHolder

        public VHolder(PNI hh)
        Show PNI
        Parameters:
        hh -
      • VHolder

        public VHolder(P1D hh)
        Create a VHolder object from P1D container. The size of the vectors will be adjusted depending on the size of P1D
        Parameters:
        hh - Input P1D container
      • VHolder

        public VHolder(P2D hh)
        Create a VHolder object from P2D container. The size of the vectors will be adjusted depending on the size of P2D
        Parameters:
        hh - Input P2D container
      • VHolder

        public VHolder(P0D hh)
        Create a VHolder object from P0D container. The size of the vectors will be adjusted depending on the size of P0D
        Parameters:
        hh - Input P0D container
      • VHolder

        public VHolder(P0I hh)
        Create a VHolder object from P0I container. The size of the vectors will be adjusted depending on the size of P0I
        Parameters:
        hh - Input P0I container
      • VHolder

        public VHolder(P3D hh)
        Create a VHolder object from P3D container. The size of the vectors will be adjusted depending on the size of P3D
        Parameters:
        hh - Input P3D container
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Get title of the container
        Returns:
        Title
      • getNames

        public java.lang.String[] getNames()
        Return Vector with the names
        Returns:
        Names of the columns
      • getData

        public java.lang.Double[][] getData()
        Return a Vector with the data (rows of the dimension obtained by calling dimen()).
        Returns:
        actual data
      • setData

        public void setData(double[][] data)
        Set data from 2D array
        Parameters:
        data - 2D array
      • setData

        public void setData(double[] data)
        Set data from 1D array
        Parameters:
        data - 1D array
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setData

        public void setData(java.lang.Double[][] data)
      • dimen

        public int dimen()
        Return the dimension of the data
        Returns:
        Dimension
      • size

        public int size()
        Return the size of the data, i.e. the number of rows
        Returns:
        The number of rows
      • doc

        public void doc()
        Show online documentation.

DMelt 3.0 © DataMelt by jWork.ORG