thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
LWH::DataPointSetFactory Class Reference

Basic user-level interface for creating a factory of IDataPointSet. More...

#include <DataPointSetFactory.h>

Inheritance diagram for LWH::DataPointSetFactory:

Public Member Functions

 DataPointSetFactory (Tree &t)
 Standard constructor.
 
virtual ~DataPointSetFactory ()
 Destructor.
 
virtual IDataPointSet * create (const std::string &path, const std::string &title, int dim)
 Create an empty IDataPointSet.
 
virtual IDataPointSet * create (const std::string &pathAndTitle, int dim)
 Create an empty IDataPointSet.
 
virtual IDataPointSet * createY (const std::string &path, const std::string &title, const std::vector< double > &y, const std::vector< double > &ey)
 Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
 
virtual IDataPointSet * createY (const std::string &path, const std::string &title, const std::vector< double > &y, const std::vector< double > &eyp, const std::vector< double > &eym)
 Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
 
virtual IDataPointSet * createY (const std::string &pathAndTitle, const std::vector< double > &y, const std::vector< double > &ey)
 Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
 
virtual IDataPointSet * createY (const std::string &pathAndTitle, const std::vector< double > &y, const std::vector< double > &eyp, const std::vector< double > &eym)
 Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
 
virtual IDataPointSet * createX (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &ex)
 Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
 
virtual IDataPointSet * createX (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &exp, const std::vector< double > &exm)
 Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
 
virtual IDataPointSet * createX (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &ex)
 Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
 
virtual IDataPointSet * createX (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &exp, const std::vector< double > &exm)
 Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
 
virtual IDataPointSet * createXY (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &exm, const std::vector< double > &eym)
 Create a two dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXY (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ex, const std::vector< double > &ey)
 Create a two dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXY (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &exm, const std::vector< double > &eym)
 Create a two dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXY (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ex, const std::vector< double > &ey)
 Create a two dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXYZ (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &ezp, const std::vector< double > &exm, const std::vector< double > &eym, const std::vector< double > &ezm)
 Create a three dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXYZ (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &ex, const std::vector< double > &ey, const std::vector< double > &ez)
 Create a three dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXYZ (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &ezp, const std::vector< double > &exm, const std::vector< double > &eym, const std::vector< double > &ezm)
 Create a two dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createXYZ (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &ex, const std::vector< double > &ey, const std::vector< double > &ez)
 Create a two dimensional IDataPointSet providing the data.
 
virtual IDataPointSet * createCopy (const std::string &path, const IDataPointSet &dataPointSet)
 Make a copy of a given IDataPointSet.
 
virtual bool destroy (IDataPointSet *dataPointSet)
 Destroy a given IDataPointSet.
 
virtual IDataPointSet * create (const std::string &path, const IHistogram1D &hist, const std::string &="")
 Create an IDataPointSet from an IHistogram1D.
 
virtual IDataPointSet * create (const std::string &path, const IHistogram2D &hist, const std::string &="")
 Create an IDataPointSet from an IHistogram2D.
 
virtual IDataPointSet * create (const std::string &, const IHistogram3D &, const std::string &="")
 LWH cannot handle a IHistogram3D.
 
virtual IDataPointSet * create (const std::string &, const ICloud1D &, const std::string &="")
 LWH cannot handle a ICloud1.
 
virtual IDataPointSet * create (const std::string &, const ICloud2D &, const std::string &="")
 LWH cannot handle a ICloud2D.
 
virtual IDataPointSet * create (const std::string &, const ICloud3D &, const std::string &="")
 LWH cannot handle a ICloud3D.
 
virtual IDataPointSet * create (const std::string &, const IProfile1D &, const std::string &="")
 LWH cannot handle a IProfile1D.
 
virtual IDataPointSet * create (const std::string &, const IProfile2D &, const std::string &="")
 LWH cannot handle a IProfile2D.
 
virtual IDataPointSet * add (const std::string &, const IDataPointSet &, const IDataPointSet &)
 LWH cannot handle the addition of data points.
 
virtual IDataPointSet * subtract (const std::string &, const IDataPointSet &, const IDataPointSet &)
 LWH cannot handle the subtraction of data points.
 
virtual IDataPointSet * multiply (const std::string &, const IDataPointSet &, const IDataPointSet &)
 LWH cannot handle the multiplication of data points.
 
virtual IDataPointSet * divide (const std::string &, const IDataPointSet &, const IDataPointSet &)
 LWH cannot handle the division of data points.
 
virtual IDataPointSet * weightedMean (const std::string &, const IDataPointSet &, const IDataPointSet &)
 LWH cannot handle the weighted mean of data points.
 

