18 MySIN(
double freq,
double amp) :
23 wxPen FXpen(*wxGREEN, 1, wxPENSTYLE_SOLID);
30 virtual double GetY(
double x)
32 return m_amp * sin(x / 6.283185 / m_freq);
52 wxPen FXpen(*wxBLUE, 1, wxPENSTYLE_SOLID);
62 return x / (sqrt(sin(x) + 2));
92 wxPen FYpen(*wxCYAN, 2, wxPENSTYLE_SOLID);
102 return m_amp * cos(y / 6.283185 / m_freq);
113 double m_freq, m_amp;
123 mpFXY(wxT(
"Lissajoux"))
127 wxPen FXYpen(*wxRED, 1, wxPENSTYLE_SOLID);
137 *x = m_rad * cos(m_idx / 6.283185 * 360);
138 *y = m_rad * sin(m_idx / 6.283185 * 360 * 3);
174 mpFX(wxT(
"Feste Bitbreite"))
176 m_bitwidth = bitwidth;
188 double ld(
const double x)
190 return log(x) / log(2.0f);
197 mpFX(wxT(
"Optimum ld(N)"))
214 mpFX(wxT(
"Elias-Kodes"))
221 return floor(ld(x)) + 2.0 * floor(ld(1.0 + floor(ld(x))));
231 mpFX(wxT(
"Fibonacci-Kodes"))
virtual double GetMaxX()
Get inclusive right border of bounding box.
Definition: Sample.h:108
Draw a circle.
Definition: mathplot.h:703
virtual double GetY(double N)
Get function value for argument.
Definition: Sample.h:235
virtual double GetMaxX()
Get inclusive right border of bounding box.
Definition: Sample.h:155
virtual bool GetNextXY(double *x, double *y)
Get locus value for next N.
Definition: Sample.h:133
Draw a cross X.
Definition: mathplot.h:707
void SetPen(const wxPen &pen)
Set layer pen.
Definition: mathplot.h:1037
void SetDrawOutsideMargins(bool drawModeOutside)
Set Draw mode: inside or outside margins.
Definition: mathplot.h:1083
void SetContinuity(bool continuity)
Set the 'continuity' property of the layer.
Definition: mathplot.h:1534
Abstract base class providing plot and labeling functionality for functions F:Y->X.
Definition: mathplot.h:1820
Abstract base class providing plot and labeling functionality for a locus plot F:N->X,Y.
Definition: mathplot.h:1884
virtual double ComputeY(double x)
The main computation of the FX function.
Definition: Sample.h:60
virtual double GetMinX()
Get inclusive left border of bounding box.
Definition: Sample.h:104
mpFX(const wxString &name=wxEmptyString, int flags=mpALIGN_RIGHT, unsigned int yAxisID=0)
Definition: mathplot.cpp:1167
Align the y-axis towards left plot.
Definition: mathplot.h:669
Create a generic FX function Override the ComputeY() function with your function. ...
Definition: mathplot.h:2211
Draw a square.
Definition: mathplot.h:704
Classic sinus curve.
Definition: Sample.h:15
void SetSymbolSize(int size)
Set symbol size.
Definition: mathplot.h:1577
virtual void Rewind()
Rewind value enumeration with mpFXY::GetNextXY.
Definition: Sample.h:147
virtual double GetMinX()
Get inclusive left border of bounding box.
Definition: Sample.h:151
virtual double GetY(double x)
Get function value for argument.
Definition: Sample.h:179
void SetStep(unsigned int step)
Set step for plot.
Definition: mathplot.h:1549
virtual double GetMaxY()
Get inclusive top border of bounding box.
Definition: Sample.h:163
Abstract base class providing plot and labeling functionality for functions F:X->Y.
Definition: mathplot.h:1759
virtual double GetY(double x)
Get function value for argument.
Definition: Sample.h:218
virtual double GetMinY()
Get inclusive bottom border of bounding box.
Definition: Sample.h:34
Align the x-axis towards bottom plot.
Definition: mathplot.h:659
virtual double GetMinY()
Get inclusive bottom border of bounding box.
Definition: Sample.h:159
virtual double GetY(double x)
Get function value for argument.
Definition: Sample.h:201
virtual double GetY(double x)
Get function value for argument.
Definition: Sample.h:30
virtual double ComputeY(double x)
The main computation of the FX function.
Definition: Sample.h:77
virtual double GetMaxY()
Get inclusive top border of bounding box.
Definition: Sample.h:38
void SetSymbol(mpSymbol symbol)
Set symbol.
Definition: mathplot.h:1563
virtual double GetX(double y)
Get function value for argument.
Definition: Sample.h:100