jhplot
Class VHolder
- java.lang.Object
-
- jhplot.VHolder
-
public class VHolder extends java.lang.ObjectA 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 intdimen()Return the dimension of the datavoiddoc()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 namesjava.lang.StringgetTitle()Get title of the containervoidsetData(double[] data)Set data from 1D arrayvoidsetData(double[][] data)Set data from 2D arrayvoidsetData(java.lang.Double[][] data)intsize()Return the size of the data, i.e.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.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