Static Private Member Functions

template<typename T >
static T * error (std::string feature)
 Throw a suitable error.
 

Private Attributes

Treetree
 The tree where the actual data sets are stored.
 

Detailed Description

Basic user-level interface for creating a factory of IDataPointSet.

The created objects are assumed to be managed by the tree which is associated to the factory.

Definition at line 31 of file DataPointSetFactory.h.

Constructor & Destructor Documentation

◆ DataPointSetFactory()

LWH::DataPointSetFactory::DataPointSetFactory ( Tree t)
inline

Standard constructor.

Definition at line 38 of file DataPointSetFactory.h.

◆ ~DataPointSetFactory()

virtual LWH::DataPointSetFactory::~DataPointSetFactory ( )
inlinevirtual

Destructor.

Definition at line 44 of file DataPointSetFactory.h.

Member Function Documentation

◆ add()

virtual IDataPointSet * LWH::DataPointSetFactory::add ( const std::string &  ,
const IDataPointSet &  ,
const IDataPointSet &   
)
inlinevirtual

LWH cannot handle the addition of data points.

Definition at line 655 of file DataPointSetFactory.h.

◆ create() [1/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  ,
const ICloud1D &  ,
const std::string &  = "" 
)
inlinevirtual

LWH cannot handle a ICloud1.

Definition at line 615 of file DataPointSetFactory.h.

◆ create() [2/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  ,
const ICloud2D &  ,
const std::string &  = "" 
)
inlinevirtual

LWH cannot handle a ICloud2D.

Definition at line 623 of file DataPointSetFactory.h.

◆ create() [3/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  ,
const ICloud3D &  ,
const std::string &  = "" 
)
inlinevirtual

LWH cannot handle a ICloud3D.

Definition at line 631 of file DataPointSetFactory.h.

◆ create() [4/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  ,
const IHistogram3D &  ,
const std::string &  = "" 
)
inlinevirtual

LWH cannot handle a IHistogram3D.

Definition at line 607 of file DataPointSetFactory.h.

◆ create() [5/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  ,
const IProfile1D &  ,
const std::string &  = "" 
)
inlinevirtual

LWH cannot handle a IProfile1D.

Definition at line 639 of file DataPointSetFactory.h.

◆ create() [6/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  ,
const IProfile2D &  ,
const std::string &  = "" 
)
inlinevirtual

LWH cannot handle a IProfile2D.

Definition at line 647 of file DataPointSetFactory.h.

◆ create() [7/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  path,
const IHistogram1D &  hist,
const std::string &  = "" 
)
inlinevirtual

Create an IDataPointSet from an IHistogram1D.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataName" and "../folder/dataName" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
histThe IHistogram1D from which the data is taken.
Returns
The newly created IDataPointSet.

Definition at line 541 of file DataPointSetFactory.h.

References create().

◆ create() [8/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  path,
const IHistogram2D &  hist,
const std::string &  = "" 
)
inlinevirtual

Create an IDataPointSet from an IHistogram2D.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataName" and "../folder/dataName" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
histThe IHistogram2D from which the data is taken.
optionsOptions, currently not specified
Returns
The newly created IDataPointSet.

Definition at line 573 of file DataPointSetFactory.h.

References create().

◆ create() [9/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  path,
const std::string &  title,
int  dim 
)
inlinevirtual

Create an empty IDataPointSet.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataName" and "../folder/dataName" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
dimThe dimension of the IDataPoints that can be stored in the set.
Returns
The newly created IDataPointSet.

Definition at line 61 of file DataPointSetFactory.h.

References LWH::Tree::insert(), LWH::DataPointSet::setTitle(), and tree.

Referenced by create(), createCopy(), createX(), createXY(), createXYZ(), and createY().

◆ create() [10/10]

virtual IDataPointSet * LWH::DataPointSetFactory::create ( const std::string &  pathAndTitle,
int  dim 
)
inlinevirtual

Create an empty IDataPointSet.

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
dimThe dimension of the IDataPoints that can be stored in the set.
Returns
The newly created IDataPointSet.

Definition at line 86 of file DataPointSetFactory.h.

References create().

◆ createCopy()

virtual IDataPointSet * LWH::DataPointSetFactory::createCopy ( const std::string &  path,
const IDataPointSet &  dataPointSet 
)
inlinevirtual

Make a copy of a given IDataPointSet.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
dataPointSetThe IDataPointSet to be copied.
Returns
The copy of the given IDataPointSet.

Definition at line 509 of file DataPointSetFactory.h.

References create().

