#include <LOWPASS.h>
Public Member Functions | |
LOWPASS () | |
virtual | ~LOWPASS () |
Indicator * | calculate () |
PlotLine * | getLowpass (PlotLine *in, double fre, double wid) |
int | indicatorPrefDialog (QWidget *) |
void | setDefaults () |
PlotLine * | calculateCustom (QString &, QPtrList< PlotLine > &) |
void | getIndicatorSettings (Setting &) |
void | setIndicatorSettings (Setting &) |
void | formatDialog (QStringList &vl, QString &rv, QString &rs) |
Private Member Functions | |
void | detrend (PlotLine *inLine, double *slope, double *intercept) |
PlotLine * | detrend (PlotLine *x, double &slope, double &intercept, bool detrend=true) |
PlotLine * | raise2Power (PlotLine *x, double pad=0.0) |
Private Attributes | |
QColor | color |
PlotLine::LineType | lineType |
QString | label |
double | freq |
double | width |
BarData::InputType | input |
qtsFFT * | fft |
QString | colorLabel |
QString | lineTypeLabel |
QString | labelLabel |
QString | inputLabel |
QString | pluginLabel |
QString | freqLabel |
QString | widthLabel |
Definition at line 25 of file LOWPASS.h.
LOWPASS::LOWPASS | ( | ) |
Definition at line 34 of file LOWPASS.cpp.
References colorLabel, IndicatorPlugin::FormatDouble, IndicatorPlugin::FormatInputArray, IndicatorPlugin::formatList, freqLabel, IndicatorPlugin::helpFile, inputLabel, labelLabel, lineTypeLabel, pluginLabel, IndicatorPlugin::pluginName, setDefaults(), and widthLabel.
LOWPASS::~LOWPASS | ( | ) | [virtual] |
Definition at line 54 of file LOWPASS.cpp.
Indicator * LOWPASS::calculate | ( | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 68 of file LOWPASS.cpp.
References Indicator::addLine(), color, IndicatorPlugin::data, IndicatorPlugin::dateFlag, freq, BarData::getInput(), getLowpass(), input, label, lineType, IndicatorPlugin::logScale, PlotLine::setColor(), Indicator::setDateFlag(), PlotLine::setLabel(), Indicator::setLogScale(), PlotLine::setType(), and width.
Definition at line 90 of file LOWPASS.cpp.
References PlotLine::append(), detrend(), qtsFFT::do_FFTqts(), qtsFFT::do_iFFTqts(), fft, PlotLine::getData(), PlotLine::getSize(), raise2Power(), and PlotLine::setData().
Referenced by calculate(), and calculateCustom().
int LOWPASS::indicatorPrefDialog | ( | QWidget * | w | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 222 of file LOWPASS.cpp.
References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addTextItem(), color, PrefDialog::createPage(), freq, PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getDouble(), PrefDialog::getText(), IndicatorPlugin::helpFile, input, IndicatorPlugin::inputTypeList, label, lineType, IndicatorPlugin::lineTypes, PrefDialog::setHelpFile(), and width.
void LOWPASS::setDefaults | ( | ) |
Definition at line 58 of file LOWPASS.cpp.
References BarData::Close, color, freq, input, label, PlotLine::Line, lineType, IndicatorPlugin::pluginName, and width.
Referenced by LOWPASS(), and setIndicatorSettings().
Reimplemented from IndicatorPlugin.
Definition at line 274 of file LOWPASS.cpp.
References IndicatorPlugin::checkFormat(), IndicatorPlugin::formatStringList, freq, getLowpass(), and width.
void LOWPASS::getIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 299 of file LOWPASS.cpp.
References color, colorLabel, freq, freqLabel, input, inputLabel, label, labelLabel, lineType, lineTypeLabel, pluginLabel, IndicatorPlugin::pluginName, Setting::setData(), width, and widthLabel.
void LOWPASS::setIndicatorSettings | ( | Setting & | dict | ) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 315 of file LOWPASS.cpp.
References color, colorLabel, Setting::count(), freq, freqLabel, Setting::getData(), input, inputLabel, label, labelLabel, lineType, lineTypeLabel, setDefaults(), width, and widthLabel.
void LOWPASS::formatDialog | ( | QStringList & | vl, | |
QString & | rv, | |||
QString & | rs | |||
) | [virtual] |
Reimplemented from IndicatorPlugin.
Definition at line 348 of file LOWPASS.cpp.
References PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), freq, PrefDialog::getCombo(), PrefDialog::getDouble(), PrefDialog::getText(), IndicatorPlugin::helpFile, input, PrefDialog::setHelpFile(), and width.
void LOWPASS::detrend | ( | PlotLine * | inLine, | |
double * | slope, | |||
double * | intercept | |||
) | [private] |
Referenced by getLowpass().
PlotLine * LOWPASS::detrend | ( | PlotLine * | x, | |
double & | slope, | |||
double & | intercept, | |||
bool | detrend = true | |||
) | [private] |
Definition at line 167 of file LOWPASS.cpp.
References PlotLine::append(), PlotLine::getData(), and PlotLine::getSize().
Definition at line 194 of file LOWPASS.cpp.
References PlotLine::append(), PlotLine::getData(), PlotLine::getSize(), and MAXNUM.
Referenced by getLowpass().
QColor LOWPASS::color [private] |
Definition at line 40 of file LOWPASS.h.
Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
PlotLine::LineType LOWPASS::lineType [private] |
Definition at line 41 of file LOWPASS.h.
Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
QString LOWPASS::label [private] |
Definition at line 42 of file LOWPASS.h.
Referenced by calculate(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
double LOWPASS::freq [private] |
Definition at line 43 of file LOWPASS.h.
Referenced by calculate(), calculateCustom(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
double LOWPASS::width [private] |
Definition at line 44 of file LOWPASS.h.
Referenced by calculate(), calculateCustom(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
BarData::InputType LOWPASS::input [private] |
Definition at line 45 of file LOWPASS.h.
Referenced by calculate(), formatDialog(), getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().
qtsFFT* LOWPASS::fft [private] |
QString LOWPASS::colorLabel [private] |
Definition at line 51 of file LOWPASS.h.
Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().
QString LOWPASS::lineTypeLabel [private] |
Definition at line 52 of file LOWPASS.h.
Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().
QString LOWPASS::labelLabel [private] |
Definition at line 53 of file LOWPASS.h.
Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().
QString LOWPASS::inputLabel [private] |
Definition at line 54 of file LOWPASS.h.
Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().
QString LOWPASS::pluginLabel [private] |
QString LOWPASS::freqLabel [private] |
Definition at line 56 of file LOWPASS.h.
Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().
QString LOWPASS::widthLabel [private] |
Definition at line 57 of file LOWPASS.h.
Referenced by getIndicatorSettings(), LOWPASS(), and setIndicatorSettings().