jhplot
Class VHolder
- java.lang.Object
- jhplot.VHolder
public class VHolderextends 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 initialisatorVHolder(DataHolder dh)
Get Vectors from multidimensional data containerVHolder(F1D ff)
Create a VHolder object with F1D functionVHolder(H1D hh)
Create a VHolder object with H1D histogramVHolder(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 PNDVHolder(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 datavoid
doc()
Show online documentation.Double[][]
getData()
Return a Vector with the data (rows of the dimension obtained by calling dimen()).String[]
getNames()
Return Vector with the namesString
getTitle()
Get title of the containervoid
setData(double[] data)
Set data from 1D arrayvoid
setData(double[][] data)
Set data from 2D arrayvoid
setData(Double[][] data)
int
size()
Return the size of the data, i.e.String
toString()
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 String getTitle()
Get title of the container- Returns:
- Title
getNames
public String[] getNames()
Return Vector with the names- Returns:
- Names of the columns
getData
public 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
setData
public void setData(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 2.7 © DataMelt by jWork.ORG