All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <StatisticalPoint.h>
Public Member Functions | |
| ComplexStatisticalPoint () | |
| ComplexStatisticalPoint (double x, const Complex &y) | |
| void | operator= (const ComplexStatisticalPoint &o) |
| void | operator= (const ComplexStatisticalValue &o) |
| void | setY (double v, const CurvePointOptions *options) |
| virtual const QString & | xml_tagName () const |
| double | y (const CurvePointOptions *options) const |
Static Public Attributes | |
| static const QString | xmlComplexStatisticalPointTag = "ComplexStatisticalPoint" |
{}
| QGpCoreTools::ComplexStatisticalPoint::ComplexStatisticalPoint | ( | double | x, |
| const Complex & | y | ||
| ) | [inline] |
| void QGpCoreTools::ComplexStatisticalPoint::operator= | ( | const ComplexStatisticalPoint & | o | ) | [inline] |
Referenced by operator=().
| void QGpCoreTools::ComplexStatisticalPoint::operator= | ( | const ComplexStatisticalValue & | o | ) | [inline] |
References operator=().
| void QGpCoreTools::ComplexStatisticalPoint::setY | ( | double | v, |
| const CurvePointOptions * | options | ||
| ) |
References QGpCoreTools::AbstractComplexPointOptions::fromDouble(), QGpCoreTools::ComplexPointOptions::fromDouble(), QGpCoreTools::StatisticalValue< Complex >::mean(), QGpCoreTools::StatisticalValue< Complex >::setMean(), and QGpCoreTools::StatisticalPoint< Complex >::x().
{
const AbstractComplexPointOptions * co=static_cast<const AbstractComplexPointOptions *>(options);
Complex c=StatisticalPoint<Complex>::mean();
if(co) {
co->fromDouble(x(), c, v);
} else {
ComplexPointOptions co;
co.fromDouble(x(), c, v);
}
setMean(c);
}
| virtual const QString& QGpCoreTools::ComplexStatisticalPoint::xml_tagName | ( | ) | const [inline, virtual] |
Implements QGpCoreTools::XMLClass.
{return xmlComplexStatisticalPointTag;}
| double QGpCoreTools::ComplexStatisticalPoint::y | ( | const CurvePointOptions * | options | ) | const |
References QGpCoreTools::AbstractComplexPointOptions::toDouble(), QGpCoreTools::ComplexPointOptions::toDouble(), and QGpCoreTools::StatisticalPoint< Complex >::x().
{
const AbstractComplexPointOptions * co=static_cast<const AbstractComplexPointOptions *>(options);
if(co) {
return co->toDouble(x(), StatisticalPoint<Complex>::mean());
} else {
ComplexPointOptions co;
return co.toDouble(x(), StatisticalPoint<Complex>::mean());
}
}
const QString QGpCoreTools::ComplexStatisticalPoint::xmlComplexStatisticalPointTag = "ComplexStatisticalPoint" [static] |