Dependencies: DMSupport DMemWin
Diff: embedded/MATH1.h
- Revision:
- 0:08606a13a816
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/embedded/MATH1.h Thu Jun 02 05:04:57 2016 +0000 @@ -0,0 +1,36 @@ +#ifndef MATH1_H_ +#define MATH1_H_ + +#include "mbed.h" + + + +class MATH { + +public: + + double sqr(double value); + double LVRMS(double* d1, double* d2, uint16_t len); + double RMS(double* d, uint16_t len); + double UR(double d1, double d2, double d3); + double angle(double d1, double d2); + double UF(double rms_a, double rms_b, double rms_c, + double angle_a, double angle_b, double angle_c); + double doDFT(double *input, double *output, int N); + void integal(double *in, double *out, int len, int sps); + void detrend(double *y, int len, int sps); + double Peak2Peak(double *in, int len); + double Hz(int SPS, int N, int len); + double PeakValue(double *x , double *y, double *z, int len); + double UBValue(double *maxi, double *x , double *y, double *z, int len); + double THD(double *ass_1, double *ass_2, double *ass_3, int pu); + double HD(double *dick_1, double *dick_2, double *dick_3, int pu); + + + +private: + +}; + +#endif +