7 #ifndef AIDA_IDATAPOINTSET_H
8 #define AIDA_IDATAPOINTSET_H 1
51 virtual std::string
title()
const = 0;
73 virtual void clear() = 0;
81 virtual int size()
const = 0;
103 virtual bool setCoordinate(
int coord,
const std::vector<double> & val,
const std::vector<double> & err) = 0;
118 virtual bool setCoordinate(
int coord,
const std::vector<double> & val,
const std::vector<double> & errp,
const std::vector<double> & errm) = 0;
171 virtual bool scale(
double scaleFactor) = 0;
196 virtual void *
cast(
const std::string & className)
const = 0;
virtual IDataPoint * point(int index)=0
Get the IDataPoint at a give index in the set.
virtual void * cast(const std::string &className) const =0
See IManagedObject for a description.
virtual void clear()=0
Remove all the IDataPoints in the set.
virtual bool setCoordinate(int coord, const std::vector< double > &val, const std::vector< double > &err)=0
Set the values and errors of a given coordinate all at once.
virtual IAnnotation & annotation()=0
Get the IAnnotation of the IDataPointSet.
virtual bool scaleValues(double scaleFactor)=0
Scales the values of all the measurements of each point by a given factor.
Basic user-level interface class for holding and managing a single set of "data points".
Definition: IDataPointSet.h:31
virtual ~IDataPointSet()
Destructor.
Definition: IDataPointSet.h:35
virtual double upperExtent(int coord) const =0
Get the upper value for a give axis.
virtual int size() const =0
Get the current size of the IDataPointSet, i.e.
virtual std::string title() const =0
Get the title of the IDataPointSet.
virtual int dimension() const =0
Get the dimension of the IDataPoints that can be stored in the set.
virtual bool removePoint(int index)=0
Remove the IDataPoint at a given index.
virtual bool setTitle(const std::string &title)=0
Set the title of the IDataPointSet.
virtual IDataPoint * addPoint()=0
Add a new empty IDataPoint at the end of the set.
Basic user-level interface class for holding and managing a single set of "measurements".
Definition: IDataPoint.h:27
virtual double lowerExtent(int coord) const =0
Get the lower value for a give axis.
The annotation holds arbitrary information represented with (key,value) pairs of strings.
Definition: IAnnotation.h:28
virtual bool scaleErrors(double scaleFactor)=0
Scales the errors of all the measurements of each point by a given factor.
virtual bool scale(double scaleFactor)=0
Scales the values and the errors of all the measurements of each point by a given factor...