jhplot
Class VHolder

java.lang.Object
  extended by jhplot.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
VHolder(DataHolder dh, boolean format)
          Get Vectors from multidimensional data container
VHolder(F1D ff, boolean format)
          Create a VHolder object with F1D function
VHolder(H1D hh, boolean format)
          Create a VHolder object with H1D histogram
VHolder(P0D hh, boolean format)
          Create a VHolder object from P0D container.
VHolder(P1D hh, boolean format)
          Create a VHolder object from P1D container.
VHolder(P2D hh, boolean format)
          Create a VHolder object from P2D container.
VHolder(P3D hh, boolean format)
          Create a VHolder object from P3D container.
 
Method Summary
 int dimen()
          Return the dimension of the data
 java.util.Vector getData()
          Return a Vector with the data (rows of the dimension obtained by calling dimen()).
 java.util.Vector<java.lang.String> getNames()
          Return Vector with the names
 java.lang.String getTitle()
          Get title of the container
 int size()
          Return the size of the data, i.e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VHolder

public VHolder(H1D hh,
               boolean format)
Create a VHolder object with H1D histogram

Parameters:
hh - Input histogram
format - if true, all elements will be formatted to strings. using scientific format ##.####E00. If false, data will not be modified and converted to string

VHolder

public VHolder(F1D ff,
               boolean format)
Create a VHolder object with F1D function

Parameters:
ff - Input function
format - if true, all elements will be formatted to scientific format ##.####E00. If false, data will notbe modified and converted to string

VHolder

public VHolder(DataHolder dh,
               boolean format)
Get Vectors from multidimensional data container

Parameters:
dh - Input data
format - if true, all elements will be formatted to scientific format ##.####E00. If false, data will not be modified and converted to string

VHolder

public VHolder(P1D hh,
               boolean format)
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
format - if true, all elements will be formatted to scientific format (##.####E00). If false, the data will not be modified.

VHolder

public VHolder(P2D hh,
               boolean format)
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
format - if true, all elements will be formatted to scientific format (##.####E00). If false, the data will not be modified.

VHolder

public VHolder(P0D hh,
               boolean format)
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
format - if true, all elements will be formatted to scientific format (##.####E00). If false, the data will not be modified.

VHolder

public VHolder(P3D hh,
               boolean format)
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
format - if true, all elements will be formatted to scientific format (##.####E00). If false, the data will not be modified.
Method Detail

getTitle

public java.lang.String getTitle()
Get title of the container

Returns:
Title

getNames

public java.util.Vector<java.lang.String> getNames()
Return Vector with the names

Returns:
Names of the columns

getData

public java.util.Vector getData()
Return a Vector with the data (rows of the dimension obtained by calling dimen()).

Returns:
Names of the columns

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


jHepWork 1.1 (C) Chekanov