public class DataKeeper extends Object
| Constructor and Description |
|---|
DataKeeper(H1D h1d)
Initialize from a histogram
|
DataKeeper(int size) |
DataKeeper(P1D p1d)
Initialize from a P1D
|
| Modifier and Type | Method and Description |
|---|---|
DataKeeper |
copy()
Make a copy
|
double |
getError(int index)
Get error at index
|
double[] |
getErrors() |
double |
getIntegral()
Calculate integral, summing up all values
|
int |
getSize()
Get the size of container
|
String |
getTitle() |
double |
getValue(int index)
Get value at index
|
double[] |
getValues()
Get values
|
void |
scale(double factor)
Scale all values and errors by a factor
|
void |
scale(int index,
double factor)
Scale values and errors by a factor
|
void |
setError(int index,
double value)
Set a error at index
|
void |
setErrors(double[] errors) |
void |
setTitle(String title) |
void |
setValue(int index,
double value)
Set a value at index
|
void |
setValues(double[] values) |
public DataKeeper(int size)
public DataKeeper(P1D p1d)
p1d - input P1Dpublic DataKeeper(H1D h1d)
h1d - public void setTitle(String title)
public String getTitle()
public void setErrors(double[] errors)
public void setValues(double[] values)
public void scale(int index,
double factor)
index - index of the valuefactor - factor to scalepublic void scale(double factor)
factor - factor to scalepublic double[] getErrors()
public DataKeeper copy()
public double[] getValues()
public double getIntegral()
public double getError(int index)
index - public double getValue(int index)
index - public void setValue(int index,
double value)
index - indexvalue - valuepublic void setError(int index,
double value)
index - indexvalue - valuepublic int getSize()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics