|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.histogram.DataPointSet
public class DataPointSet
Basic user-level interface class for holding and managing a single set of "data points".
| Constructor Summary | |
|---|---|
DataPointSet(String name,
String title,
int dimOfPoints)
|
|
DataPointSet(String name,
String title,
int dimOfPoints,
int defaultCapacity)
|
|
DataPointSet(String name,
String title,
int dimOfPoints,
int defaultCapacity,
String options)
|
|
DataPointSet(String name,
String title,
int dimOfPoints,
String options)
|
|
| Method Summary | |
|---|---|
IDataPoint |
addPoint()
Add a new empty IDataPoint at the end of the set. |
void |
addPoint(IDataPoint point)
Add a copy of an IDataPoint at the end of the set. |
IAnnotation |
annotation()
Get the IAnnotation of the IDataPointSet. |
void |
clear()
Remove all the IDataPoints in the set. |
int |
dimension()
Get the dimension of the IDataPoints that can be stored in the set. |
double |
lowerExtent(int coord)
Get the lower value for a give axis. |
IDataPoint |
point(int index)
Get the IDataPoint at a give index in the set. |
void |
removePoint(int index)
Remove the IDataPoint at a given index. |
void |
scale(double scaleFactor)
Scales the values and the errors of all the measurements of each point by a given factor. |
void |
scaleErrors(double scaleFactor)
Scales the errors of all the measurements of each point by a given factor. |
void |
scaleValues(double scaleFactor)
Scales the values of all the measurements of each point by a given factor. |
void |
setAnnotation(IAnnotation annotation)
|
void |
setCoordinate(int coord,
double[] values,
double[] errors)
Set the values and errors of a given coordinate all at once. |
void |
setCoordinate(int coord,
double[] values,
double[] errp,
double[] errm)
Set the values and errors of a given coordinate all at once. |
void |
setPoint(int index,
IDataPoint point)
Set the IDataPoint at a give index in the set. |
void |
setTitle(String title)
Set the title of the IDataPointSet. |
int |
size()
Get the current size of the IDataPointSet, i.e. |
void |
stateChanged(EventObject e)
|
String |
title()
Get the title of the IDataPointSet. |
double |
upperExtent(int coord)
Get the upper value for a give axis. |
| Methods inherited from class hep.aida.ref.ManagedObject |
|---|
isFillable, name, setFillable, setName, type, typeForClass |
| Methods inherited from class hep.aida.ref.event.AIDAObservable |
|---|
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hep.aida.ref.event.IsObservable |
|---|
addListener, removeAllListeners, removeListener, setValid |
| Methods inherited from interface hep.aida.ref.event.Connectable |
|---|
isConnected, setConnected |
| Constructor Detail |
|---|
public DataPointSet(String name,
String title,
int dimOfPoints)
public DataPointSet(String name,
String title,
int dimOfPoints,
int defaultCapacity)
public DataPointSet(String name,
String title,
int dimOfPoints,
String options)
public DataPointSet(String name,
String title,
int dimOfPoints,
int defaultCapacity,
String options)
| Method Detail |
|---|
public IAnnotation annotation()
IDataPointSet
annotation in interface IDataPointSetpublic void setAnnotation(IAnnotation annotation)
public String title()
IDataPointSet
title in interface IDataPointSet
public void setTitle(String title)
throws IllegalArgumentException
IDataPointSet
setTitle in interface IDataPointSettitle - The new title.
IllegalArgumentException - If the title cannot be set.public int dimension()
IDataPointSet
dimension in interface IDataPointSetpublic void clear()
IDataPointSet
clear in interface IDataPointSetpublic int size()
IDataPointSet
size in interface IDataPointSetpublic IDataPoint point(int index)
IDataPointSet
point in interface IDataPointSetindex - The IDataPoint index.
public void setPoint(int index,
IDataPoint point)
throws IllegalArgumentException
index - The IDataPoint index.point - The corresponding IDataPoint to be set at the index
IllegalArgumentException - If the index is < 0 or >= size().
public IDataPoint addPoint()
throws RuntimeException
IDataPointSet
addPoint in interface IDataPointSetRuntimeException - If a new IDataPoint cannot be added to the set.
public void addPoint(IDataPoint point)
throws IllegalArgumentException
IDataPointSet
addPoint in interface IDataPointSetpoint - The IDataPoint to be added.
IllegalArgumentException - If the point has the wrong dimension or
if the point cannot be added.
public void removePoint(int index)
throws IllegalArgumentException
IDataPointSet
removePoint in interface IDataPointSetindex - The index of the IDataPoint to be removed.
IllegalArgumentException - If the index is < 0 or >= size().
public double lowerExtent(int coord)
throws IllegalArgumentException
IDataPointSet
lowerExtent in interface IDataPointSetcoord - The coordinate of the axis.
IllegalArgumentException - if coord < 0 or coord >= dimension() or if the set is empty.
public double upperExtent(int coord)
throws IllegalArgumentException
IDataPointSet
upperExtent in interface IDataPointSetcoord - The coordinate of the axis.
IllegalArgumentException - if coord < 0 or coord >= dimension() or if the set is empty.
public void scale(double scaleFactor)
throws IllegalArgumentException
IDataPointSet
scale in interface IDataPointSetscaleFactor - The scale factor.
IllegalArgumentException - If an illegal scaleFactor is provided.
public void scaleValues(double scaleFactor)
throws IllegalArgumentException
IDataPointSet
scaleValues in interface IDataPointSetscaleFactor - The scale factor.
IllegalArgumentException - If an illegal scaleFactor is provided.
public void scaleErrors(double scaleFactor)
throws IllegalArgumentException
IDataPointSet
scaleErrors in interface IDataPointSetscaleFactor - The scale factor.
IllegalArgumentException - If an illegal scaleFactor is provided.
public void setCoordinate(int coord,
double[] values,
double[] errors)
throws IllegalArgumentException
IDataPointSet
setCoordinate in interface IDataPointSetcoord - The coordinate's indexvalues - The array of the values for the given coordinateerrors - The array with the symmetric errors.
IllegalArgumentException - if an illegal coordinate is provided or if
there is a mismatch between the size of the array and the size of the IDataPointSet.
public void setCoordinate(int coord,
double[] values,
double[] errp,
double[] errm)
throws IllegalArgumentException
IDataPointSet
setCoordinate in interface IDataPointSetcoord - The coordinate's indexvalues - The array of the values for the given coordinateerrp - The array with the plus errors.errm - The array with the minus errors.
IllegalArgumentException - if an illegal coordinate is provided or if
there is a mismatch between the size of the array and the size of the IDataPointSet.public void stateChanged(EventObject e)
stateChanged in interface AIDAListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||