|
ENERGY MONITOR 0.2
|
#include <signal_operation.h>
Public Member Functions | |
| signal | add (signal &base_sig1, signal &base_sig2, int mode=INTERSECT) |
| void | add (signal &base_sig1, signal &base_sig2, signal &resultant, int mode=INTERSECT) |
| we check the summing boundaries for the two signals and keep summing intersecting values until we reach the end of domain the domain is defined by the mode of both time sets | |
| signal | multiply (signal &base_sig1, signal &base_sig2, int mode=INTERSECT) |
| void | multiply (signal &base_sig1, signal &base_sig2, signal &resultant, int mode=INTERSECT) |
| double | phase_diff (signal &base_sig1, signal &base_sig2) |
| calculates phase difference based on maximas and minimas times | |
| double | integ_vpower (signal base_sig1, int power) |
| signal | add (signal &base_sig1, double val) |
| void | add (signal &base_sig1, signal &resultant, double val) |
| signal | multiply (signal &base_sig1, double val) |
| void | multiply (signal &base_sig1, signal &resultant, double val) |
| signal | logarithmic (signal *base_sig) |
| void | firstO_lowPass_filter (signal &base_sig, signal &resultant, double cutOff_freq, int order=1, double avg_sample_time=-1) |
| first order IIR(INFINITE IMPULSE RESPONSE) low pass filter output = (1 - filter_parameter)*last_output + filter_parameter*input for the resultant signal | |
| signal | highPass_filter (signal base_sig, int order=1) |
| signal | bangReject_filter (signal base_sig, int order=1) |
| signal | bandPass_filter (signal base_sig, int order=1) |
| signal | factor_frequency (signal base_sig, float increase_ratio) |
| signal | toSignal (std::vector< double > value, std::vector< double > time) |
| takes two Vectors one for time and and the other for values respectively and returns a signal | |
| signal | toSignal (std::vector< std::vector< double > > table) |
| takes a vector of vectors one for time and and the other for values respectively and returns a signal | |
| bool | subsignal_time_based (signal &base_sig, signal &sub_sig, double time_start, double time_end) |
| create subSignal from bigger ones based on time boundaries | |
| signal | subsignal_value_based (signal &base_sig, double value1, double value2) |
| signal | subsignal_value_time_based (signal &base_sig, double value1, double time_after) |
| signal | timeShift (signal &base_sig, double timeShift) |
| signal | concatenate (signal firstSignal, signal secondSignal) |
| bool | isSuccessfull () |
Static Public Member Functions | |
| static void | refreshSettings () |
Definition at line 24 of file signal_operation.h.
Definition at line 52 of file signal_operation.h.
|
inline |
Definition at line 31 of file signal_operation.h.
| void _signal_operation::add | ( | signal & | base_sig1, |
| signal & | base_sig2, | ||
| signal & | resultant, | ||
| int | mode = INTERSECT ) |
we check the summing boundaries for the two signals and keep summing intersecting values until we reach the end of domain the domain is defined by the mode of both time sets
| base_sig1 | the first signal to add |
| base_sig2 | the second signal to add |
| mode | the mode of operation (UNION for UNION summation INTERSECT for intersect summation) |
Definition at line 34 of file signal_operation.cpp.
Definition at line 292 of file signal_operation.cpp.
| void _signal_operation::firstO_lowPass_filter | ( | signal & | base_sig, |
| signal & | resultant, | ||
| double | cutOff_freq, | ||
| int | order = 1, | ||
| double | avg_sample_time = -1 ) |
first order IIR(INFINITE IMPULSE RESPONSE) low pass filter
output = (1 - filter_parameter)*last_output + filter_parameter*input for the resultant signal
| base_sig | The signal that needs filtering |
| resultant | The signal that holds the filtered signal can be the base_signal |
| cutOff_freq | The cutoff frequency for this filter |
| order | Optional argument for cascading the filter for higher orders default is 1 for first order |
| avg_sample_time | Optional argument for providing the avg_sample_time and not doing the analysis |
Definition at line 306 of file signal_operation.cpp.
| double _signal_operation::integ_vpower | ( | signal | base_sig1, |
| int | power ) |
|
inline |
Definition at line 104 of file signal_operation.h.
Definition at line 58 of file signal_operation.h.
|
inline |
Definition at line 39 of file signal_operation.h.
| void _signal_operation::multiply | ( | signal & | base_sig1, |
| signal & | base_sig2, | ||
| signal & | resultant, | ||
| int | mode = INTERSECT ) |
Definition at line 128 of file signal_operation.cpp.
Definition at line 279 of file signal_operation.cpp.
calculates phase difference based on maximas and minimas times
| base_sig1 | the reference signal |
| base_sig2 | the signal to compare with |
Definition at line 232 of file signal_operation.cpp.
|
static |
Definition at line 20 of file signal_operation.cpp.
| bool _signal_operation::subsignal_time_based | ( | signal & | base_sig, |
| signal & | sub_sig, | ||
| double | time_start, | ||
| double | time_end ) |
create subSignal from bigger ones based on time boundaries
| base_sig | the Bigger signal we create subsets from |
| sub_sig | the smaller signal we extracted |
| time_start | the start time of the sub signal |
| time_end | the end time of the sub signal |
Definition at line 335 of file signal_operation.cpp.
| signal _signal_operation::subsignal_value_time_based | ( | signal & | base_sig, |
| double | value1, | ||
| double | time_after ) |
| signal _signal_operation::toSignal | ( | std::vector< double > | value, |
| std::vector< double > | time ) |
takes two Vectors one for time and and the other for values respectively and returns a signal
| signal _signal_operation::toSignal | ( | std::vector< std::vector< double > > | table | ) |
takes a vector of vectors one for time and and the other for values respectively and returns a signal