Brief description of class still missing. More...
#include <ComplexStatisticalProxy.h>
Public Member Functions | |
| virtual void | average (const CurveBrowserProxy *o) |
| virtual CurveBrowserProxy * | clone () const |
| virtual int | columnCount () const |
| virtual QStringList | columnFileTypes () const |
| virtual QString | columnName (int col) const |
| virtual QString | columnUnit (int col) const |
| virtual QVariant | columnValue (int sample, int col) const |
| virtual void | cut (double min, double max, SamplingOptions options) |
| virtual QVector< int > | defaultColumnFileTypes () const |
| virtual double | maximumX () const |
| virtual double | maximumY (const CurvePointOptions *pointOptions) const |
| virtual double | minimumX () const |
| virtual double | minimumY (const CurvePointOptions *pointOptions) const |
| virtual void | parse (ColumnTextIterator &it) |
| virtual void | resample (int n, double min, double max, SamplingOptions options, double valX, double valY, const CurvePointOptions *pointOptions) |
| virtual void | resample (int n, double min, double max, SamplingOptions options) |
| virtual QVector< int > | savedColumns () const |
| virtual void | setColumnValue (int sample, int col, const QVariant &value) |
| virtual void | setFunction () |
| virtual QString | tag () const |
| virtual int | xAxisColumn () const |
| virtual int | xAxisInversedColumn () const |
| virtual int | yAxisColumn () const |
| virtual int | yAxisInversedColumn () const |
Protected Member Functions | |
| const Curve < ComplexStatisticalPoint > & | curve () const |
| Curve< ComplexStatisticalPoint > & | curve () |
Brief description of class still missing.
Full description of class still missing
| void SciFigs::ComplexStatisticalProxy::average | ( | const CurveBrowserProxy * | o | ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::Curve< pointType >::average(), curve(), and TRACE.
Referenced by parse().
| virtual CurveBrowserProxy* SciFigs::ComplexStatisticalProxy::clone | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return new ComplexStatisticalProxy;}
| virtual int SciFigs::ComplexStatisticalProxy::columnCount | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return 4;}
| QStringList SciFigs::ComplexStatisticalProxy::columnFileTypes | ( | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::tr(), and TRACE.
| QString SciFigs::ComplexStatisticalProxy::columnName | ( | int | col | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::tr(), and TRACE.
| QString SciFigs::ComplexStatisticalProxy::columnUnit | ( | int | col | ) | const [virtual] |
| QVariant SciFigs::ComplexStatisticalProxy::columnValue | ( | int | sample, |
| int | col | ||
| ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::Complex::abs(), curve(), QGpCoreTools::Complex::im, QGpCoreTools::StatisticalValue< numberType >::mean(), QGpCoreTools::Complex::phase(), QGpCoreTools::Complex::re, QGpCoreTools::StatisticalValue< numberType >::stddev(), TRACE, QGpCoreTools::StatisticalValue< numberType >::weight(), and QGpCoreTools::StatisticalPoint< numberType >::x().
{
TRACE;
const ComplexStatisticalPoint& p=curve()[ sample ];
switch(col) {
case 0: return p.x();
case 1: return p.mean().re();
case 2: return p.mean().im();
case 3: return p.mean().abs();
case 4: return p.mean().phase();
case 5: return p.stddev();
case 6: return p.weight();
default: return QVariant();
}
}
| const Curve< ComplexStatisticalPoint > & SciFigs::ComplexStatisticalProxy::curve | ( | ) | const [protected] |
References SciFigs::CurveBrowserProxy::_line, and TRACE.
Referenced by average(), columnValue(), curve(), cut(), maximumX(), maximumY(), minimumX(), minimumY(), parse(), resample(), setColumnValue(), and setFunction().
| Curve< ComplexStatisticalPoint > & SciFigs::ComplexStatisticalProxy::curve | ( | ) | [protected] |
| void SciFigs::ComplexStatisticalProxy::cut | ( | double | min, |
| double | max, | ||
| SamplingOptions | options | ||
| ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::Curve< pointType >::cut(), and TRACE.
| QVector< int > SciFigs::ComplexStatisticalProxy::defaultColumnFileTypes | ( | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References TRACE.
{
TRACE;
QVector<int> l;
l << 1 << 2 << 3 << 6 << 7;
return l;
}
| double SciFigs::ComplexStatisticalProxy::maximumX | ( | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::Curve< pointType >::maximumX(), and TRACE.
| double SciFigs::ComplexStatisticalProxy::maximumY | ( | const CurvePointOptions * | pointOptions | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::Curve< pointType >::at(), curve(), QGpCoreTools::Curve< pointType >::maximumY(), and TRACE.
{
TRACE;
const Curve<ComplexStatisticalPoint>& c=curve();
return c.at(c.maximumY(0, pointOptions)).y(pointOptions);
}
| double SciFigs::ComplexStatisticalProxy::minimumX | ( | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::Curve< pointType >::minimumX(), and TRACE.
| double SciFigs::ComplexStatisticalProxy::minimumY | ( | const CurvePointOptions * | pointOptions | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::Curve< pointType >::at(), curve(), QGpCoreTools::Curve< pointType >::minimumY(), and TRACE.
{
TRACE;
const Curve<ComplexStatisticalPoint>& c=curve();
return c.at(c.minimumY(0, pointOptions)).y(pointOptions);
}
| void SciFigs::ComplexStatisticalProxy::parse | ( | ColumnTextIterator & | it | ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References QGpCoreTools::Curve< pointType >::append(), QGpCoreTools::ColumnTextIterator::atEnd(), QGpCoreTools::ColumnTextIterator::atSectionEnd(), average(), QGpCoreTools::Curve< pointType >::clear(), QGpCoreTools::ColumnTextParser::columnCount(), QGpCoreTools::ColumnTextIterator::currentRow(), curve(), QGpCoreTools::Curve< pointType >::isEmpty(), QGpCoreTools::ColumnTextIterator::nextRow(), QGpCoreTools::ColumnTextIterator::parser(), QGpCoreTools::Complex::setAbs(), QGpCoreTools::Complex::setIm(), QGpCoreTools::StatisticalValue< numberType >::setMean(), QGpCoreTools::Complex::setPhase(), QGpCoreTools::Complex::setRe(), QGpCoreTools::StatisticalValue< numberType >::setStddev(), QGpCoreTools::StatisticalValue< numberType >::setWeight(), QGpCoreTools::StatisticalPoint< numberType >::setX(), QGpCoreTools::ColumnTextParser::text(), TRACE, and QGpCoreTools::ColumnTextParser::type().
{
TRACE;
const ColumnTextParser * parser=it.parser();
int nColumns=parser->columnCount();
Curve<ComplexStatisticalPoint>& c=curve();
c.clear();
while(!it.atEnd() && c.isEmpty()) {
while(!it.atSectionEnd()) {
ComplexStatisticalPoint p;
Complex average;
for(int iCol=0;iCol<nColumns;iCol++) {
switch(parser->type(iCol)) {
case 1:
p.setX(parser->text(it.currentRow(), iCol).toDouble());
break;
case 2:
average.setRe(parser->text(it.currentRow(), iCol).toDouble());
break;
case 3:
average.setIm(parser->text(it.currentRow(), iCol).toDouble());
break;
case 4:
average.setAbs(parser->text(it.currentRow(), iCol).toDouble());
break;
case 5:
average.setPhase(parser->text(it.currentRow(), iCol).toDouble());
break;
case 6:
p.setStddev(parser->text(it.currentRow(), iCol).toDouble());
break;
case 7:
p.setWeight(parser->text(it.currentRow(), iCol).toDouble());
break;
default:
break;
}
}
p.setMean(average);
c.append(p);
it.nextRow();
}
}
}
| void SciFigs::ComplexStatisticalProxy::resample | ( | int | n, |
| double | min, | ||
| double | max, | ||
| SamplingOptions | options, | ||
| double | valX, | ||
| double | valY, | ||
| const CurvePointOptions * | pointOptions | ||
| ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::Curve< pointType >::resample(), and TRACE.
| void SciFigs::ComplexStatisticalProxy::resample | ( | int | n, |
| double | min, | ||
| double | max, | ||
| SamplingOptions | options | ||
| ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::Curve< pointType >::resample(), and TRACE.
| QVector< int > SciFigs::ComplexStatisticalProxy::savedColumns | ( | ) | const [virtual] |
Implements SciFigs::CurveBrowserProxy.
References TRACE.
{
TRACE;
QVector<int> l;
l << 0 << 1 << 2 << 5 << 6;
return l;
}
| void SciFigs::ComplexStatisticalProxy::setColumnValue | ( | int | sample, |
| int | col, | ||
| const QVariant & | value | ||
| ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::StatisticalValue< numberType >::mean(), QGpCoreTools::Complex::setAbs(), QGpCoreTools::Complex::setIm(), QGpCoreTools::StatisticalValue< numberType >::setMean(), QGpCoreTools::Complex::setPhase(), QGpCoreTools::Complex::setRe(), QGpCoreTools::StatisticalValue< numberType >::setStddev(), QGpCoreTools::StatisticalValue< numberType >::setWeight(), QGpCoreTools::StatisticalPoint< numberType >::setX(), and TRACE.
{
TRACE;
ComplexStatisticalPoint& p=curve()[ sample ];
Complex c=p.mean();
switch(col) {
case 0: p.setX(value.toDouble()); break;
case 1:
c.setRe(value.toDouble());
break;
case 2:
c.setIm(value.toDouble());
break;
case 3:
c.setAbs(value.toDouble());
break;
case 4:
c.setPhase(value.toDouble());
break;
case 5: p.setStddev(value.toDouble()); break;
case 6: p.setWeight(value.toDouble()); break;
default: break;
}
p.setMean(c);
}
| void SciFigs::ComplexStatisticalProxy::setFunction | ( | ) | [virtual] |
Implements SciFigs::CurveBrowserProxy.
References curve(), QGpCoreTools::Curve< pointType >::setFunction(), and TRACE.
{
TRACE;
curve().setFunction();
}
| virtual QString SciFigs::ComplexStatisticalProxy::tag | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return "ComplexStatisticalProxy";}
| virtual int SciFigs::ComplexStatisticalProxy::xAxisColumn | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return 0;}
| virtual int SciFigs::ComplexStatisticalProxy::xAxisInversedColumn | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return -1;}
| virtual int SciFigs::ComplexStatisticalProxy::yAxisColumn | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return 1;}
| virtual int SciFigs::ComplexStatisticalProxy::yAxisInversedColumn | ( | ) | const [inline, virtual] |
Implements SciFigs::CurveBrowserProxy.
{return -1;}