![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
#include <klang.h>
Inheritance diagram for klang::Generic::Graph< SIZE >::Series:Public Types | |
| using | Array = Array<Point, SIZE + 1> |
Public Member Functions | |
| virtual | ~Series () |
| void | add (double y) |
| template<typename SIGNAL , typename... Args> | |
| void | plot (const Generic::Function< SIGNAL, Args... > &f, const Axis &x_axis) |
| template<typename RETURN , typename ARG > | |
| void | plot (RETURN(*f)(ARG), const Axis &x_axis) |
| bool | operator== (const Series &in) const |
| bool | operator!= (const Series &in) const |
| void | clear () |
| void | input () override |
| virtual const SIGNAL & | input () const |
| virtual void | input (const SIGNAL &source) |
| unsigned int | size () const |
| The current number of items in the array. | |
| void | add (const Point &item) |
| Add the specified item to the end of the array. | |
| Point * | add () |
| Add a blank item to the end of the array, returning a pointer that allows the item to be modified. | |
| float | max () const |
| Find the maximum value in the array. | |
| float | mean () const |
| Find the mean average of values in the array. | |
| float | rms () const |
| Find the root mean squared (RMS) average of values in the array. | |
| void | normalise (float target=1.f, int mode=Peak) |
| Normalises values in the array to the specified target, based on peak, mean, or RMS value;. | |
| Point & | operator[] (int index) |
| Returns a reference to the array item at the given index. | |
| const Point & | operator[] (int index) const |
| Returns a read-only reference to the array item at the given index. | |
| virtual void | input (const signal &source) |
| virtual void | operator<< (const signal &source) |
Static Public Member Functions | |
| static int | capacity () |
| The maximum capacity of the array. | |
Public Attributes | |
| const void * | function = nullptr |
| uint64_t | hash = 0 |
| unsigned int | count |
| Point | items [CAPACITY] |
| signal | in |
| using klang::Generic::Graph< SIZE >::Series::Array = Array<Point, SIZE + 1> |
|
inlinevirtual |
|
inlineinherited |
Definition at line 324 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::add(), klang::Generic::Graph< SIZE >::Series::input(), klang::Generic::Graph< SIZE >::Series::plot(), and klang::Generic::Graph< SIZE >::Series::plot().
|
inlineinherited |
|
inline |
Definition at line 3357 of file klang.h.
References klang::Array< Point, SIZE+1 >::add(), and klang::Array< Point, SIZE+1 >::size().
|
inlinestaticinherited |
|
inline |
Definition at line 3407 of file klang.h.
References klang::Array< Point, SIZE+1 >::clear(), and klang::Generic::Graph< SIZE >::Series::function.
Referenced by klang::Generic::Graph< SIZE >::Series::plot(), and klang::Generic::Graph< SIZE >::Series::plot().
|
inlinevirtual |
|
inlineoverridevirtual |
Reimplemented from klang::Generic::Input< signal >.
Definition at line 3413 of file klang.h.
References klang::Array< Point, SIZE+1 >::add(), and klang::Generic::Input< signal >::in.
|
inline |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 3403 of file klang.h.
References klang::Generic::Input< signal >::in, and klang::Generic::Graph< SIZE >::Series::operator==().
|
inlinevirtualinherited |
Reimplemented in klang::Debug.
|
inline |
Definition at line 3395 of file klang.h.
References klang::Array< Point, SIZE+1 >::count, klang::Generic::Input< signal >::in, and klang::Array< Point, SIZE+1 >::items.
Referenced by klang::Generic::Graph< SIZE >::Series::operator!=().
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 3362 of file klang.h.
References klang::Array< Point, SIZE+1 >::add(), klang::Generic::Graph< SIZE >::Series::clear(), klang::Generic::Graph< SIZE >::Series::function, klang::Generic::Graph< SIZE >::Series::hash, klang::Generic::Graph< SIZE >::Axis::min, klang::Generic::Graph< SIZE >::Axis::range(), and klang::Array< Point, SIZE+1 >::size().
Referenced by klang::Generic::Graph< SIZE >::plot(), klang::Generic::Graph< SIZE >::plot(), and klang::Generic::Graph< SIZE >::plot().
|
inline |
Definition at line 3379 of file klang.h.
References klang::Array< Point, SIZE+1 >::add(), klang::Generic::Graph< SIZE >::Series::clear(), klang::Generic::Graph< SIZE >::Series::function, klang::Generic::Graph< SIZE >::Series::hash, klang::Generic::Graph< SIZE >::Axis::min, klang::Generic::Graph< SIZE >::Axis::range(), and klang::Array< Point, SIZE+1 >::size().
|
inlineinherited |
|
inlineinherited |
Definition at line 315 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::add(), klang::Generic::Graph< SIZE >::Series::plot(), and klang::Generic::Graph< SIZE >::Series::plot().
|
inherited |
Definition at line 308 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::operator==().
| const void* klang::Generic::Graph< SIZE >::Series::function = nullptr |
Definition at line 3349 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::clear(), klang::Generic::Graph< SIZE >::Series::plot(), and klang::Generic::Graph< SIZE >::Series::plot().
| uint64_t klang::Generic::Graph< SIZE >::Series::hash = 0 |
Definition at line 3350 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::plot(), and klang::Generic::Graph< SIZE >::Series::plot().
|
inherited |
Definition at line 2944 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::input(), klang::Generic::Graph< SIZE >::Series::operator!=(), and klang::Generic::Graph< SIZE >::Series::operator==().
|
inherited |
Definition at line 309 of file klang.h.
Referenced by klang::Generic::Graph< SIZE >::Series::operator==().