◆ createX() [1/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createX ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  x,
const std::vector< double > &  ex 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
xThe array of the x values
exThe array with the symmetric errors on x
Returns
The created IDataPointSet.

Definition at line 201 of file DataPointSetFactory.h.

References createX().

Referenced by createX().

◆ createX() [2/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createX ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  x,
const std::vector< double > &  exp,
const std::vector< double > &  exm 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
xThe array of the x values
expThe array with the plus errors on x
exmThe array with the minus errors on x
Returns
The created IDataPointSet.

Definition at line 221 of file DataPointSetFactory.h.

References create().

◆ createX() [3/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createX ( const std::string &  pathAndTitle,
const std::vector< double > &  x,
const std::vector< double > &  ex 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
xThe array of the x values
exThe array with the symmetric errors on x
Returns
The created IDataPointSet.

Definition at line 253 of file DataPointSetFactory.h.

References createX().

◆ createX() [4/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createX ( const std::string &  pathAndTitle,
const std::vector< double > &  x,
const std::vector< double > &  exp,
const std::vector< double > &  exm 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
xThe array of the x values
expThe array with the plus errors on x
exmThe array with the minus errors on x
Returns
The created IDataPointSet.

Definition at line 275 of file DataPointSetFactory.h.

References createX().

◆ createXY() [1/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXY ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  ex,
const std::vector< double > &  ey 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
xThe array of the x values
yThe array of the y values
exThe array with the symmetric errors on x
eyThe array with the symmetric errors on y
Returns
The created IDataPointSet.

Definition at line 326 of file DataPointSetFactory.h.

References createXY().

◆ createXY() [2/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXY ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  exp,
const std::vector< double > &  eyp,
const std::vector< double > &  exm,
const std::vector< double > &  eym 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
xThe array of the x values
yThe array of the y values
expThe array with the plus errors on x
eypThe array with the plus errors on y
exmThe array with the minus errors on x
eymThe array with the minus errors on y
Returns
The created IDataPointSet.

Definition at line 298 of file DataPointSetFactory.h.

References create().

Referenced by createXY().

◆ createXY() [3/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXY ( const std::string &  pathAndTitle,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  ex,
const std::vector< double > &  ey 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data.

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
xThe array of the x values
yThe array of the y values
exThe array with the symmetric errors on x
eyThe array with the symmetric errors on y
Returns
The created IDataPointSet.

Definition at line 374 of file DataPointSetFactory.h.

References createXY().

◆ createXY() [4/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXY ( const std::string &  pathAndTitle,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  exp,
const std::vector< double > &  eyp,
const std::vector< double > &  exm,
const std::vector< double > &  eym 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data.

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
xThe array of the x values
yThe array of the y values
expThe array with the plus errors on x
eypThe array with the plus errors on y
exmThe array with the minus errors on x
eymThe array with the minus errors on y
Returns
The created IDataPointSet.

Definition at line 350 of file DataPointSetFactory.h.

References createXY().

◆ createXYZ() [1/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXYZ ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  z,
const std::vector< double > &  ex,
const std::vector< double > &  ey,
const std::vector< double > &  ez 
)
inlinevirtual

Create a three dimensional IDataPointSet providing the data.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
xThe array of the x values
yThe array of the y values
zThe array of the z values
exThe array with the symmetric errors on x
eyThe array with the symmetric errors on y
ezThe array with the symmetric errors on z
Returns
The created IDataPointSet.

Definition at line 434 of file DataPointSetFactory.h.

References createXYZ().

◆ createXYZ() [2/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXYZ ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  z,
const std::vector< double > &  exp,
const std::vector< double > &  eyp,
const std::vector< double > &  ezp,
const std::vector< double > &  exm,
const std::vector< double > &  eym,
const std::vector< double > &  ezm 
)
inlinevirtual

Create a three dimensional IDataPointSet providing the data.

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
xThe array of the x values
yThe array of the y values
zThe array of the z values
expThe array with the plus errors on x
eypThe array with the plus errors on y
ezpThe array with the plus errors on z
exmThe array with the minus errors on x
eymThe array with the minus errors on y
ezmThe array with the minus errors on z
Returns
The created IDataPointSet.

Definition at line 401 of file DataPointSetFactory.h.

References create().

Referenced by createXYZ().

◆ createXYZ() [3/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXYZ ( const std::string &  pathAndTitle,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  z,
const std::vector< double > &  ex,
const std::vector< double > &  ey,
const std::vector< double > &  ez 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data.

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
xThe array of the x values
yThe array of the y values
zThe array of the z values
exThe array with the symmetric errors on x
eyThe array with the symmetric errors on y
ezThe array with the symmetric errors on z
Returns
The created IDataPointSet.

Definition at line 490 of file DataPointSetFactory.h.

References createXYZ().

◆ createXYZ() [4/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createXYZ ( const std::string &  pathAndTitle,
const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  z,
const std::vector< double > &  exp,
const std::vector< double > &  eyp,
const std::vector< double > &  ezp,
const std::vector< double > &  exm,
const std::vector< double > &  eym,
const std::vector< double > &  ezm 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data.

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
xThe array of the x values
yThe array of the y values
zThe array of the z values
expThe array with the plus errors on x
eypThe array with the plus errors on y
ezpThe array with the plus errors on z
exmThe array with the minus errors on x
eymThe array with the minus errors on y
ezmThe array with the minus errors on z
Returns
The created IDataPointSet.

Definition at line 462 of file DataPointSetFactory.h.

References createXYZ().

◆ createY() [1/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createY ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  y,
const std::vector< double > &  ey 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
yThe array of the y values
eyThe array with the symmetric errors on y
Returns
The created IDataPointSet.

Definition at line 105 of file DataPointSetFactory.h.

References createY().

Referenced by createY().

◆ createY() [2/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createY ( const std::string &  path,
const std::string &  title,
const std::vector< double > &  y,
const std::vector< double > &  eyp,
const std::vector< double > &  eym 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).

Parameters
pathThe path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
titleThe title of the IDataPointSet.
yThe array of the y values
eypThe array with the plus errors on y
eymThe array with the minus errors on y
Returns
The created IDataPointSet.

Definition at line 125 of file DataPointSetFactory.h.

References create().

◆ createY() [3/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createY ( const std::string &  pathAndTitle,
const std::vector< double > &  y,
const std::vector< double > &  ey 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
yThe array of the y values
eyThe array with the symmetric errors on y
Returns
The created IDataPointSet.

Definition at line 158 of file DataPointSetFactory.h.

References createY().

◆ createY() [4/4]

virtual IDataPointSet * LWH::DataPointSetFactory::createY ( const std::string &  pathAndTitle,
const std::vector< double > &  y,
const std::vector< double > &  eyp,
const std::vector< double > &  eym 
)
inlinevirtual

Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).

Parameters
pathAndTitleThe path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" are valid paths). All the directories in the path must exist. The characther / cannot be used in names; it is only used to delimit directories within paths.
yThe array of the y values
eypThe array with the plus errors on y
eymThe array with the minus errors on y
Returns
The created IDataPointSet.

Definition at line 180 of file DataPointSetFactory.h.

References createY().

◆ destroy()

virtual bool LWH::DataPointSetFactory::destroy ( IDataPointSet *  dataPointSet)
inlinevirtual

Destroy a given IDataPointSet.

Parameters
dataPointSetThe IDataPointSet to be destroyed.
Returns
false If dataPointSet cannot be destroyed.

Definition at line 522 of file DataPointSetFactory.h.

References LWH::Tree::findPath(), LWH::Tree::rm(), and tree.

◆ divide()

virtual IDataPointSet * LWH::DataPointSetFactory::divide ( const std::string &  ,
const IDataPointSet &  ,
const IDataPointSet &   
)
inlinevirtual

LWH cannot handle the division of data points.

Definition at line 679 of file DataPointSetFactory.h.

◆ error()

template<typename T >
static T * LWH::DataPointSetFactory::error ( std::string  feature)
inlinestaticprivate

Throw a suitable error.

Definition at line 697 of file DataPointSetFactory.h.

◆ multiply()

virtual IDataPointSet * LWH::DataPointSetFactory::multiply ( const std::string &  ,
const IDataPointSet &  ,
const IDataPointSet &   
)
inlinevirtual

LWH cannot handle the multiplication of data points.

Definition at line 671 of file DataPointSetFactory.h.

◆ subtract()

virtual IDataPointSet * LWH::DataPointSetFactory::subtract ( const std::string &  ,
const IDataPointSet &  ,
const IDataPointSet &   
)
inlinevirtual

LWH cannot handle the subtraction of data points.

Definition at line 663 of file DataPointSetFactory.h.

◆ weightedMean()

virtual IDataPointSet * LWH::DataPointSetFactory::weightedMean ( const std::string &  ,
const IDataPointSet &  ,
const IDataPointSet &   
)
inlinevirtual

LWH cannot handle the weighted mean of data points.

Definition at line 688 of file DataPointSetFactory.h.

Member Data Documentation

◆ tree

Tree* LWH::DataPointSetFactory::tree
private

The tree where the actual data sets are stored.

Definition at line 702 of file DataPointSetFactory.h.

Referenced by create(), and destroy().


The documentation for this class was generated from the following file: