![]() |
Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
Signal handeling declaration. More...
#include <Signal.hpp>

Public Member Functions | |
| Signal () | |
| Basic constructor. More... | |
| Signal (size_t data_size, double data_minimum=0.0, double data_step=1.0) | |
| Basic constructor. All frequencies are initiated with 0.0. More... | |
| template<class D > | |
| Signal (Vector< D > &new_frequency, double data_minimum=0.0, double data_step=1.0) | |
| Basic constructor. More... | |
| template<class D > | |
| Signal (Vector< D > &new_frequency, Vector< D > &new_data) | |
| Basic constructor. More... | |
| Signal (const Signal &sgn) | |
| Copy Constructor. More... | |
| Signal (Signal &&)=default | |
| Move Constructor. More... | |
| Signal & | operator= (const Signal &other) |
| Assigns 'other'signal to this signal. More... | |
| Signal & | operator= (Signal &&)=default |
| Assigns 'other'signal to this signal, moving the content. More... | |
| const double & | operator[] (size_t bin) const |
| Returns frequency at bin 'bin'. More... | |
| double & | operator[] (size_t p) |
| Returns a reference to bin 'bin'. More... | |
| size_t | Size () const |
| Returns the number of bins. More... | |
| size_t | size () const |
| Returns the number of bins. More... | |
| size_t | Bins () const |
| Returns the number of bins. Same as Size( ) method. More... | |
| const double * | Data () const |
| Returns signal data. More... | |
| double * | Data () |
| Returns signal data. More... | |
| const double * | data () const |
| Returns signal data. More... | |
| double * | data () |
| Returns signal data. More... | |
| template<class D > | |
| void | Data (Vector< D > val) |
| Assigns a copy of val to data. Frequency vector remains unchanged. More... | |
| const double * | Frequency () const |
| Returns a pointer to the signal data. More... | |
| double * | Frequency () |
| Returns a pointer to the signal data. More... | |
| void | Frequency (Vector< double > val) |
| Assigns a copy of val to frequency. Data vector remains unchanged. More... | |
| double | MinimumFrequency (size_t min_bin=0) const |
| Returns the minimum frequency contained in bins from min_bin to the last bin (including the extremities). More... | |
| double | MinimumFrequency (size_t min_bin, size_t max_bin) const |
| Returns the minimum frequency contained in bins from min_bin to max_bin (including the extremities). More... | |
| double | MaximumFrequency (size_t min_bin=0) const |
| Returns the maximum frequency contained in bins from min_bin to the last bin (including the extremities). More... | |
| double | MaximumFrequency (size_t min_bin, size_t max_bin) const |
| Returns the maximum frequency contained in bins from min_bin to max_bin (including the extremities). More... | |
| size_t | MinimumFrequencyBin (size_t min_bin=0) const |
| Returns the bin of the minimum frequency contained in bins from min_bin to the last bin (including the extremities). More... | |
| size_t | MinimumFrequencyBin (size_t min_bin, size_t max_bin) const |
| Returns the bin of the minimum frequency contained in bins from min_bin to max_bin (including the extremities). More... | |
| size_t | MaximumFrequencyBin (size_t min_bin=0) const |
| Returns the bin of the maximum frequency contained in bins from min_bin to the last bin (including the extremities). More... | |
| size_t | MaximumFrequencyBin (size_t min_bin, size_t max_bin) const |
| Returns the bin of the maximum frequency contained in bins from min_bin to max_bin (including the extremities). More... | |
| size_t | Bin (double val) const |
| Returns the closest bin into which 'val' would fall. More... | |
| void | Bin (size_t bin, double val) |
| Sets value "val" to histogram bin "bin". More... | |
| const double & | Data (size_t bin) const |
| Returns data corresponding to the input bin. More... | |
| double & | Data (size_t bin) |
| Assigns value to data bin. More... | |
| template<class O > | |
| void | Print (O &os) const |
| Prints signal containts to output stream os. It prints a pair composed by frequency and value per line. More... | |
Signal handeling declaration.
Definition at line 20 of file Signal.hpp.
| Bial::Signal::Signal | ( | ) |
Basic constructor.
| none. |
| Bial::Signal::Signal | ( | size_t | data_size, |
| double | data_minimum = 0.0, |
||
| double | data_step = 1.0 |
||
| ) |
Basic constructor. All frequencies are initiated with 0.0.
| data_size | Number of samples. |
| data_minimum | Minimum data value. |
| data_step | Data step between two consecutive samples. |
| Bial::Signal::Signal | ( | Vector< D > & | new_frequency, |
| double | data_minimum = 0.0, |
||
| double | data_step = 1.0 |
||
| ) |
Basic constructor.
| new_frequency | Frequency to be assigned to the signal. |
| data_minimum | Minimum data value. |
| data_step | Data step between two consecutive samples. |
Basic constructor.
| new_frequency | Frequency to be assigned to the signal. |
| new_data | Data to be assigned to the signal. |
Copy Constructor.
| filename | File name. |
|
default |
Move Constructor.
| sgn | Other signal. |
| size_t Bial::Signal::Bin | ( | double | val | ) | const |
Returns the closest bin into which 'val' would fall.
| val | Data value. |
| void Bial::Signal::Bin | ( | size_t | bin, |
| double | val | ||
| ) |
Sets value "val" to histogram bin "bin".
| bin | the bin to be set. |
| val | Data value. |
| size_t Bial::Signal::Bins | ( | ) | const |
Returns the number of bins. Same as Size( ) method.
| none. |
| const double* Bial::Signal::Data | ( | ) | const |
| double* Bial::Signal::Data | ( | ) |
| const double* Bial::Signal::data | ( | ) | const |
| double* Bial::Signal::data | ( | ) |
| void Bial::Signal::Data | ( | Vector< D > | val | ) |
Assigns a copy of val to data. Frequency vector remains unchanged.
| val | A Vector to be assigned. |
| const double& Bial::Signal::Data | ( | size_t | bin | ) | const |
Returns data corresponding to the input bin.
| bin | Data bin. |
| double& Bial::Signal::Data | ( | size_t | bin | ) |
Assigns value to data bin.
| bin | Data bin. |
| val | Data value. |
| const double* Bial::Signal::Frequency | ( | ) | const |
Returns a pointer to the signal data.
| none. |
| double* Bial::Signal::Frequency | ( | ) |
Returns a pointer to the signal data.
| none. |
| void Bial::Signal::Frequency | ( | Vector< double > | val | ) |
Assigns a copy of val to frequency. Data vector remains unchanged.
| val | A Vector to be assigned. |
| double Bial::Signal::MaximumFrequency | ( | size_t | min_bin = 0 | ) | const |
Returns the maximum frequency contained in bins from min_bin to the last bin (including the extremities).
| min_bin | left most bin. |
| double Bial::Signal::MaximumFrequency | ( | size_t | min_bin, |
| size_t | max_bin | ||
| ) | const |
Returns the maximum frequency contained in bins from min_bin to max_bin (including the extremities).
| min_bin | left most bin. |
| max_bin | right most bin. |
| size_t Bial::Signal::MaximumFrequencyBin | ( | size_t | min_bin = 0 | ) | const |
Returns the bin of the maximum frequency contained in bins from min_bin to the last bin (including the extremities).
| min_bin | left most bin. |
| size_t Bial::Signal::MaximumFrequencyBin | ( | size_t | min_bin, |
| size_t | max_bin | ||
| ) | const |
Returns the bin of the maximum frequency contained in bins from min_bin to max_bin (including the extremities).
| min_bin | left most bin. |
| max_bin | right most bin. |
| double Bial::Signal::MinimumFrequency | ( | size_t | min_bin = 0 | ) | const |
Returns the minimum frequency contained in bins from min_bin to the last bin (including the extremities).
| min_bin | left most bin. |
| double Bial::Signal::MinimumFrequency | ( | size_t | min_bin, |
| size_t | max_bin | ||
| ) | const |
Returns the minimum frequency contained in bins from min_bin to max_bin (including the extremities).
| min_bin | left most bin. |
| max_bin | right most bin. |
| size_t Bial::Signal::MinimumFrequencyBin | ( | size_t | min_bin = 0 | ) | const |
Returns the bin of the minimum frequency contained in bins from min_bin to the last bin (including the extremities).
| min_bin | left most bin. |
| size_t Bial::Signal::MinimumFrequencyBin | ( | size_t | min_bin, |
| size_t | max_bin | ||
| ) | const |
Returns the bin of the minimum frequency contained in bins from min_bin to max_bin (including the extremities).
| min_bin | left most bin. |
| max_bin | right most bin. |
Assigns 'other'signal to this signal.
| other | Signal to be assigned to this. |
Assigns 'other'signal to this signal, moving the content.
| other | Signal to be assigned to this. |
| const double& Bial::Signal::operator[] | ( | size_t | bin | ) | const |
Returns frequency at bin 'bin'.
| bin | Bin to be acessed. |
| double& Bial::Signal::operator[] | ( | size_t | p | ) |
| void Bial::Signal::Print | ( | O & | os | ) | const |
Prints signal containts to output stream os. It prints a pair composed by frequency and value per line.
| os | an output stream. |
| size_t Bial::Signal::Size | ( | ) | const |
Returns the number of bins.
| none. |
| size_t Bial::Signal::size | ( | ) | const |
Returns the number of bins.
| none. |